From 64d98f8ee037282c35007b64c2649055c56af1db Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:19:03 +0200 Subject: Merging upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- .../stability-attribute/allow-unstable-reexport.rs | 30 ---------------------- 1 file changed, 30 deletions(-) delete mode 100644 src/test/ui/stability-attribute/allow-unstable-reexport.rs (limited to 'src/test/ui/stability-attribute/allow-unstable-reexport.rs') diff --git a/src/test/ui/stability-attribute/allow-unstable-reexport.rs b/src/test/ui/stability-attribute/allow-unstable-reexport.rs deleted file mode 100644 index 937913954..000000000 --- a/src/test/ui/stability-attribute/allow-unstable-reexport.rs +++ /dev/null @@ -1,30 +0,0 @@ -// Allow an unstable re-export without requiring a feature gate. -// #94972 - -// aux-build:lint-stability.rs -// aux-build:lint-stability-reexport.rs -#![feature(staged_api)] -#![stable(feature = "lint_stability", since = "1.0.0")] - -extern crate lint_stability; -extern crate lint_stability_reexport; - -#[unstable(feature = "unstable_test_feature", issue = "none")] -pub use lint_stability::unstable; - -// We want to confirm that using a re-export through another crate behaves -// the same way as using an item directly -#[unstable(feature = "unstable_test_feature", issue = "none")] -pub use lint_stability_reexport::unstable_text; - -// Ensure items which aren't marked as unstable can't re-export unstable items -#[stable(feature = "lint_stability", since = "1.0.0")] -pub use lint_stability::unstable as unstable2; -//~^ ERROR use of unstable library feature 'unstable_test_feature' - -fn main() { - // Since we didn't enable the feature in this crate, we still can't - // use these items, even though they're in scope from the `use`s which are now allowed. - unstable(); //~ ERROR use of unstable library feature 'unstable_test_feature' - unstable_text(); //~ ERROR use of unstable library feature 'unstable_test_feature' -} -- cgit v1.2.3