Normalise notes with the/is

This commit is contained in:
varkor 2020-01-22 23:57:38 +00:00
parent f4f96e2943
commit 24a2929ed1
369 changed files with 423 additions and 423 deletions

View File

@ -259,7 +259,7 @@ pub fn struct_lint_level<'a>(
&mut err,
DiagnosticMessageId::from(lint),
src,
"lint level defined here",
"the lint level is defined here",
);
if lint_attr_name.as_str() != name {
let level_str = level.as_str();

View File

@ -204,17 +204,17 @@ impl LanguageItemCollector<'tcx> {
},
};
if let Some(span) = self.tcx.hir().span_if_local(original_def_id) {
err.span_note(span, "first defined here");
err.span_note(span, "the lang item is first defined here");
} else {
match self.tcx.extern_crate(original_def_id) {
Some(ExternCrate {dependency_of, ..}) => {
err.note(&format!(
"first defined in crate `{}` (which `{}` depends on)",
"the lang item is first defined in crate `{}` (which `{}` depends on)",
self.tcx.crate_name(original_def_id.krate),
self.tcx.crate_name(*dependency_of)));
},
_ => {
err.note(&format!("first defined in crate `{}`.",
err.note(&format!("the lang item is first defined in crate `{}`.",
self.tcx.crate_name(original_def_id.krate)));
}
}

View File

@ -894,7 +894,7 @@ impl<'a, 'tcx> ImproperCTypesVisitor<'a, 'tcx> {
diag.note(note);
if let ty::Adt(def, _) = ty.kind {
if let Some(sp) = self.cx.tcx.hir().span_if_local(def.did) {
diag.span_note(sp, "type defined here");
diag.span_note(sp, "the type is defined here");
}
}
diag.emit();

View File

@ -625,7 +625,7 @@ fn check_short_circuiting_in_const_local(item: &Item<'_, 'tcx>) {
}
for local in locals {
let span = body.local_decls[local].source_info.span;
error.span_note(span, "more locals defined here");
error.span_note(span, "more locals are defined here");
}
error.emit();
}

View File

@ -73,10 +73,10 @@ fn collect_item(
)),
};
if let Some(span) = tcx.hir().span_if_local(original_def_id) {
err.span_note(span, "first defined here");
err.span_note(span, "the diagnostic item is first defined here");
} else {
err.note(&format!(
"first defined in crate `{}`.",
"the diagnostic item is first defined in crate `{}`.",
tcx.crate_name(original_def_id.krate)
));
}

View File

@ -2220,7 +2220,7 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o {
let mut could_refer_to = |kind: DefKind, def_id, also| {
let note_msg = format!(
"`{}` could{} refer to {} defined here",
"`{}` could{} refer to the {} defined here",
assoc_ident,
also,
kind.descr(def_id)

View File

@ -4,7 +4,7 @@ error: `[v2]` cannot be resolved, ignoring it.
LL | /// [v2]
| ^^ cannot be resolved, ignoring
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/deny-intra-link-resolution-failure.rs:1:9
|
LL | #![deny(intra_doc_link_resolution_failure)]

View File

@ -6,7 +6,7 @@ LL | |
LL | | pub struct Foo;
| |_______________^
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/deny-missing-docs-crate.rs:1:9
|
LL | #![deny(missing_docs)]

View File

@ -4,7 +4,7 @@ error: missing documentation for macro
LL | macro_rules! foo {
| ^^^^^^^^^^^^^^^^
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/deny-missing-docs-macro.rs:3:9
|
LL | #![deny(missing_docs)]

View File

@ -10,7 +10,7 @@ LL | | pub fn bar() {}
LL | | }
| |_^
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/doc-without-codeblock.rs:1:9
|
LL | #![deny(missing_doc_code_examples)]

View File

@ -4,7 +4,7 @@ error: `[TypeAlias::hoge]` cannot be resolved, ignoring it.
LL | /// [broken cross-reference](TypeAlias::hoge)
| ^^^^^^^^^^^^^^^ cannot be resolved, ignoring
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/intra-doc-alias-ice.rs:1:9
|
LL | #![deny(intra_doc_link_resolution_failure)]

View File

@ -4,7 +4,7 @@ error: `[i]` cannot be resolved, ignoring it.
LL | /// arr[i]
| ^ cannot be resolved, ignoring
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/intra-link-span-ice-55723.rs:1:9
|
LL | #![deny(intra_doc_link_resolution_failure)]

View File

@ -4,7 +4,7 @@ error: `ambiguous` is both a struct and a function
LL | /// [`ambiguous`] is ambiguous.
| ^^^^^^^^^^^ ambiguous link
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/intra-links-ambiguity.rs:1:9
|
LL | #![deny(intra_doc_link_resolution_failure)]

View File

@ -4,7 +4,7 @@ error: `[Foo::f#hola]` has an issue with the link anchor.
LL | /// Or maybe [Foo::f#hola].
| ^^^^^^^^^^^ struct fields cannot be followed by anchors
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/intra-links-anchors.rs:1:9
|
LL | #![deny(intra_doc_link_resolution_failure)]

View File

@ -8,7 +8,7 @@ LL | | /// println!("sup");
LL | | /// ```
| |_______^
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/lint-group.rs:7:9
|
LL | #![deny(rustdoc)]
@ -21,7 +21,7 @@ error: `[error]` cannot be resolved, ignoring it.
LL | /// what up, let's make an [error]
| ^^^^^ cannot be resolved, ignoring
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/lint-group.rs:7:9
|
LL | #![deny(rustdoc)]
@ -35,7 +35,7 @@ error: missing code example in this documentation
LL | /// wait, this doesn't have a doctest?
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/lint-group.rs:7:9
|
LL | #![deny(rustdoc)]

View File

@ -5,7 +5,7 @@ LL | / mod module1 {
LL | | }
| |_^
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/lint-missing-doc-code-example.rs:2:9
|
LL | #![deny(missing_doc_code_examples)]

View File

@ -8,7 +8,7 @@ LL | | /// assert!(false);
LL | | /// ```
| |___________^
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/private-item-doc-test.rs:1:9
|
LL | #![deny(private_doc_tests)]

View File

@ -4,7 +4,7 @@ error: Prefer FxHashMap over HashMap, it has better performance
LL | let _map: HashMap<String, String> = HashMap::default();
| ^^^^^^^ help: use: `FxHashMap`
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/default_hash_types.rs:10:8
|
LL | #[deny(rustc::default_hash_types)]

View File

@ -4,7 +4,7 @@ error: implementing `LintPass` by hand
LL | impl LintPass for Foo {
| ^^^^^^^^
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/lint_pass_impl_without_macro.rs:4:9
|
LL | #![deny(rustc::lint_pass_impl_without_macro)]

View File

@ -4,7 +4,7 @@ error: passing `Ty<'_>` by reference
LL | ty_ref: &Ty<'_>,
| ^^^^^^^ help: try passing by value: `Ty<'_>`
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/pass_ty_by_ref.rs:4:9
|
LL | #![deny(rustc::ty_pass_by_reference)]

View File

@ -4,7 +4,7 @@ error: usage of qualified `ty::Ty<'_>`
LL | ty_q: ty::Ty<'_>,
| ^^^^^^^^^^ help: try using it unqualified: `Ty<'_>`
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/qualified_ty_ty_ctxt.rs:4:9
|
LL | #![deny(rustc::usage_of_qualified_ty)]

View File

@ -4,7 +4,7 @@ error: usage of `ty::TyKind::<kind>`
LL | let kind = TyKind::Bool;
| ^^^^^^ help: try using ty::<kind> directly: `ty`
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/ty_tykind_usage.rs:9:8
|
LL | #[deny(rustc::usage_of_ty_tykind)]

View File

@ -12,7 +12,7 @@ error: item is named 'lintme'
LL | fn lintme() { }
| ^^^^^^^^^^^^^^^
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/lint-plugin-deny-attr.rs:7:9
|
LL | #![deny(test_lint)]

View File

@ -30,7 +30,7 @@ error: item is named 'lintme'
LL | fn lintme() { }
| ^^^^^^^^^^^^^^^
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/lint-plugin-forbid-attrs.rs:7:11
|
LL | #![forbid(test_lint)]

View File

@ -70,7 +70,7 @@ error: item is named 'lintme'
LL | fn lintme() { }
| ^^^^^^^^^^^^^^^
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/lint-tool-test.rs:13:9
|
LL | #![deny(clippy_group)]
@ -83,7 +83,7 @@ error: item is named 'lintmetoo'
LL | fn lintmetoo() { }
| ^^^^^^^^^^^^^^^^^^
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/lint-tool-test.rs:13:9
|
LL | #![deny(clippy_group)]

View File

@ -4,7 +4,7 @@ warning: anonymous parameters are deprecated and will be removed in the next edi
LL | fn foo(i32);
| ^^^ help: try naming the parameter or explicitly ignoring it: `_: i32`
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/anon-params-deprecated.rs:1:9
|
LL | #![warn(anonymous_parameters)]

View File

@ -4,7 +4,7 @@ error: associated const is never used: `BAR`
LL | const BAR: u32 = 1;
| ^^^^^^^^^^^^^^^^^^^
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/associated-const-dead-code.rs:1:9
|
LL | #![deny(dead_code)]

View File

@ -4,7 +4,7 @@ error: `await` is a keyword in the 2018 edition
LL | pub mod await {
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#await`
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/2015-edition-error-various-positions.rs:2:9
|
LL | #![deny(keyword_idents)]

View File

@ -4,7 +4,7 @@ error: `await` is a keyword in the 2018 edition
LL | pub mod await {
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#await`
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/2015-edition-warning.rs:4:9
|
LL | #![deny(keyword_idents)]

View File

@ -6,7 +6,7 @@ LL | return; bar().await;
| |
| any code following this expression is unreachable
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/unreachable-lint-1.rs:2:9
|
LL | #![deny(unreachable_code)]

View File

@ -4,7 +4,7 @@ error: lifetime parameter `'a` never used
LL | pub async fn func_with_unused_lifetime<'a>(s: &'a str) {
| ^^
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/unused-lifetime.rs:7:9
|
LL | #![deny(unused_lifetimes)]

View File

@ -4,7 +4,7 @@ error: unused attribute
LL | #[register_attr(attr)]
| ^^^^^^^^^^^^^^^^^^^^^^
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/register-attr-tool-unused.rs:1:9
|
LL | #![deny(unused)]

View File

@ -4,7 +4,7 @@ error: unused import: `std::option`
LL | use std::option;
| ^^^^^^^^^^^
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/bad-lint-cap2.rs:4:9
|
LL | #![deny(warnings)]

View File

@ -4,7 +4,7 @@ warning: unused import: `std::option`
LL | use std::option;
| ^^^^^^^^^^^
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/bad-lint-cap3.rs:5:9
|
LL | #![deny(warnings)]

View File

@ -9,7 +9,7 @@ LL | v.push(shared.len());
| |
| mutable borrow occurs here
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/two-phase-reservation-sharing-interference-future-compat-lint.rs:18:13
|
LL | #![warn(mutable_borrow_reservation_conflict)]
@ -28,7 +28,7 @@ LL | v.push(shared.len());
| |
| mutable borrow occurs here
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/two-phase-reservation-sharing-interference-future-compat-lint.rs:31:13
|
LL | #![deny(mutable_borrow_reservation_conflict)]

View File

@ -4,7 +4,7 @@ error: only `u8` can be cast into `char`
LL | const XYZ: char = 0x1F888 as char;
| ^^^^^^^^^^^^^^^ help: use a `char` literal instead: `'\u{1F888}'`
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/cast-char.rs:1:9
|
LL | #![deny(overflowing_literals)]

View File

@ -4,7 +4,7 @@ error: unused attribute
LL | #[cfg_attr(FALSE,)]
| ^^^^^^^^^^^^^^^^^^^
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/cfg-attr-empty-is-unused.rs:5:9
|
LL | #![deny(unused)]

View File

@ -30,7 +30,7 @@ warning: unused `MustUseDeprecated` that must be used
LL | MustUseDeprecated::new();
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/cfg-attr-multi-true.rs:7:9
|
LL | #![warn(unused_must_use)]

View File

@ -12,7 +12,7 @@ error: const parameter `x` should have an upper case name
LL | fn noop<const x: u32>() {
| ^ help: convert the identifier to upper case (notice the capitalization): `X`
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/const-parameter-uppercase-lint.rs:4:9
|
LL | #![deny(non_upper_case_globals)]

View File

@ -4,7 +4,7 @@ warning: index out of bounds: the len is 3 but the index is 4
LL | &{ [1, 2, 3][4] };
| ^^^^^^^^^^^^
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/array-literal-index-oob.rs:4:9
|
LL | #![warn(const_err)]

View File

@ -6,7 +6,7 @@ LL | const I_AM_ZERO_SIZED: () = [()][std::mem::size_of::<Self>()];
| |
| index out of bounds: the len is 1 but the index is 4
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/assoc_const_generic_impl.rs:3:9
|
LL | #![warn(const_err)]

View File

@ -6,7 +6,7 @@ LL | pub const A: i8 = -std::i8::MIN;
| |
| attempt to negate with overflow
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/const-err-early.rs:1:9
|
LL | #![deny(const_err)]

View File

@ -6,7 +6,7 @@ LL | pub const A: i8 = -std::i8::MIN;
| |
| attempt to negate with overflow
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/const-err-multi.rs:1:9
|
LL | #![deny(const_err)]

View File

@ -6,7 +6,7 @@ LL | const FOO: u8 = [5u8][1];
| |
| index out of bounds: the len is 1 but the index is 1
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/const-err.rs:5:9
|
LL | #![warn(const_err)]

View File

@ -4,7 +4,7 @@ error: this expression will panic at runtime
LL | let a = -std::i8::MIN;
| ^^^^^^^^^^^^^ attempt to negate with overflow
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/const-err2.rs:11:9
|
LL | #![deny(const_err)]

View File

@ -4,7 +4,7 @@ error: attempt to negate with overflow
LL | let a = -std::i8::MIN;
| ^^^^^^^^^^^^^
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/const-err3.rs:11:9
|
LL | #![deny(const_err)]

View File

@ -6,7 +6,7 @@ LL | const FOO: u32 = [X - Y, Y - X][(X < Y) as usize];
| |
| attempt to subtract with overflow
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/conditional_array_execution.rs:3:9
|
LL | #![warn(const_err)]

View File

@ -8,7 +8,7 @@ LL | | i8::MIN - 1,
LL | | );
| |_______-
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/const-eval-overflow2.rs:8:9
|
LL | #![deny(const_err)]

View File

@ -8,7 +8,7 @@ LL | | i8::MAX + 1,
LL | | );
| |_______-
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/const-eval-overflow2b.rs:8:9
|
LL | #![deny(const_err)]

View File

@ -8,7 +8,7 @@ LL | | i8::MIN * 2,
LL | | );
| |_______-
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/const-eval-overflow2c.rs:8:9
|
LL | #![deny(const_err)]

View File

@ -6,7 +6,7 @@ LL | const VOID: ! = { let x = 0 * std::mem::size_of::<T>(); [][x] };
| |
| index out of bounds: the len is 0 but the index is 0
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/index-out-of-bounds-never-type.rs:4:9
|
LL | #![warn(const_err)]

View File

@ -6,7 +6,7 @@ LL | const X: u32 = 0 - 1;
| |
| attempt to subtract with overflow
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/issue-43197.rs:3:9
|
LL | #![warn(const_err)]

View File

@ -6,7 +6,7 @@ LL | const VOID: ! = panic!();
| |
| the evaluated program panicked at 'explicit panic', $DIR/panic-assoc-never-type.rs:11:21
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/panic-assoc-never-type.rs:4:9
|
LL | #![warn(const_err)]

View File

@ -6,7 +6,7 @@ LL | const VOID: ! = panic!();
| |
| the evaluated program panicked at 'explicit panic', $DIR/panic-never-type.rs:8:17
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/panic-never-type.rs:4:9
|
LL | #![warn(const_err)]

View File

@ -4,7 +4,7 @@ warning: this expression will panic at runtime
LL | let _x = 0u32 - 1;
| ^^^^^^^^ attempt to subtract with overflow
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/promoted_errors.rs:5:9
|
LL | #![warn(const_err)]

View File

@ -4,7 +4,7 @@ warning: attempt to subtract with overflow
LL | println!("{}", 0u32 - 1);
| ^^^^^^^^
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/promoted_errors2.rs:5:9
|
LL | #![warn(const_err)]

View File

@ -6,7 +6,7 @@ LL | pub const Z: u32 = 0 - 1;
| |
| attempt to subtract with overflow
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/pub_const_err.rs:2:9
|
LL | #![warn(const_err)]

View File

@ -6,7 +6,7 @@ LL | pub const Z: u32 = 0 - 1;
| |
| attempt to subtract with overflow
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/pub_const_err_bin.rs:2:9
|
LL | #![warn(const_err)]

View File

@ -18,7 +18,7 @@ LL | | mem::transmute(out_of_bounds_ptr)
LL | | } };
| |____-
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/ub-nonnull.rs:14:8
|
LL | #[deny(const_err)] // this triggers a `const_err` so validation does not even happen

View File

@ -10,7 +10,7 @@ LL | unsafe { std::mem::transmute(()) }
LL | const FOO: [Empty; 3] = [foo(); 3];
| -----------------------------------
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/validate_uninhabited_zsts.rs:13:8
|
LL | #[warn(const_err)]

View File

@ -64,7 +64,7 @@ LL | |
LL | | };
| |__-
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/const_refers_to_static.rs:2:9
|
LL | #![warn(const_err)]

View File

@ -16,7 +16,7 @@ LL | | }
LL | | };
| |__-
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/mutable_const.rs:5:9
|
LL | #![deny(const_err)]

View File

@ -12,7 +12,7 @@ LL | const C: () = foo();
| |
| calling non-const function `foo`
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/non_const_fn.rs:4:9
|
LL | #![warn(const_err)]

View File

@ -4,7 +4,7 @@ error: use of deprecated item 'deprecation_lint::deprecated': text
LL | macro_test!();
| ^^^^^^^^^^^^^^
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/deprecation-lint-2.rs:4:9
|
LL | #![deny(deprecated)]

View File

@ -4,7 +4,7 @@ error: use of deprecated item 'deprecation_lint::deprecated_text': text
LL | macro_test_arg_nested!(deprecated_text);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/deprecation-lint-3.rs:4:9
|
LL | #![deny(deprecated)]

View File

@ -4,7 +4,7 @@ error: use of deprecated item 'loud::DeprecatedType'
LL | struct Foo(DeprecatedType);
| ^^^^^^^^^^^^^^
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/deprecation-lint-nested.rs:1:9
|
LL | #![deny(deprecated)]

View File

@ -4,7 +4,7 @@ error: use of deprecated item 'deprecation_lint::deprecated': text
LL | deprecated();
| ^^^^^^^^^^
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/deprecation-lint.rs:4:9
|
LL | #![deny(deprecated)]

View File

@ -4,7 +4,7 @@ error: use of item 'S' that will be deprecated in future version 99.99.99: effec
LL | let _ = S;
| ^
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/rustc_deprecation-in-future.rs:3:9
|
LL | #![deny(deprecated_in_future)]

View File

@ -4,7 +4,7 @@ error: use of deprecated item 'Foo::deprecated': replaced by `replacement`
LL | foo.deprecated();
| ^^^^^^^^^^ help: replace the use of the deprecated item: `replacement`
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/suggestion.rs:7:9
|
LL | #![deny(deprecated)]

View File

@ -4,7 +4,7 @@ error: unused attribute
LL | #[derive()]
| ^^^^^^^^^^^
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/deriving-meta-empty-trait-list.rs:1:9
|
LL | #![deny(unused)]

View File

@ -4,7 +4,7 @@ error: `#[derive]` can't be used on a `#[repr(packed)]` struct with type or cons
LL | #[derive(Copy, Clone, PartialEq, Eq)]
| ^^^^^
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/deriving-with-repr-packed.rs:1:9
|
LL | #![deny(safe_packed_borrows)]

View File

@ -7,7 +7,7 @@ LL | | loop {}
LL | | }
| |_^
|
= note: first defined in crate `std` (which `duplicate_entry_error` depends on)
= note: the lang item is first defined in crate `std` (which `duplicate_entry_error` depends on)
error: aborting due to previous error

View File

@ -4,7 +4,7 @@ error: `dyn` is a keyword in the 2018 edition
LL | pub mod dyn {
| ^^^ help: you can use a raw identifier to stay compatible: `r#dyn`
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/dyn-2015-edition-keyword-ident-lint.rs:10:9
|
LL | #![deny(keyword_idents)]

View File

@ -4,7 +4,7 @@ warning: unused extern crate
LL | extern crate edition_extern_crate_allowed;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove it
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/edition-extern-crate-allowed.rs:5:9
|
LL | #![warn(rust_2018_idioms)]

View File

@ -4,7 +4,7 @@ error: type annotations needed
LL | let _ = y.is_null();
| ^^^^^^^
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/edition-raw-pointer-method-2015.rs:5:8
|
LL | #[deny(warnings)]

View File

@ -4,7 +4,7 @@ error: function `BOGUS` should have a snake case name
LL | pub fn BOGUS() { }
| ^^^^^ help: convert the identifier to snake case: `bogus`
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/enable-unstable-lib-feature.rs:6:9
|
LL | #![deny(non_snake_case)] // To trigger a hard error

View File

@ -4,7 +4,7 @@ error: literal out of range for `i8`
LL | Ci8 = 223,
| ^^^
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/enum-discrim-too-small2.rs:1:9
|
LL | #![deny(overflowing_literals)]

View File

@ -4,7 +4,7 @@ warning: enum variant is more than three times larger (32 bytes) than the next l
LL | L(i64, i64, i64, i64),
| ^^^^^^^^^^^^^^^^^^^^^
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/enum-size-variance.rs:3:9
|
LL | #![warn(variant_size_differences)]

View File

@ -4,7 +4,7 @@ error: unreachable pattern
LL | _ => {/* ... */}
| ^
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/E0001.rs:1:9
|
LL | #![deny(unreachable_patterns)]

View File

@ -4,7 +4,7 @@ error[E0152]: found duplicate lang item `arc`
LL | struct Foo;
| ^^^^^^^^^^^
|
= note: first defined in crate `alloc` (which `std` depends on)
= note: the lang item is first defined in crate `alloc` (which `std` depends on)
error: aborting due to previous error

View File

@ -4,7 +4,7 @@ error: variable `X` should have a snake case name
LL | let X = 0;
| ^ help: convert the identifier to snake case (notice the capitalization): `x`
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/expr_attr_paren_order.rs:17:17
|
LL | #![deny(non_snake_case)]

View File

@ -4,7 +4,7 @@ error: type `somedep::S` from private dependency 'somedep' in public interface
LL | pub field: somedep::S,
| ^^^^^^^^^^^^^^^^^^^^^
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/public-and-private.rs:5:9
|
LL | #![deny(exported_private_dependencies)]

View File

@ -4,7 +4,7 @@ warning: unknown lint: `x5400`
LL | #![warn(x5400)]
| ^^^^^
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:36:28
|
LL | #![warn(unused_attributes, unknown_lints)]
@ -250,7 +250,7 @@ warning: unused attribute
LL | #[macro_use] fn f() { }
| ^^^^^^^^^^^^
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/issue-43106-gating-of-builtin-attrs.rs:36:9
|
LL | #![warn(unused_attributes, unknown_lints)]

View File

@ -4,7 +4,7 @@ error: unstable feature
LL | #![feature(intrinsics)]
| ^^^^^^^^^^
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/feature-gate-feature-gate.rs:1:11
|
LL | #![forbid(unstable_features)]

View File

@ -4,7 +4,7 @@ error: use of deprecated attribute `no_debug`: the `#[no_debug]` attribute was a
LL | #[no_debug]
| ^^^^^^^^^^^ help: remove this attribute
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/feature-gate-no-debug-2.rs:1:9
|
LL | #![deny(deprecated)]

View File

@ -4,7 +4,7 @@ warning: unused return value of `need_to_use_this_value` that must be used
LL | need_to_use_this_value();
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/fn_must_use.rs:3:9
|
LL | #![warn(unused_must_use)]

View File

@ -4,7 +4,7 @@ error: anonymous parameters are deprecated and will be removed in the next editi
LL | fn f(u8) {}
| ^^ help: try naming the parameter or explicitly ignoring it: `_: u8`
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/future-incompatible-lint-group.rs:1:9
|
LL | #![deny(future_incompatible)]

View File

@ -6,7 +6,7 @@ LL | #[no_mangle]
LL | pub fn foo<T>() {}
| ^^^^^^^^^^^^^^^^^^
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/generic-no-mangle.rs:1:9
|
LL | #![deny(no_mangle_generic_items)]

View File

@ -4,7 +4,7 @@ error: unused extern crate
LL | extern crate core;
| ^^^^^^^^^^^^^^^^^^ help: remove it
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/extern-crate-used.rs:6:9
|
LL | #![deny(unused_extern_crates)]

View File

@ -40,7 +40,7 @@ warning: glob import doesn't reexport anything because no candidate is public en
LL | pub use super::*;
| ^^^^^^^^
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/reexports.rs:1:9
|
LL | #![warn(unused_imports)]

View File

@ -52,7 +52,7 @@ error: unused import: `qux::quy`
LL | use qux::quy;
| ^^^^^^^^
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/unresolved-imports-used.rs:2:9
|
LL | #![deny(unused_imports)]

View File

@ -4,7 +4,7 @@ error: unused `#[macro_use]` import
LL | #[macro_use]
| ^^^^^^^^^^^^
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/unused-macro-use.rs:1:9
|
LL | #![deny(unused)]

View File

@ -4,7 +4,7 @@ error: unused import: `super::f`
LL | pub(super) use super::f;
| ^^^^^^^^
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/unused.rs:1:9
|
LL | #![deny(unused)]

View File

@ -3,7 +3,7 @@
#![allow(unused)]
#![deny(elided_lifetimes_in_paths)]
//~^ NOTE lint level defined here
//~^ NOTE the lint level is defined here
use std::cell::{RefCell, Ref};

View File

@ -3,7 +3,7 @@
#![allow(unused)]
#![deny(elided_lifetimes_in_paths)]
//~^ NOTE lint level defined here
//~^ NOTE the lint level is defined here
use std::cell::{RefCell, Ref};

View File

@ -4,7 +4,7 @@ error: hidden lifetime parameters in types are deprecated
LL | fn foo(x: &Foo) {
| ^^^- help: indicate the anonymous lifetime: `<'_>`
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/elided-lifetimes.rs:5:9
|
LL | #![deny(elided_lifetimes_in_paths)]

View File

@ -12,7 +12,7 @@ error: unused attribute
LL | #[plugin(bla)]
| ^^^^^^^^^^^^^^
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/invalid-plugin-attr.rs:1:9
|
LL | #![deny(unused_attributes)]

View File

@ -5,7 +5,7 @@ LL | / #![deny(missing_docs)]
LL | | #![crate_type="lib"]
| |____________________^
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/issue-10656.rs:1:9
|
LL | #![deny(missing_docs)]

View File

@ -4,7 +4,7 @@ error: unreachable pattern
LL | &IntList::Cons(val, box IntList::Nil) => IntList::Cons(val, box IntList::Nil),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/issue-12116.rs:5:9
|
LL | #![deny(unreachable_patterns)]

View File

@ -4,7 +4,7 @@ error: unreachable pattern
LL | &[10,a, ref rest @ ..] => 10
| ^^^^^^^^^^^^^^^^^^^^^^
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/issue-12369.rs:1:9
|
LL | #![deny(unreachable_patterns)]

Some files were not shown because too many files have changed in this diff Show More