Skip to content

Commit f78485a

Browse files
Fix ui-fulldeps missing the internal_features lint on stage 0
1 parent 03181e0 commit f78485a

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Diff for: src/tools/compiletest/src/runtest.rs

+7-2
Original file line numberDiff line numberDiff line change
@@ -2466,8 +2466,13 @@ impl<'test> TestCx<'test> {
24662466
rustc.args(&["-A", "unused"]);
24672467
}
24682468

2469-
// Allow tests to use internal features.
2470-
rustc.args(&["-A", "internal_features"]);
2469+
// #[cfg(not(bootstrap)] unconditionally pass flag after beta bump
2470+
// 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+
}
24712476

24722477
if self.props.force_host {
24732478
self.maybe_add_external_args(&mut rustc, &self.config.host_rustcflags);

0 commit comments

Comments
 (0)