mirror of https://github.com/rust-lang/rust.git
![]() ``` 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. |
||
---|---|---|
.. | ||
allocator.rs | ||
allocator.stderr | ||
boxed.rs | ||
boxed.stderr | ||
dedup.rs | ||
dedup.stderr | ||
feature-gate-must_not_suspend.rs | ||
feature-gate-must_not_suspend.stderr | ||
gated.rs | ||
gated.stderr | ||
generic.rs | ||
handled.rs | ||
issue-89562.rs | ||
mutex.rs | ||
mutex.stderr | ||
other_items.rs | ||
other_items.stderr | ||
ref.rs | ||
ref.stderr | ||
return.rs | ||
return.stderr | ||
trait.rs | ||
trait.stderr | ||
tuple-mismatch.rs | ||
tuple-mismatch.stderr | ||
unit.rs | ||
unit.stderr | ||
warn.rs | ||
warn.stderr |