Skip to content

Commit e4e6b1e

Browse files
committed
fixes post rebase
1 parent 87eafe8 commit e4e6b1e

File tree

9 files changed

+7
-21
lines changed

9 files changed

+7
-21
lines changed

compiler/rustc_attr/src/builtin.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ where
465465
struct_span_err!(
466466
diagnostic,
467467
item_sp,
468-
E0788,
468+
E0789,
469469
"`rustc_allowed_through_unstable_modules` attribute must be paired with a `stable` attribute"
470470
)
471471
.emit();

compiler/rustc_error_codes/src/error_codes.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -644,5 +644,5 @@ E0788: include_str!("./error_codes/E0788.md"),
644644
// E0721, // `await` keyword
645645
// E0723, // unstable feature in `const` context
646646
// E0738, // Removed; errored on `#[track_caller] fn`s in `extern "Rust" { ... }`.
647-
E0788, // rustc_allowed_through_unstable_modules without stability attribute
647+
E0789, // rustc_allowed_through_unstable_modules without stability attribute
648648
}

compiler/rustc_middle/src/middle/stability.rs

+2
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,8 @@ impl<'tcx> TyCtxt<'tcx> {
492492
/// If so, and `id` is not `None`, a deprecated lint attached to `id` will be emitted.
493493
///
494494
/// Pass `AllowUnstable::Yes` to `allow_unstable` to force an unstable item to be allowed. Deprecation warnings will be emitted normally.
495+
///
496+
/// Returns `true` if item is allowed aka, stable or unstable under an enabled feature.
495497
pub fn check_stability_allow_unstable(
496498
self,
497499
def_id: DefId,

compiler/rustc_passes/src/stability.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,7 @@ impl<'tcx> Visitor<'tcx> for Checker<'tcx> {
858858
} else {
859859
AllowUnstable::No
860860
},
861-
)
861+
);
862862
}
863863
}
864864
}

src/test/ui/stability-attribute/allow-through-unstable-misuse.rs

-8
This file was deleted.

src/test/ui/stability-attribute/allowed-through-unstable.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0658]: use of unstable library feature 'unstable_test_feature'
2-
--> $DIR/allowed-through-unstable.rs:10:5
2+
--> $DIR/allowed-through-unstable.rs:9:5
33
|
44
LL | use allowed_through_unstable_core::unstable_module::NewStableTraitNotAllowedThroughUnstable;
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/test/ui/stability-attribute/rustc-encodable-stability.rs

-8
This file was deleted.

src/tools/tidy/src/error_codes_check.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use regex::Regex;
1111
// A few of those error codes can't be tested but all the others can and *should* be tested!
1212
const EXEMPTED_FROM_TEST: &[&str] = &[
1313
"E0279", "E0313", "E0377", "E0461", "E0462", "E0465", "E0476", "E0490", "E0514", "E0519",
14-
"E0523", "E0554", "E0640", "E0717", "E0729",
14+
"E0523", "E0554", "E0640", "E0717", "E0729", "E0789",
1515
];
1616

1717
// Some error codes don't have any tests apparently...

0 commit comments

Comments
 (0)