mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-30 20:44:34 +00:00 
			
		
		
		
	 19e44f4db4
			
		
	
	
		19e44f4db4
		
	
	
	
	
		
			
			``` warning: unknown lint: `test_unstable_lint` --> $DIR/warn-unknown-unstable-lint-inline.rs:4:10 | LL | #![allow(test_unstable_lint, another_unstable_lint)] | ^^^^^^^^^^^^^^^^^^ | = note: the `test_unstable_lint` lint is unstable = help: add `#![feature(test_unstable_lint)]` to the crate attributes to enable = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date note: the lint level is defined here --> $DIR/warn-unknown-unstable-lint-inline.rs:3:9 | LL | #![warn(unknown_lints)] | ^^^^^^^^^^^^^ warning: unknown lint: `test_unstable_lint` --> $DIR/warn-unknown-unstable-lint-inline.rs:4:29 | LL | #![allow(test_unstable_lint, another_unstable_lint)] | ^^^^^^^^^^^^^^^^^^^^^ | = note: the `test_unstable_lint` lint is unstable = help: add `#![feature(test_unstable_lint)]` to the crate attributes to enable = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date note: the lint level is defined here --> $DIR/warn-unknown-unstable-lint-inline.rs:3:9 | LL | #![warn(unknown_lints)] | ^^^^^^^^^^^^^ ``` This is particularly relevant when there are multiple lints in the same `warn` attribute. Pointing at the smaller span makes it clearer which one the warning is complaining about.
		
			
				
	
	
		
			19 lines
		
	
	
		
			799 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			799 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| error: unknown lint: `rustdoc::missing_doc_code_examples`
 | |
|   --> $DIR/feature-gate-rustdoc_missing_doc_code_examples.rs:4:10
 | |
|    |
 | |
| LL | #![allow(rustdoc::missing_doc_code_examples)]
 | |
|    |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 | |
|    |
 | |
|    = note: the `rustdoc::missing_doc_code_examples` lint is unstable
 | |
|    = note: see issue #101730 <https://github.com/rust-lang/rust/issues/101730> for more information
 | |
|    = help: add `#![feature(rustdoc_missing_doc_code_examples)]` to the crate attributes to enable
 | |
|    = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
 | |
| note: the lint level is defined here
 | |
|   --> $DIR/feature-gate-rustdoc_missing_doc_code_examples.rs:2:9
 | |
|    |
 | |
| LL | #![deny(unknown_lints)]
 | |
|    |         ^^^^^^^^^^^^^
 | |
| 
 | |
| error: aborting due to 1 previous error
 | |
| 
 |