rust-analyzer version: 0.3.1657-standalone (326f37e 2023-09-10 rustc version: rustc 1.72.0 (5680fa18f 2023-08-23) Based on #15528 I assumed this would be possible. My code currently has a rust_analyzer_fix feature we've defined and been ...
[cfg_attr] is a theoretical tag for conditional use of an attribute based on target. For example: #[cfg_attr(target_os="macos", foo, bar(a, b), ...)] #[cfg_attr(target_os="linux", baz(c, d), qux, ...)] On OS X this expands to #[foo] #[ba...
Index of /rust-git-source/rust/tests/ui/cfg/ File NameFile SizeDate Parent directory/-- assume-incomplete-release/-2024-02-27 11:56 auxiliary/-2024-02-27 11:56 cfg-attr-cfg.rs179.0 B2024-02-27 11:56 cfg-attr-crate.rs167.0 B2024-02-27 11:56...
此外由于Windows 10采用了CFG机制所以无法对Windows 10机器进行利用。
目录 1. 软件安装 2 Sample源文件下载: 3. 生成步骤 3.1 使用doxygen生成html文件...
auto-reduced (treereduce-rust): #[cfg_attr::skip] fn main() {} original: //@ revisions: feature gated #![cfg_attr(feature, feature(lazy_type_alias))] #![allow(incomplete_features)] type X = Vec<X>; //[gated]~^ ERROR cycle detected //[fea...
#![cfg_attr(not(parallel_compiler), feature(cell_leak))] #![deny(unsafe_op_in_unsafe_fn)] #![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")] 2 changes: 0 additions & 2 deletions 2 compiler/rustc_lint_defs/src/builtin.rs Original file line numberDiff...
configuration warning: unexpected `cfg` condition name: `rustfmt` --> /usr/home/somers/src/rust/bfffs/target/debug/build/bfffs-555042f4e29eb538/out/x.rs:303:12 | 303 | #[cfg_attr(rustfmt, rustfmt_skip)] | ^^^ | = help: consider using a Cargo feature instead or adding `println...
For the main IDE features, RA always considers the rust_analyzer cfg to be active, which can be super helpful for declarative macros that want to use small hacks to better integrate with RA. It seems like the same is not true for proc-ma...
Rust toolchain version: nightly-2021-05-07 IDE name and version: IntelliJ 2021.1 Operating system: OSX Problem description A project with which I work (https://github.com/embassy-rs/embassy) uses cargo cfgs not of the feature variety, which is then subsequently used in cfg_attr to adjust ...