normalize use of backticks in compiler messages for librustc/lint
https://github.com/rust-lang/rust/issues/60532
This commit is contained in:
parent
96234d5363
commit
e5e1397adb
|
@ -94,19 +94,19 @@ declare_lint! {
|
|||
declare_lint! {
|
||||
pub UNUSED_FEATURES,
|
||||
Warn,
|
||||
"unused features found in crate-level #[feature] directives"
|
||||
"unused features found in crate-level `#[feature]` directives"
|
||||
}
|
||||
|
||||
declare_lint! {
|
||||
pub STABLE_FEATURES,
|
||||
Warn,
|
||||
"stable features found in #[feature] directive"
|
||||
"stable features found in `#[feature]` directive"
|
||||
}
|
||||
|
||||
declare_lint! {
|
||||
pub UNKNOWN_CRATE_TYPES,
|
||||
Deny,
|
||||
"unknown crate type found in #[crate_type] directive"
|
||||
"unknown crate type found in `#[crate_type]` directive"
|
||||
}
|
||||
|
||||
declare_lint! {
|
||||
|
|
|
@ -671,7 +671,7 @@ pub fn struct_lint_level<'a>(sess: &'a Session,
|
|||
sess.diag_note_once(
|
||||
&mut err,
|
||||
DiagnosticMessageId::from(lint),
|
||||
&format!("#[{}({})] on by default", level.as_str(), name));
|
||||
&format!("`#[{}({})]` on by default", level.as_str(), name));
|
||||
}
|
||||
LintSource::CommandLine(lint_flag_val) => {
|
||||
let flag = match level {
|
||||
|
@ -706,7 +706,7 @@ pub fn struct_lint_level<'a>(sess: &'a Session,
|
|||
if lint_attr_name.as_str() != name {
|
||||
let level_str = level.as_str();
|
||||
sess.diag_note_once(&mut err, DiagnosticMessageId::from(lint),
|
||||
&format!("#[{}({})] implied by #[{}({})]",
|
||||
&format!("`#[{}({})]` implied by `#[{}({})]`",
|
||||
level_str, name, level_str, lint_attr_name));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,5 +4,5 @@ warning: the feature `extern_prelude` has been stable since 1.30.0 and no longer
|
|||
LL | #![feature(extern_prelude, lang_items, start)]
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: #[warn(stable_features)] on by default
|
||||
= note: `#[warn(stable_features)]` on by default
|
||||
|
||||
|
|
|
@ -4,5 +4,5 @@ warning: the feature `extern_prelude` has been stable since 1.30.0 and no longer
|
|||
LL | #![feature(extern_prelude)]
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: #[warn(stable_features)] on by default
|
||||
= note: `#[warn(stable_features)]` on by default
|
||||
|
||||
|
|
|
@ -4,5 +4,5 @@ warning: unreachable block in `if` expression
|
|||
LL | fn foo() { if (return) { } }
|
||||
| ^^^
|
||||
|
|
||||
= note: #[warn(unreachable_code)] on by default
|
||||
= note: `#[warn(unreachable_code)]` on by default
|
||||
|
||||
|
|
|
@ -4,5 +4,5 @@ warning: unused attribute
|
|||
LL | #[macro_use()]
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: #[warn(unused_attributes)] on by default
|
||||
= note: `#[warn(unused_attributes)]` on by default
|
||||
|
||||
|
|
|
@ -4,5 +4,5 @@ warning: the feature `crate_in_paths` has been stable since 1.30.0 and no longer
|
|||
LL | #![feature(crate_in_paths)]
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: #[warn(stable_features)] on by default
|
||||
= note: `#[warn(stable_features)]` on by default
|
||||
|
||||
|
|
|
@ -4,5 +4,5 @@ warning: the feature `crate_in_paths` has been stable since 1.30.0 and no longer
|
|||
LL | #![feature(crate_in_paths)]
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: #[warn(stable_features)] on by default
|
||||
= note: `#[warn(stable_features)]` on by default
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ warning: `[error]` cannot be resolved, ignoring it...
|
|||
LL | /// [error]
|
||||
| ^^^^^ cannot be resolved, ignoring
|
||||
|
|
||||
= note: #[warn(intra_doc_link_resolution_failure)] on by default
|
||||
= note: `#[warn(intra_doc_link_resolution_failure)]` on by default
|
||||
= help: to escape `[` and `]` characters, just add '\' before them like `\[` or `\]`
|
||||
|
||||
warning: `[error1]` cannot be resolved, ignoring it...
|
||||
|
|
|
@ -4,7 +4,7 @@ warning: `[Foo::baz]` cannot be resolved, ignoring it...
|
|||
LL | //! Test with [Foo::baz], [Bar::foo], ...
|
||||
| ^^^^^^^^ cannot be resolved, ignoring
|
||||
|
|
||||
= note: #[warn(intra_doc_link_resolution_failure)] on by default
|
||||
= note: `#[warn(intra_doc_link_resolution_failure)]` on by default
|
||||
= help: to escape `[` and `]` characters, just add '\' before them like `\[` or `\]`
|
||||
|
||||
warning: `[Bar::foo]` cannot be resolved, ignoring it...
|
||||
|
|
|
@ -13,7 +13,7 @@ note: lint level defined here
|
|||
|
|
||||
LL | #![deny(rustdoc)]
|
||||
| ^^^^^^^
|
||||
= note: #[deny(private_doc_tests)] implied by #[deny(rustdoc)]
|
||||
= note: `#[deny(private_doc_tests)]` implied by `#[deny(rustdoc)]`
|
||||
|
||||
error: `[error]` cannot be resolved, ignoring it...
|
||||
--> $DIR/lint-group.rs:9:29
|
||||
|
@ -26,7 +26,7 @@ note: lint level defined here
|
|||
|
|
||||
LL | #![deny(rustdoc)]
|
||||
| ^^^^^^^
|
||||
= note: #[deny(intra_doc_link_resolution_failure)] implied by #[deny(rustdoc)]
|
||||
= note: `#[deny(intra_doc_link_resolution_failure)]` implied by `#[deny(rustdoc)]`
|
||||
= help: to escape `[` and `]` characters, just add '\' before them like `\[` or `\]`
|
||||
|
||||
error: Missing code example in this documentation
|
||||
|
@ -40,7 +40,7 @@ note: lint level defined here
|
|||
|
|
||||
LL | #![deny(rustdoc)]
|
||||
| ^^^^^^^
|
||||
= note: #[deny(missing_doc_code_examples)] implied by #[deny(rustdoc)]
|
||||
= note: `#[deny(missing_doc_code_examples)]` implied by `#[deny(rustdoc)]`
|
||||
|
||||
error: aborting due to 3 previous errors
|
||||
|
||||
|
|
|
@ -4,5 +4,5 @@ warning: use of deprecated item 'Encodable': derive(Encodable) is deprecated in
|
|||
LL | #[derive(Encodable)]
|
||||
| ^^^^^^^^^
|
||||
|
|
||||
= note: #[warn(deprecated)] on by default
|
||||
= note: `#[warn(deprecated)]` on by default
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ warning: item is named 'lintme'
|
|||
LL | fn lintme() { }
|
||||
| ^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: #[warn(test_lint)] on by default
|
||||
= note: `#[warn(test_lint)]` on by default
|
||||
|
||||
warning: item is named 'pleaselintme'
|
||||
--> $DIR/lint-group-plugin.rs:10:1
|
||||
|
@ -12,5 +12,5 @@ warning: item is named 'pleaselintme'
|
|||
LL | fn pleaselintme() { }
|
||||
| ^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: #[warn(please_lint)] on by default
|
||||
= note: `#[warn(please_lint)]` on by default
|
||||
|
||||
|
|
|
@ -9,5 +9,5 @@ note: lint level defined here
|
|||
|
|
||||
LL | #![warn(unused)]
|
||||
| ^^^^^^
|
||||
= note: #[warn(dead_code)] implied by #[warn(unused)]
|
||||
= note: `#[warn(dead_code)]` implied by `#[warn(unused)]`
|
||||
|
||||
|
|
|
@ -4,5 +4,5 @@ warning: item is named 'lintme'
|
|||
LL | fn lintme() { }
|
||||
| ^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: #[warn(test_lint)] on by default
|
||||
= note: `#[warn(test_lint)]` on by default
|
||||
|
||||
|
|
|
@ -4,5 +4,5 @@ warning: item is named 'lintme'
|
|||
LL | fn lintme() { }
|
||||
| ^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: #[warn(test_lint)] on by default
|
||||
= note: `#[warn(test_lint)]` on by default
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ warning: item is named 'lintme'
|
|||
LL | fn lintme() {}
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: #[warn(clippy::test_lint)] on by default
|
||||
= note: `#[warn(clippy::test_lint)]` on by default
|
||||
|
||||
warning: function is never used: `lintme`
|
||||
--> $DIR/lint-tool-cmdline-allow.rs:10:1
|
||||
|
@ -21,5 +21,5 @@ note: lint level defined here
|
|||
|
|
||||
LL | #![warn(unused)]
|
||||
| ^^^^^^
|
||||
= note: #[warn(dead_code)] implied by #[warn(unused)]
|
||||
= note: `#[warn(dead_code)]` implied by `#[warn(unused)]`
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ warning: lint name `test_lint` is deprecated and may not have an effect in the f
|
|||
LL | #![cfg_attr(foo, warn(test_lint))]
|
||||
| ^^^^^^^^^ help: change it to: `clippy::test_lint`
|
||||
|
|
||||
= note: #[warn(renamed_and_removed_lints)] on by default
|
||||
= note: `#[warn(renamed_and_removed_lints)]` on by default
|
||||
|
||||
warning: lint name `clippy_group` is deprecated and may not have an effect in the future. Also `cfg_attr(cargo-clippy)` won't be necessary anymore
|
||||
--> $DIR/lint-tool-test.rs:11:9
|
||||
|
@ -24,7 +24,7 @@ warning: unknown lint: `this_lint_does_not_exist`
|
|||
LL | #[deny(this_lint_does_not_exist)]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: #[warn(unknown_lints)] on by default
|
||||
= note: `#[warn(unknown_lints)]` on by default
|
||||
|
||||
warning: lint name `test_lint` is deprecated and may not have an effect in the future. Also `cfg_attr(cargo-clippy)` won't be necessary anymore
|
||||
--> $DIR/lint-tool-test.rs:8:23
|
||||
|
@ -43,7 +43,7 @@ note: lint level defined here
|
|||
|
|
||||
LL | #![deny(clippy_group)]
|
||||
| ^^^^^^^^^^^^
|
||||
= note: #[deny(clippy::test_lint)] implied by #[deny(clippy::group)]
|
||||
= note: `#[deny(clippy::test_lint)]` implied by `#[deny(clippy::group)]`
|
||||
|
||||
error: item is named 'lintmetoo'
|
||||
--> $DIR/lint-tool-test.rs:22:5
|
||||
|
@ -56,7 +56,7 @@ note: lint level defined here
|
|||
|
|
||||
LL | #![deny(clippy_group)]
|
||||
| ^^^^^^^^^^^^
|
||||
= note: #[deny(clippy::test_group)] implied by #[deny(clippy::group)]
|
||||
= note: `#[deny(clippy::test_group)]` implied by `#[deny(clippy::group)]`
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ LL | const B: i32 = (&A)[1];
|
|||
| |
|
||||
| index out of bounds: the len is 0 but the index is 1
|
||||
|
|
||||
= note: #[deny(const_err)] on by default
|
||||
= note: `#[deny(const_err)]` on by default
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ LL | const B: i32 = A[1];
|
|||
| |
|
||||
| index out of bounds: the len is 0 but the index is 1
|
||||
|
|
||||
= note: #[deny(const_err)] on by default
|
||||
= note: `#[deny(const_err)]` on by default
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ warning: where clauses are not enforced in type aliases
|
|||
LL | type _TaWhere1<T> where T: Iterator<Item: Copy> = T;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: #[warn(type_alias_bounds)] on by default
|
||||
= note: `#[warn(type_alias_bounds)]` on by default
|
||||
= help: the clause will not be checked when the type alias is used, and should be removed
|
||||
|
||||
warning: where clauses are not enforced in type aliases
|
||||
|
|
|
@ -9,7 +9,7 @@ note: lint level defined here
|
|||
|
|
||||
LL | #![deny(warnings)]
|
||||
| ^^^^^^^^
|
||||
= note: #[deny(unused_imports)] implied by #[deny(warnings)]
|
||||
= note: `#[deny(unused_imports)]` implied by `#[deny(warnings)]`
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -9,5 +9,5 @@ note: lint level defined here
|
|||
|
|
||||
LL | #![deny(warnings)]
|
||||
| ^^^^^^^^
|
||||
= note: #[warn(unused_imports)] implied by #[warn(warnings)]
|
||||
= note: `#[warn(unused_imports)]` implied by `#[warn(warnings)]`
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ warning: denote infinite loops with `loop { ... }`
|
|||
LL | while true {
|
||||
| ^^^^^^^^^^ help: use `loop`
|
||||
|
|
||||
= note: #[warn(while_true)] on by default
|
||||
= note: `#[warn(while_true)]` on by default
|
||||
|
||||
error[E0308]: mismatched types
|
||||
--> $DIR/block-must-not-have-result-while.rs:3:9
|
||||
|
|
|
@ -4,7 +4,7 @@ warning: denote infinite loops with `loop { ... }`
|
|||
LL | while true {
|
||||
| ^^^^^^^^^^ help: use `loop`
|
||||
|
|
||||
= note: #[warn(while_true)] on by default
|
||||
= note: `#[warn(while_true)]` on by default
|
||||
|
||||
error[E0499]: cannot borrow `*arg` as mutable more than once at a time
|
||||
--> $DIR/mut-borrow-in-loop.rs:10:25
|
||||
|
|
|
@ -31,7 +31,7 @@ LL | v.push(shared.len());
|
|||
| |
|
||||
| mutable borrow occurs here
|
||||
|
|
||||
= note: #[warn(mutable_borrow_reservation_conflict)] on by default
|
||||
= note: `#[warn(mutable_borrow_reservation_conflict)]` on by default
|
||||
= warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future
|
||||
= note: for more information, see issue #59159 <https://github.com/rust-lang/rust/issues/59159>
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ LL | v.push(shared.len());
|
|||
| |
|
||||
| mutable borrow occurs here
|
||||
|
|
||||
= note: #[warn(mutable_borrow_reservation_conflict)] on by default
|
||||
= note: `#[warn(mutable_borrow_reservation_conflict)]` on by default
|
||||
= warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future
|
||||
= note: for more information, see issue #59159 <https://github.com/rust-lang/rust/issues/59159>
|
||||
|
||||
|
|
|
@ -4,5 +4,5 @@ warning: denote infinite loops with `loop { ... }`
|
|||
LL | let s = "ZͨA͑ͦ͒͋ͤ͑̚L̄͑͋Ĝͨͥ̿͒̽̈́Oͥ͛ͭ!̏"; while true { break; }
|
||||
| ^^^^^^^^^^ help: use `loop`
|
||||
|
|
||||
= note: #[warn(while_true)] on by default
|
||||
= note: `#[warn(while_true)]` on by default
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ note: lint level defined here
|
|||
|
|
||||
LL | #![deny(unused)]
|
||||
| ^^^^^^
|
||||
= note: #[deny(unused_attributes)] implied by #[deny(unused)]
|
||||
= note: `#[deny(unused_attributes)]` implied by `#[deny(unused)]`
|
||||
|
||||
error: unused attribute
|
||||
--> $DIR/cfg-attr-empty-is-unused.rs:10:1
|
||||
|
|
|
@ -4,7 +4,7 @@ warning: use of deprecated item 'MustUseDeprecated'
|
|||
LL | impl MustUseDeprecated {
|
||||
| ^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: #[warn(deprecated)] on by default
|
||||
= note: `#[warn(deprecated)]` on by default
|
||||
|
||||
warning: use of deprecated item 'MustUseDeprecated'
|
||||
--> $DIR/cfg-attr-multi-true.rs:19:5
|
||||
|
|
|
@ -4,7 +4,7 @@ error: index out of bounds: the len is 3 but the index is 4
|
|||
LL | &{[1, 2, 3][4]};
|
||||
| ^^^^^^^^^^^^
|
||||
|
|
||||
= note: #[deny(const_err)] on by default
|
||||
= note: `#[deny(const_err)]` on by default
|
||||
|
||||
error: this expression will panic at runtime
|
||||
--> $DIR/array-literal-index-oob.rs:2:5
|
||||
|
|
|
@ -14,7 +14,7 @@ LL | const I32_REF_U8_UNION: u8 = unsafe { Nonsense { int_32_ref: &3 }.uint_
|
|||
| |
|
||||
| a raw memory access tried to access part of a pointer value as raw bytes
|
||||
|
|
||||
= note: #[deny(const_err)] on by default
|
||||
= note: `#[deny(const_err)]` on by default
|
||||
|
||||
error: any use of this value will cause an error
|
||||
--> $DIR/const-pointer-values-in-various-types.rs:30:45
|
||||
|
|
|
@ -6,7 +6,7 @@ LL | pub const Z: () = panic!("cheese");
|
|||
| |
|
||||
| the evaluated program panicked at 'cheese', $DIR/const_panic.rs:4:19
|
||||
|
|
||||
= note: #[deny(const_err)] on by default
|
||||
= note: `#[deny(const_err)]` on by default
|
||||
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
|
||||
|
||||
error: any use of this value will cause an error
|
||||
|
|
|
@ -6,7 +6,7 @@ LL | const Z: () = panic!("cheese");
|
|||
| |
|
||||
| the evaluated program panicked at 'cheese', $DIR/const_panic_libcore.rs:5:15
|
||||
|
|
||||
= note: #[deny(const_err)] on by default
|
||||
= note: `#[deny(const_err)]` on by default
|
||||
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
|
||||
|
||||
error: any use of this value will cause an error
|
||||
|
|
|
@ -6,7 +6,7 @@ LL | const Z: () = panic!("cheese");
|
|||
| |
|
||||
| the evaluated program panicked at 'cheese', $DIR/const_panic_libcore_main.rs:9:15
|
||||
|
|
||||
= note: #[deny(const_err)] on by default
|
||||
= note: `#[deny(const_err)]` on by default
|
||||
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
|
||||
|
||||
error: any use of this value will cause an error
|
||||
|
|
|
@ -6,7 +6,7 @@ LL | const X: bool = unsafe { &1 as *const i32 == &2 as *const i32 };
|
|||
| |
|
||||
| "pointer arithmetic or comparison" needs an rfc before being allowed inside constants
|
||||
|
|
||||
= note: #[deny(const_err)] on by default
|
||||
= note: `#[deny(const_err)]` on by default
|
||||
|
||||
error: any use of this value will cause an error
|
||||
--> $DIR/const_raw_ptr_ops.rs:12:28
|
||||
|
|
|
@ -4,7 +4,7 @@ error: index out of bounds: the len is 1 but the index is 1
|
|||
LL | array[1];
|
||||
| ^^^^^^^^
|
||||
|
|
||||
= note: #[deny(const_err)] on by default
|
||||
= note: `#[deny(const_err)]` on by default
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ LL | const X: u64 = *wat(42);
|
|||
| |
|
||||
| dangling pointer was dereferenced
|
||||
|
|
||||
= note: #[deny(const_err)] on by default
|
||||
= note: `#[deny(const_err)]` on by default
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ LL | const BAR: usize = [5, 6, 7][T::BOO];
|
|||
| |
|
||||
| index out of bounds: the len is 3 but the index is 42
|
||||
|
|
||||
= note: #[deny(const_err)] on by default
|
||||
= note: `#[deny(const_err)]` on by default
|
||||
|
||||
error[E0080]: evaluation of constant expression failed
|
||||
--> $DIR/issue-50814-2.rs:16:5
|
||||
|
|
|
@ -6,7 +6,7 @@ LL | const MAX: u8 = A::MAX + B::MAX;
|
|||
| |
|
||||
| attempt to add with overflow
|
||||
|
|
||||
= note: #[deny(const_err)] on by default
|
||||
= note: `#[deny(const_err)]` on by default
|
||||
|
||||
error[E0080]: evaluation of constant expression failed
|
||||
--> $DIR/issue-50814.rs:17:5
|
||||
|
|
|
@ -6,7 +6,7 @@ LL | const FOO: i32 = [][0];
|
|||
| |
|
||||
| index out of bounds: the len is 0 but the index is 0
|
||||
|
|
||||
= note: #[deny(const_err)] on by default
|
||||
= note: `#[deny(const_err)]` on by default
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ LL | const SHL_U8: u8 = unsafe { intrinsics::unchecked_shl(5_u8, 8) };
|
|||
| |
|
||||
| Overflowing shift by 8 in unchecked_shl
|
||||
|
|
||||
= note: #[deny(const_err)] on by default
|
||||
= note: `#[deny(const_err)]` on by default
|
||||
|
||||
error: any use of this value will cause an error
|
||||
--> $DIR/const-int-unchecked.rs:16:31
|
||||
|
|
|
@ -6,7 +6,7 @@ LL | const LEN: usize = ONE - TWO;
|
|||
| |
|
||||
| attempt to subtract with overflow
|
||||
|
|
||||
= note: #[deny(const_err)] on by default
|
||||
= note: `#[deny(const_err)]` on by default
|
||||
|
||||
error[E0080]: evaluation of constant value failed
|
||||
--> $DIR/const-len-underflow-separate-spans.rs:11:17
|
||||
|
|
|
@ -4,7 +4,7 @@ error: index out of bounds: the len is 3 but the index is 3
|
|||
LL | [0; 3][3u64 as usize];
|
||||
| ^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: #[deny(const_err)] on by default
|
||||
= note: `#[deny(const_err)]` on by default
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ error: index out of bounds: the len is 1 but the index is 1
|
|||
LL | println!("{}", xs[Enum::One as usize]);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: #[deny(const_err)] on by default
|
||||
= note: `#[deny(const_err)]` on by default
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ LL | const BAR: u32 = FOO[5];
|
|||
| |
|
||||
| index out of bounds: the len is 3 but the index is 5
|
||||
|
|
||||
= note: #[deny(const_err)] on by default
|
||||
= note: `#[deny(const_err)]` on by default
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ LL | | unsafe { Foo { y: &y }.long_live_the_unit }
|
|||
LL | | };
|
||||
| |__^ type validation failed: encountered dangling pointer in final constant
|
||||
|
|
||||
= note: #[deny(const_err)] on by default
|
||||
= note: `#[deny(const_err)]` on by default
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ LL | | &x
|
|||
LL | | };
|
||||
| |__^ type validation failed: encountered dangling pointer in final constant
|
||||
|
|
||||
= note: #[deny(const_err)] on by default
|
||||
= note: `#[deny(const_err)]` on by default
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ LL | fake_type()
|
|||
LL | const CONSTANT: i32 = unsafe { fake_type() };
|
||||
| ---------------------------------------------
|
||||
|
|
||||
= note: #[deny(const_err)] on by default
|
||||
= note: `#[deny(const_err)]` on by default
|
||||
|
||||
error[E0080]: erroneous constant used
|
||||
--> $DIR/uninhabited-const-issue-61744.rs:18:10
|
||||
|
|
|
@ -4,5 +4,5 @@ warning: use of deprecated item 'std::sync::atomic::ATOMIC_ISIZE_INIT': the `new
|
|||
LL | static FOO: AtomicIsize = ATOMIC_ISIZE_INIT;
|
||||
| ^^^^^^^^^^^^^^^^^ help: replace the use of the deprecated item: `AtomicIsize::new(0)`
|
||||
|
|
||||
= note: #[warn(deprecated)] on by default
|
||||
= note: `#[warn(deprecated)]` on by default
|
||||
|
||||
|
|
|
@ -4,5 +4,5 @@ warning: use of deprecated item 'deprecated_future': text
|
|||
LL | deprecated_future(); // ok; deprecated_in_future only applies to rustc_deprecated
|
||||
| ^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: #[warn(deprecated)] on by default
|
||||
= note: `#[warn(deprecated)]` on by default
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ note: lint level defined here
|
|||
|
|
||||
LL | #![deny(unused)]
|
||||
| ^^^^^^
|
||||
= note: #[deny(unused_attributes)] implied by #[deny(unused)]
|
||||
= note: `#[deny(unused_attributes)]` implied by `#[deny(unused)]`
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ LL |
|
|||
LL | (&mut self).bar();
|
||||
| ----------------- recursive call site
|
||||
|
|
||||
= note: #[warn(unconditional_recursion)] on by default
|
||||
= note: `#[warn(unconditional_recursion)]` on by default
|
||||
= help: a `loop` may express intention better if this is on purpose
|
||||
|
||||
error[E0596]: cannot borrow `self` as mutable, as it is not declared as mutable
|
||||
|
|
|
@ -9,5 +9,5 @@ note: lint level defined here
|
|||
|
|
||||
LL | #![warn(rust_2018_idioms)]
|
||||
| ^^^^^^^^^^^^^^^^
|
||||
= note: #[warn(unused_extern_crates)] implied by #[warn(rust_2018_idioms)]
|
||||
= note: `#[warn(unused_extern_crates)]` implied by `#[warn(rust_2018_idioms)]`
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ note: lint level defined here
|
|||
|
|
||||
LL | #[deny(warnings)]
|
||||
| ^^^^^^^^
|
||||
= note: #[deny(tyvar_behind_raw_pointer)] implied by #[deny(warnings)]
|
||||
= note: `#[deny(tyvar_behind_raw_pointer)]` implied by `#[deny(warnings)]`
|
||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2018 edition!
|
||||
= note: for more information, see issue #46906 <https://github.com/rust-lang/rust/issues/46906>
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ LL | const VALUE: u8 = unsafe { *REG_ADDR };
|
|||
| |
|
||||
| a memory access tried to interpret some bytes as a pointer
|
||||
|
|
||||
= note: #[deny(const_err)] on by default
|
||||
= note: `#[deny(const_err)]` on by default
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -192,7 +192,7 @@ warning: the feature `rust1` has been stable since 1.0.0 and no longer requires
|
|||
LL | #![feature(rust1)]
|
||||
| ^^^^^
|
||||
|
|
||||
= note: #[warn(stable_features)] on by default
|
||||
= note: `#[warn(stable_features)]` on by default
|
||||
|
||||
warning: unused attribute
|
||||
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:180:5
|
||||
|
|
|
@ -4,7 +4,7 @@ warning: attribute must be of the form `#[inline]` or `#[inline(always|never)]`
|
|||
LL | #[inline = "2100"] fn f() { }
|
||||
| ^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: #[warn(ill_formed_attribute_input)] on by default
|
||||
= note: `#[warn(ill_formed_attribute_input)]` on by default
|
||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
||||
= note: for more information, see issue #57571 <https://github.com/rust-lang/rust/issues/57571>
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ error: defaults for type parameters are only allowed in `struct`, `enum`, `type`
|
|||
LL | fn avg<T=i32>(_: T) {}
|
||||
| ^
|
||||
|
|
||||
= note: #[deny(invalid_type_param_default)] on by default
|
||||
= note: `#[deny(invalid_type_param_default)]` on by default
|
||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
||||
= note: for more information, see issue #36887 <https://github.com/rust-lang/rust/issues/36887>
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ note: lint level defined here
|
|||
|
|
||||
LL | #![deny(future_incompatible)]
|
||||
| ^^^^^^^^^^^^^^^^^^^
|
||||
= note: #[deny(anonymous_parameters)] implied by #[deny(future_incompatible)]
|
||||
= note: `#[deny(anonymous_parameters)]` implied by `#[deny(future_incompatible)]`
|
||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2018 edition!
|
||||
= note: for more information, see issue #41686 <https://github.com/rust-lang/rust/issues/41686>
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ LL | | no_hrtb(&mut t);
|
|||
LL | | }
|
||||
| |_^ cannot return without recursing
|
||||
|
|
||||
= note: #[warn(unconditional_recursion)] on by default
|
||||
= note: `#[warn(unconditional_recursion)]` on by default
|
||||
= help: a `loop` may express intention better if this is on purpose
|
||||
|
||||
warning: function cannot return without recursing
|
||||
|
|
|
@ -4,5 +4,5 @@ warning: the feature `crate_in_paths` has been stable since 1.30.0 and no longer
|
|||
LL | #![feature(decl_macro, crate_in_paths)]
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: #[warn(stable_features)] on by default
|
||||
= note: `#[warn(stable_features)]` on by default
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ LL | | println!("irrefutable pattern");
|
|||
LL | | });
|
||||
| |_______- in this macro invocation
|
||||
|
|
||||
= note: #[warn(irrefutable_let_patterns)] on by default
|
||||
= note: `#[warn(irrefutable_let_patterns)]` on by default
|
||||
|
||||
warning: irrefutable if-let pattern
|
||||
--> $DIR/if-let.rs:6:13
|
||||
|
|
|
@ -4,7 +4,7 @@ error: macro-expanded `macro_export` macros from the current crate cannot be ref
|
|||
LL | use exported;
|
||||
| ^^^^^^^^
|
||||
|
|
||||
= note: #[deny(macro_expanded_macro_exports_accessed_by_absolute_paths)] on by default
|
||||
= note: `#[deny(macro_expanded_macro_exports_accessed_by_absolute_paths)]` on by default
|
||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
||||
= note: for more information, see issue #52234 <https://github.com/rust-lang/rust/issues/52234>
|
||||
note: the macro is defined here
|
||||
|
|
|
@ -9,7 +9,7 @@ note: lint level defined here
|
|||
|
|
||||
LL | #![deny(unused)]
|
||||
| ^^^^^^
|
||||
= note: #[deny(unused_imports)] implied by #[deny(unused)]
|
||||
= note: `#[deny(unused_imports)]` implied by `#[deny(unused)]`
|
||||
|
||||
error: unused `#[macro_use]` import
|
||||
--> $DIR/unused-macro-use.rs:7:5
|
||||
|
|
|
@ -9,7 +9,7 @@ note: lint level defined here
|
|||
|
|
||||
LL | #![deny(unused)]
|
||||
| ^^^^^^
|
||||
= note: #[deny(unused_imports)] implied by #[deny(unused)]
|
||||
= note: `#[deny(unused_imports)]` implied by `#[deny(unused)]`
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ warning: type annotations needed
|
|||
LL | if data.is_null() {}
|
||||
| ^^^^^^^
|
||||
|
|
||||
= note: #[warn(tyvar_behind_raw_pointer)] on by default
|
||||
= note: `#[warn(tyvar_behind_raw_pointer)]` on by default
|
||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2018 edition!
|
||||
= note: for more information, see issue #46906 <https://github.com/rust-lang/rust/issues/46906>
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ warning: a method with this name may be added to the standard library in the fut
|
|||
LL | assert_eq!('x'.ipu_flatten(), 1);
|
||||
| ^^^^^^^^^^^
|
||||
|
|
||||
= note: #[warn(unstable_name_collisions)] on by default
|
||||
= note: `#[warn(unstable_name_collisions)]` on by default
|
||||
= warning: once this method is added to the standard library, the ambiguity may cause an error or change in behavior!
|
||||
= note: for more information, see issue #48919 <https://github.com/rust-lang/rust/issues/48919>
|
||||
= help: call with fully qualified syntax `inference_unstable_itertools::IpuItertools::ipu_flatten(...)` to keep using the current method
|
||||
|
|
|
@ -4,7 +4,7 @@ error: invalid `crate_type` value
|
|||
LL | #![crate_type="foo"]
|
||||
| ^^^^^
|
||||
|
|
||||
= note: #[deny(unknown_crate_types)] on by default
|
||||
= note: `#[deny(unknown_crate_types)]` on by default
|
||||
|
||||
error: invalid `crate_type` value
|
||||
--> $DIR/invalid-crate-type.rs:6:15
|
||||
|
|
|
@ -9,7 +9,7 @@ note: lint level defined here
|
|||
|
|
||||
LL | #![deny(warnings)]
|
||||
| ^^^^^^^^
|
||||
= note: #[deny(improper_ctypes)] implied by #[deny(warnings)]
|
||||
= note: `#[deny(improper_ctypes)]` implied by `#[deny(warnings)]`
|
||||
= help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct
|
||||
note: type defined here
|
||||
--> $DIR/issue-16250.rs:3:1
|
||||
|
|
|
@ -9,7 +9,7 @@ note: lint level defined here
|
|||
|
|
||||
LL | #![deny(warnings)]
|
||||
| ^^^^^^^^
|
||||
= note: #[deny(dead_code)] implied by #[deny(warnings)]
|
||||
= note: `#[deny(dead_code)]` implied by `#[deny(warnings)]`
|
||||
|
||||
error: constant `foo` should have an upper case name
|
||||
--> $DIR/issue-17718-const-naming.rs:4:7
|
||||
|
@ -22,7 +22,7 @@ note: lint level defined here
|
|||
|
|
||||
LL | #![deny(warnings)]
|
||||
| ^^^^^^^^
|
||||
= note: #[deny(non_upper_case_globals)] implied by #[deny(warnings)]
|
||||
= note: `#[deny(non_upper_case_globals)]` implied by `#[deny(warnings)]`
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ LL | |
|
|||
LL | | while true { break }; // but here we cite the whole loop
|
||||
| |____________________________^ help: use `loop`
|
||||
|
|
||||
= note: #[warn(while_true)] on by default
|
||||
= note: `#[warn(while_true)]` on by default
|
||||
|
||||
error[E0308]: mismatched types
|
||||
--> $DIR/issue-27042.rs:6:16
|
||||
|
|
|
@ -4,7 +4,7 @@ warning: private type `m1::Priv` in public interface (error E0446)
|
|||
LL | pub fn f(_: Priv) {}
|
||||
| ^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: #[warn(private_in_public)] on by default
|
||||
= note: `#[warn(private_in_public)]` on by default
|
||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
||||
= note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ note: lint level defined here
|
|||
|
|
||||
LL | #![deny(warnings)]
|
||||
| ^^^^^^^^
|
||||
= note: #[deny(unused_imports)] implied by #[deny(warnings)]
|
||||
= note: `#[deny(unused_imports)]` implied by `#[deny(warnings)]`
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ error: parenthesized type parameters may only be used with a `Fn` trait
|
|||
LL | { fn f<X: ::std::marker()::Send>() {} }
|
||||
| ^^
|
||||
|
|
||||
= note: #[deny(parenthesized_params_in_types_and_modules)] on by default
|
||||
= note: `#[deny(parenthesized_params_in_types_and_modules)]` on by default
|
||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
||||
= note: for more information, see issue #42238 <https://github.com/rust-lang/rust/issues/42238>
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ error: parenthesized type parameters may only be used with a `Fn` trait
|
|||
LL | let x: usize() = 1;
|
||||
| ^^
|
||||
|
|
||||
= note: #[deny(parenthesized_params_in_types_and_modules)] on by default
|
||||
= note: `#[deny(parenthesized_params_in_types_and_modules)]` on by default
|
||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
||||
= note: for more information, see issue #42238 <https://github.com/rust-lang/rust/issues/42238>
|
||||
|
||||
|
|
|
@ -9,5 +9,5 @@ note: lint level defined here
|
|||
|
|
||||
LL | #![warn(unused)]
|
||||
| ^^^^^^
|
||||
= note: #[warn(dead_code)] implied by #[warn(unused)]
|
||||
= note: `#[warn(dead_code)]` implied by `#[warn(unused)]`
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ error: a macro named `foo` has already been exported
|
|||
LL | macro_rules! foo { () => {} }
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `foo` already exported
|
||||
|
|
||||
= note: #[deny(duplicate_macro_exports)] on by default
|
||||
= note: `#[deny(duplicate_macro_exports)]` on by default
|
||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2018 edition!
|
||||
= note: for more information, see issue #35896 <https://github.com/rust-lang/rust/issues/35896>
|
||||
note: previous macro export is now shadowed
|
||||
|
|
|
@ -4,7 +4,7 @@ error: missing fragment specifier
|
|||
LL | macro_rules! m { ($i) => {} }
|
||||
| ^^
|
||||
|
|
||||
= note: #[deny(missing_fragment_specifier)] on by default
|
||||
= note: `#[deny(missing_fragment_specifier)]` on by default
|
||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
||||
= note: for more information, see issue #40107 <https://github.com/rust-lang/rust/issues/40107>
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ LL | const NUM: u8 = xyz();
|
|||
| |
|
||||
| calling non-const function `xyz`
|
||||
|
|
||||
= note: #[deny(const_err)] on by default
|
||||
= note: `#[deny(const_err)]` on by default
|
||||
|
||||
error: could not evaluate constant pattern
|
||||
--> $DIR/issue-43105.rs:9:9
|
||||
|
|
|
@ -6,7 +6,7 @@ LL | #[no_mangle] pub const RAH: usize = 5;
|
|||
| |
|
||||
| help: try a static value: `pub static`
|
||||
|
|
||||
= note: #[deny(no_mangle_const_items)] on by default
|
||||
= note: `#[deny(no_mangle_const_items)]` on by default
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ error: index out of bounds: the len is 1 but the index is 1
|
|||
LL | [1][1.5 as usize];
|
||||
| ^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: #[deny(const_err)] on by default
|
||||
= note: `#[deny(const_err)]` on by default
|
||||
|
||||
error: index out of bounds: the len is 1 but the index is 1
|
||||
--> $DIR/issue-54348.rs:4:5
|
||||
|
|
|
@ -12,7 +12,7 @@ note: lint level defined here
|
|||
|
|
||||
LL | #![deny(warnings)]
|
||||
| ^^^^^^^^
|
||||
= note: #[deny(late_bound_lifetime_arguments)] implied by #[deny(warnings)]
|
||||
= note: `#[deny(late_bound_lifetime_arguments)]` implied by `#[deny(warnings)]`
|
||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
||||
= note: for more information, see issue #42868 <https://github.com/rust-lang/rust/issues/42868>
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ LL | fn generic<T>() {
|
|||
LL | generic::<Option<T>>();
|
||||
| ---------------------- recursive call site
|
||||
|
|
||||
= note: #[warn(unconditional_recursion)] on by default
|
||||
= note: `#[warn(unconditional_recursion)]` on by default
|
||||
= help: a `loop` may express intention better if this is on purpose
|
||||
|
||||
error: reached the recursion limit while instantiating `generic::<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<i32>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>`
|
||||
|
|
|
@ -4,7 +4,7 @@ error: literal out of range for `u8`
|
|||
LL | let x: u8 = 256;
|
||||
| ^^^
|
||||
|
|
||||
= note: #[deny(overflowing_literals)] on by default
|
||||
= note: `#[deny(overflowing_literals)]` on by default
|
||||
|
||||
error: range endpoint is out of range for `u8`
|
||||
--> $DIR/deny-overflowing-literals.rs:5:14
|
||||
|
|
|
@ -9,7 +9,7 @@ note: lint level defined here
|
|||
|
|
||||
LL | #![warn(unused)] // UI tests pass `-A unused` (#43896)
|
||||
| ^^^^^^
|
||||
= note: #[warn(unused_variables)] implied by #[warn(unused)]
|
||||
= note: `#[warn(unused_variables)]` implied by `#[warn(unused)]`
|
||||
|
||||
warning: unused variable: `mut_unused_var`
|
||||
--> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:33:13
|
||||
|
@ -54,7 +54,7 @@ note: lint level defined here
|
|||
|
|
||||
LL | #![warn(unused)] // UI tests pass `-A unused` (#43896)
|
||||
| ^^^^^^
|
||||
= note: #[warn(unused_assignments)] implied by #[warn(unused)]
|
||||
= note: `#[warn(unused_assignments)]` implied by `#[warn(unused)]`
|
||||
= help: maybe it is overwritten before being read?
|
||||
|
||||
warning: unused variable: `fire`
|
||||
|
@ -112,7 +112,7 @@ note: lint level defined here
|
|||
|
|
||||
LL | #![warn(unused)] // UI tests pass `-A unused` (#43896)
|
||||
| ^^^^^^
|
||||
= note: #[warn(unused_mut)] implied by #[warn(unused)]
|
||||
= note: `#[warn(unused_mut)]` implied by `#[warn(unused)]`
|
||||
|
||||
warning: variable does not need to be mutable
|
||||
--> $DIR/issue-47390-unused-variable-in-struct-pattern.rs:35:10
|
||||
|
|
|
@ -11,7 +11,7 @@ note: lint level defined here
|
|||
|
|
||||
LL | #![deny(unused)]
|
||||
| ^^^^^^
|
||||
= note: #[deny(unused_variables)] implied by #[deny(unused)]
|
||||
= note: `#[deny(unused_variables)]` implied by `#[deny(unused)]`
|
||||
|
||||
error: unused variable: `x`
|
||||
--> $DIR/issue-54180-unused-ref-field.rs:29:45
|
||||
|
|
|
@ -9,7 +9,7 @@ note: lint level defined here
|
|||
|
|
||||
LL | #![deny(warnings)]
|
||||
| ^^^^^^^^
|
||||
= note: #[deny(while_true)] implied by #[deny(warnings)]
|
||||
= note: `#[deny(while_true)]` implied by `#[deny(warnings)]`
|
||||
|
||||
warning: denote infinite loops with `loop { ... }`
|
||||
--> $DIR/lint-change-warnings.rs:15:5
|
||||
|
@ -17,7 +17,7 @@ warning: denote infinite loops with `loop { ... }`
|
|||
LL | while true {}
|
||||
| ^^^^^^^^^^ help: use `loop`
|
||||
|
|
||||
= note: #[warn(while_true)] on by default
|
||||
= note: `#[warn(while_true)]` on by default
|
||||
|
||||
error: denote infinite loops with `loop { ... }`
|
||||
--> $DIR/lint-change-warnings.rs:20:5
|
||||
|
@ -30,7 +30,7 @@ note: lint level defined here
|
|||
|
|
||||
LL | #[forbid(warnings)]
|
||||
| ^^^^^^^^
|
||||
= note: #[forbid(while_true)] implied by #[forbid(warnings)]
|
||||
= note: `#[forbid(while_true)]` implied by `#[forbid(warnings)]`
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ note: lint level defined here
|
|||
|
|
||||
LL | #![warn(nonstandard_style)]
|
||||
| ^^^^^^^^^^^^^^^^^
|
||||
= note: #[warn(non_camel_case_types)] implied by #[warn(nonstandard_style)]
|
||||
= note: `#[warn(non_camel_case_types)]` implied by `#[warn(nonstandard_style)]`
|
||||
|
||||
error: function `CamelCase` should have a snake case name
|
||||
--> $DIR/lint-group-nonstandard-style.rs:4:4
|
||||
|
@ -22,7 +22,7 @@ note: lint level defined here
|
|||
|
|
||||
LL | #![deny(nonstandard_style)]
|
||||
| ^^^^^^^^^^^^^^^^^
|
||||
= note: #[deny(non_snake_case)] implied by #[deny(nonstandard_style)]
|
||||
= note: `#[deny(non_snake_case)]` implied by `#[deny(nonstandard_style)]`
|
||||
|
||||
error: function `CamelCase` should have a snake case name
|
||||
--> $DIR/lint-group-nonstandard-style.rs:12:12
|
||||
|
@ -35,7 +35,7 @@ note: lint level defined here
|
|||
|
|
||||
LL | #[forbid(nonstandard_style)]
|
||||
| ^^^^^^^^^^^^^^^^^
|
||||
= note: #[forbid(non_snake_case)] implied by #[forbid(nonstandard_style)]
|
||||
= note: `#[forbid(non_snake_case)]` implied by `#[forbid(nonstandard_style)]`
|
||||
|
||||
error: static variable `bad` should have an upper case name
|
||||
--> $DIR/lint-group-nonstandard-style.rs:14:16
|
||||
|
@ -48,7 +48,7 @@ note: lint level defined here
|
|||
|
|
||||
LL | #[forbid(nonstandard_style)]
|
||||
| ^^^^^^^^^^^^^^^^^
|
||||
= note: #[forbid(non_upper_case_globals)] implied by #[forbid(nonstandard_style)]
|
||||
= note: `#[forbid(non_upper_case_globals)]` implied by `#[forbid(nonstandard_style)]`
|
||||
|
||||
warning: function `CamelCase` should have a snake case name
|
||||
--> $DIR/lint-group-nonstandard-style.rs:20:12
|
||||
|
@ -61,7 +61,7 @@ note: lint level defined here
|
|||
|
|
||||
LL | #![warn(nonstandard_style)]
|
||||
| ^^^^^^^^^^^^^^^^^
|
||||
= note: #[warn(non_snake_case)] implied by #[warn(nonstandard_style)]
|
||||
= note: `#[warn(non_snake_case)]` implied by `#[warn(nonstandard_style)]`
|
||||
|
||||
error: aborting due to 3 previous errors
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ LL |
|
|||
LL | impl Foo for dyn Send + Send {}
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `(dyn std::marker::Send + 'static)`
|
||||
|
|
||||
= note: #[deny(order_dependent_trait_objects)] on by default
|
||||
= note: `#[deny(order_dependent_trait_objects)]` on by default
|
||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
||||
= note: for more information, see issue #56484 <https://github.com/rust-lang/rust/issues/56484>
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ warning: use of deprecated item 'lint_output_format::foo': text
|
|||
LL | use lint_output_format::{foo, bar};
|
||||
| ^^^
|
||||
|
|
||||
= note: #[warn(deprecated)] on by default
|
||||
= note: `#[warn(deprecated)]` on by default
|
||||
|
||||
warning: use of deprecated item 'lint_output_format::foo': text
|
||||
--> $DIR/lint-output-format-2.rs:12:14
|
||||
|
|
|
@ -13,7 +13,7 @@ note: lint level defined here
|
|||
|
|
||||
LL | #[deny(warnings)]
|
||||
| ^^^^^^^^
|
||||
= note: #[deny(unused_variables)] implied by #[deny(warnings)]
|
||||
= note: `#[deny(unused_variables)]` implied by `#[deny(warnings)]`
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ warning: lint `raw_pointer_derive` has been removed: `using derive with raw poin
|
|||
LL | #[deny(raw_pointer_derive)]
|
||||
| ^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: #[warn(renamed_and_removed_lints)] on by default
|
||||
= note: `#[warn(renamed_and_removed_lints)]` on by default
|
||||
|
||||
error: unused variable: `unused`
|
||||
--> $DIR/lint-removed.rs:8:17
|
||||
|
|
|
@ -9,7 +9,7 @@ note: lint level defined here
|
|||
|
|
||||
LL | #[deny(unused)]
|
||||
| ^^^^^^
|
||||
= note: #[deny(unused_variables)] implied by #[deny(unused)]
|
||||
= note: `#[deny(unused_variables)]` implied by `#[deny(unused)]`
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ note: lint level defined here
|
|||
|
|
||||
LL | #[deny(unused)]
|
||||
| ^^^^^^
|
||||
= note: #[deny(unused_variables)] implied by #[deny(unused)]
|
||||
= note: `#[deny(unused_variables)]` implied by `#[deny(unused)]`
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ warning: lint `bare_trait_object` has been renamed to `bare_trait_objects`
|
|||
LL | #[deny(bare_trait_object)]
|
||||
| ^^^^^^^^^^^^^^^^^ help: use the new name: `bare_trait_objects`
|
||||
|
|
||||
= note: #[warn(renamed_and_removed_lints)] on by default
|
||||
= note: `#[warn(renamed_and_removed_lints)]` on by default
|
||||
|
||||
error: unused variable: `unused`
|
||||
--> $DIR/lint-renamed.rs:4:17
|
||||
|
@ -17,7 +17,7 @@ note: lint level defined here
|
|||
|
|
||||
LL | #[deny(unused)]
|
||||
| ^^^^^^
|
||||
= note: #[deny(unused_variables)] implied by #[deny(unused)]
|
||||
= note: `#[deny(unused_variables)]` implied by `#[deny(unused)]`
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ warning: denote infinite loops with `loop { ... }`
|
|||
LL | while (true) {}
|
||||
| ^^^^^^^^^^^^ help: use `loop`
|
||||
|
|
||||
= note: #[warn(while_true)] on by default
|
||||
= note: `#[warn(while_true)]` on by default
|
||||
|
||||
error: unnecessary parentheses around `match` head expression
|
||||
--> $DIR/lint-unnecessary-parens.rs:23:11
|
||||
|
|
|
@ -15,7 +15,7 @@ note: lint level defined here
|
|||
|
|
||||
LL | #![warn(unused)]
|
||||
| ^^^^^^
|
||||
= note: #[warn(unused_variables)] implied by #[warn(unused)]
|
||||
= note: `#[warn(unused_variables)]` implied by `#[warn(unused)]`
|
||||
|
||||
error: structure field `X` should have a snake case name
|
||||
--> $DIR/lint-uppercase-variables.rs:10:5
|
||||
|
|
|
@ -4,7 +4,7 @@ warning: unknown lint: `FOO_BAR`
|
|||
LL | #[allow(FOO_BAR)]
|
||||
| ^^^^^^^
|
||||
|
|
||||
= note: #[warn(unknown_lints)] on by default
|
||||
= note: `#[warn(unknown_lints)]` on by default
|
||||
|
||||
warning: unknown lint: `DEAD_CODE`
|
||||
--> $DIR/not_found.rs:8:8
|
||||
|
|
|
@ -23,6 +23,6 @@
|
|||
//~| NOTE reason in lint attribute must come last
|
||||
#![warn(missing_copy_implementations, reason)]
|
||||
//~^ WARN unknown lint
|
||||
//~| NOTE #[warn(unknown_lints)] on by default
|
||||
//~| NOTE `#[warn(unknown_lints)]` on by default
|
||||
|
||||
fn main() {}
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue