We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 03181e0 commit f78485aCopy full SHA for f78485a
src/tools/compiletest/src/runtest.rs
@@ -2466,8 +2466,13 @@ impl<'test> TestCx<'test> {
2466
rustc.args(&["-A", "unused"]);
2467
}
2468
2469
- // Allow tests to use internal features.
2470
- rustc.args(&["-A", "internal_features"]);
+ // #[cfg(not(bootstrap)] unconditionally pass flag after beta bump
+ // since `ui-fulldeps --stage=1` builds using the stage 0 compiler,
2471
+ // which doesn't have this lint.
2472
+ if !(self.config.stage_id.starts_with("stage1-") && self.config.suite == "ui-fulldeps") {
2473
+ // Allow tests to use internal features.
2474
+ rustc.args(&["-A", "internal_features"]);
2475
+ }
2476
2477
if self.props.force_host {
2478
self.maybe_add_external_args(&mut rustc, &self.config.host_rustcflags);
0 commit comments