Skip to content

Commit dc4c163

Browse files
Rollup merge of #118123 - RalfJung:internal-lib-features, r=compiler-errors
Add support for making lib features internal We have the notion of an "internal" lang feature: a feature that is never intended to be stabilized, and using which can cause ICEs and other issues without that being considered a bug. This extends that idea to lib features as well. It is an alternative to rust-lang/rust#115623: instead of using an attribute to declare lib features internal, we simply do this based on the name. Everything ending in `_internals` or `_internal` is considered internal. Then we rename `core_intrinsics` to `core_intrinsics_internal`, which fixes rust-lang/rust#115597.
2 parents 4b808db + 32d3a13 commit dc4c163

File tree

1 file changed

+1
-1
lines changed
  • crates/proc-macro-srv/src

1 file changed

+1
-1
lines changed

crates/proc-macro-srv/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#![cfg(feature = "sysroot-abi")]
1414
#![feature(proc_macro_internals, proc_macro_diagnostic, proc_macro_span)]
1515
#![warn(rust_2018_idioms, unused_lifetimes, semicolon_in_expressions_from_macros)]
16-
#![allow(unreachable_pub)]
16+
#![allow(unreachable_pub, internal_features)]
1717

1818
extern crate proc_macro;
1919

0 commit comments

Comments
 (0)