mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-04 19:29:07 +00:00
![]() ``` 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. |
||
---|---|---|
.. | ||
bare-urls.fixed | ||
bare-urls.rs | ||
bare-urls.stderr | ||
check-attr.rs | ||
check-attr.stderr | ||
check-fail.rs | ||
check-fail.stderr | ||
check.rs | ||
check.stderr | ||
deny-missing-docs-crate.rs | ||
deny-missing-docs-crate.stderr | ||
deny-missing-docs-macro.rs | ||
deny-missing-docs-macro.stderr | ||
doc_cfg_hide.rs | ||
doc_cfg_hide.stderr | ||
doc-attr.rs | ||
doc-attr.stderr | ||
doc-spotlight.fixed | ||
doc-spotlight.rs | ||
doc-spotlight.stderr | ||
doc-without-codeblock.rs | ||
doc-without-codeblock.stderr | ||
expect-tool-lint-rfc-2383.rs | ||
expect-tool-lint-rfc-2383.stderr | ||
feature-gate-rustdoc_missing_doc_code_examples.rs | ||
feature-gate-rustdoc_missing_doc_code_examples.stderr | ||
inline-doc-link.rs | ||
invalid-doc-attr.rs | ||
invalid-doc-attr.stderr | ||
invalid-html-self-closing-tag.rs | ||
invalid-html-self-closing-tag.stderr | ||
invalid-html-tags.rs | ||
invalid-html-tags.stderr | ||
lint-group.rs | ||
lint-group.stderr | ||
lint-missing-doc-code-example.rs | ||
lint-missing-doc-code-example.stderr | ||
no-crate-level-doc-lint.rs | ||
no-crate-level-doc-lint.stderr | ||
no-redundancy.rs | ||
redundant_explicit_links-utf8.rs | ||
redundant_explicit_links.fixed | ||
redundant_explicit_links.rs | ||
redundant_explicit_links.stderr | ||
renamed-lint-still-applies.rs | ||
renamed-lint-still-applies.stderr | ||
rustdoc-all-only-stable-lints.rs | ||
unknown-renamed-lints.rs | ||
unknown-renamed-lints.stderr | ||
unused-braces-lint.rs | ||
unused.rs |