mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-04 10:50:15 +00:00
Auto merge of #16257 - lnicola:rustc-check-cfg, r=Veykril
internal: Teach cargo about `cfg(rust_analyzer)` r? `@Urgau` is this a good idea?, CC `@Veykril`
This commit is contained in:
commit
af1fd88c4d
4 changed files with 13 additions and 1 deletions
5
crates/proc-macro-srv/proc-macro-test/imp/build.rs
Normal file
5
crates/proc-macro-srv/proc-macro-test/imp/build.rs
Normal file
|
@ -0,0 +1,5 @@
|
|||
//! This teaches cargo about our cfg(rust_analyzer)
|
||||
|
||||
fn main() {
|
||||
println!("cargo:rustc-check-cfg=cfg(rust_analyzer)");
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue