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
Rollup merge of rust-lang#62869 - matklad:feature-gate, r=Mark-Simulacrum
add rustc_private as a proper language feature gate
At the moment, `rustc_private` as a (library) feature exists by
accident: `char::is_xid_start`, `char::is_xid_continue` methods in
libcore define it.
cc https://rust-lang.zulipchat.com/#narrow/stream/131828-t-compiler/topic/How.20to.20declare.20new.20langauge.20feature.3F
I don't know if this is at all reasonable, but at least tests seem to pass locally. That probably means that we can remove/rename to something more resonable the feature in libcore in the next release?
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?
2
+
--> $DIR/rustc-private.rs:3:1
3
+
|
4
+
LL | extern crate libc;
5
+
| ^^^^^^^^^^^^^^^^^^
6
+
|
7
+
= note: for more information, see https://github.com/rust-lang/rust/issues/27812
8
+
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
9
+
10
+
error: aborting due to previous error
11
+
12
+
For more information about this error, try `rustc --explain E0658`.
0 commit comments