You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 28, 2025. It is now read-only.
Rollup merge of rust-lang#136434 - RalfJung:rustc_allowed_through_unstable_modules-deprecation-required, r=compiler-errors
rustc_allowed_through_unstable_modules: require deprecation message
This changes the `#[rustc_allowed_through_unstable_modules]` attribute so that a deprecation message (ideally directing people towards the stable path) is required.
Copy file name to clipboardExpand all lines: tests/ui/stability-attribute/allowed-through-unstable.rs
+1-2Lines changed: 1 addition & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,5 @@
5
5
6
6
externcrate allowed_through_unstable_core;
7
7
8
-
use allowed_through_unstable_core::unstable_module::OldStableTraitAllowedThoughUnstable;
9
-
use allowed_through_unstable_core::unstable_module::OldStableTraitAllowedThoughUnstableWithDeprecation;//~WARN use of deprecated module `allowed_through_unstable_core::unstable_module`: use the new path instead
8
+
use allowed_through_unstable_core::unstable_module::OldStableTraitAllowedThoughUnstable;//~WARN use of deprecated module `allowed_through_unstable_core::unstable_module`: use the new path instead
10
9
use allowed_through_unstable_core::unstable_module::NewStableTraitNotAllowedThroughUnstable;//~ ERROR use of unstable library feature `unstable_test_feature`
0 commit comments