mirror of
				https://github.com/rust-lang/rust-analyzer.git
				synced 2025-11-03 13:13:18 +00:00 
			
		
		
		
	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 https://github.com/rust-lang/rust/pull/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 https://github.com/rust-lang/rust/issues/115597.
This commit is contained in:
		
						commit
						76c972cb54
					
				@ -13,7 +13,7 @@
 | 
				
			|||||||
#![cfg(feature = "sysroot-abi")]
 | 
					#![cfg(feature = "sysroot-abi")]
 | 
				
			||||||
#![feature(proc_macro_internals, proc_macro_diagnostic, proc_macro_span)]
 | 
					#![feature(proc_macro_internals, proc_macro_diagnostic, proc_macro_span)]
 | 
				
			||||||
#![warn(rust_2018_idioms, unused_lifetimes, semicolon_in_expressions_from_macros)]
 | 
					#![warn(rust_2018_idioms, unused_lifetimes, semicolon_in_expressions_from_macros)]
 | 
				
			||||||
#![allow(unreachable_pub)]
 | 
					#![allow(unreachable_pub, internal_features)]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
extern crate proc_macro;
 | 
					extern crate proc_macro;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user