Lines Matching full:rustc
1 // rustc-cfg emitted by the build script:
5 // Enabled on rustc 1.29+ as long as procmacro2_semver_exempt is not set,
45 let rustc = rustc_minor_version().unwrap_or(u32::MAX); in main() localVariable
51 println!("cargo:rustc-cfg=procmacro2_semver_exempt"); in main()
55 println!("cargo:rustc-cfg=span_locations"); in main()
58 if rustc < 57 { in main()
59 println!("cargo:rustc-cfg=no_is_available"); in main()
62 if rustc < 66 { in main()
63 println!("cargo:rustc-cfg=no_source_text"); in main()
109 println!("cargo:rustc-cfg=wrap_proc_macro"); in main()
113 println!("cargo:rustc-cfg=proc_macro_span"); in main()
117 println!("cargo:rustc-cfg=super_unstable"); in main()
127 // We are running inside rustc bootstrap. This is a highly non-standard in compile_probe()
137 let rustc = cargo_env_var("RUSTC"); in compile_probe() localVariable
141 // Make sure to pick up Cargo rustc configuration. in compile_probe()
144 // The wrapper's first argument is supposed to be the path to rustc. in compile_probe()
145 cmd.arg(rustc); in compile_probe()
148 Command::new(rustc) in compile_probe()
184 let rustc = cargo_env_var("RUSTC"); in rustc_minor_version() localVariable
185 let output = Command::new(rustc).arg("--version").output().ok()?; in rustc_minor_version()
188 if pieces.next() != Some("rustc 1") { in rustc_minor_version()