diff options
| author | Ben Kimock <kimockb@gmail.com> | 2024-04-18 18:08:47 -0400 |
|---|---|---|
| committer | Ben Kimock <kimockb@gmail.com> | 2024-05-20 11:13:10 -0400 |
| commit | f45a7a291c4d32f3d8c2c9c67138e229677ddb38 (patch) | |
| tree | ef33b1359bddaf6be7248a297d679053ef2f8b56 | |
| parent | 7a906e1af71684138702a85fe114def61f21379d (diff) | |
| download | rust-f45a7a291c4d32f3d8c2c9c67138e229677ddb38.tar.gz rust-f45a7a291c4d32f3d8c2c9c67138e229677ddb38.zip | |
Fix feature-gates/rustc-private.rs
| -rw-r--r-- | tests/ui/feature-gates/rustc-private.rs | 2 | ||||
| -rw-r--r-- | tests/ui/feature-gates/rustc-private.stderr | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/ui/feature-gates/rustc-private.rs b/tests/ui/feature-gates/rustc-private.rs index 7b8944bb0a0..aa44f790c8a 100644 --- a/tests/ui/feature-gates/rustc-private.rs +++ b/tests/ui/feature-gates/rustc-private.rs @@ -1,5 +1,5 @@ // gate-test-rustc_private -extern crate libc; //~ ERROR use of unstable library feature 'rustc_private' +extern crate cfg_if; //~ ERROR use of unstable library feature 'rustc_private' fn main() {} diff --git a/tests/ui/feature-gates/rustc-private.stderr b/tests/ui/feature-gates/rustc-private.stderr index 03397cba763..96cc98619fd 100644 --- a/tests/ui/feature-gates/rustc-private.stderr +++ b/tests/ui/feature-gates/rustc-private.stderr @@ -1,8 +1,8 @@ error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? --> $DIR/rustc-private.rs:3:1 | -LL | extern crate libc; - | ^^^^^^^^^^^^^^^^^^ +LL | extern crate cfg_if; + | ^^^^^^^^^^^^^^^^^^^^ | = note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information = help: add `#![feature(rustc_private)]` to the crate attributes to enable |
