Fix naming conventions for new lints
This commit is contained in:
parent
c2d46037fa
commit
e60eaf59df
65 changed files with 111 additions and 108 deletions
|
|
@ -9,7 +9,7 @@
|
|||
// except according to those terms.
|
||||
#![allow(warnings)]
|
||||
#![allow(unused_variables, dead_code, unused, bad_style)]
|
||||
#![deny(elided_lifetime_in_path)]
|
||||
#![deny(elided_lifetimes_in_paths)]
|
||||
|
||||
struct Foo<'a> { x: &'a u32 }
|
||||
fn foo(x: &Foo) {
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@ LL | fn foo(x: &Foo) {
|
|||
note: lint level defined here
|
||||
--> $DIR/ellided-lifetimes.rs:12:9
|
||||
|
|
||||
LL | #![deny(elided_lifetime_in_path)]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
LL | #![deny(elided_lifetimes_in_paths)]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
|||
|
|
@ -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_collision)] 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
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
// run-rustfix
|
||||
|
||||
#![feature(rust_2018_preview)]
|
||||
#![deny(absolute_path_not_starting_with_crate)]
|
||||
#![deny(absolute_paths_not_starting_with_crate)]
|
||||
|
||||
mod foo {
|
||||
crate trait Foo {
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
// run-rustfix
|
||||
|
||||
#![feature(rust_2018_preview)]
|
||||
#![deny(absolute_path_not_starting_with_crate)]
|
||||
#![deny(absolute_paths_not_starting_with_crate)]
|
||||
|
||||
mod foo {
|
||||
crate trait Foo {
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@ LL | let _: <foo::Baz as ::foo::Foo>::Bar = ();
|
|||
note: lint level defined here
|
||||
--> $DIR/edition-lint-fully-qualified-paths.rs:14:9
|
||||
|
|
||||
LL | #![deny(absolute_path_not_starting_with_crate)]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
LL | #![deny(absolute_paths_not_starting_with_crate)]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
= 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 TBD
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
// run-rustfix
|
||||
|
||||
#![feature(rust_2018_preview)]
|
||||
#![deny(absolute_path_not_starting_with_crate)]
|
||||
#![deny(absolute_paths_not_starting_with_crate)]
|
||||
#![allow(unused_imports)]
|
||||
#![allow(dead_code)]
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
// run-rustfix
|
||||
|
||||
#![feature(rust_2018_preview)]
|
||||
#![deny(absolute_path_not_starting_with_crate)]
|
||||
#![deny(absolute_paths_not_starting_with_crate)]
|
||||
#![allow(unused_imports)]
|
||||
#![allow(dead_code)]
|
||||
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@ LL | use foo::{bar::{baz::{}}};
|
|||
note: lint level defined here
|
||||
--> $DIR/edition-lint-nested-empty-paths.rs:14:9
|
||||
|
|
||||
LL | #![deny(absolute_path_not_starting_with_crate)]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
LL | #![deny(absolute_paths_not_starting_with_crate)]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
= 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 TBD
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
// run-rustfix
|
||||
|
||||
#![feature(rust_2018_preview)]
|
||||
#![deny(absolute_path_not_starting_with_crate)]
|
||||
#![deny(absolute_paths_not_starting_with_crate)]
|
||||
|
||||
use crate::foo::{a, b};
|
||||
//~^ ERROR absolute paths must start with
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
// run-rustfix
|
||||
|
||||
#![feature(rust_2018_preview)]
|
||||
#![deny(absolute_path_not_starting_with_crate)]
|
||||
#![deny(absolute_paths_not_starting_with_crate)]
|
||||
|
||||
use foo::{a, b};
|
||||
//~^ ERROR absolute paths must start with
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@ LL | use foo::{a, b};
|
|||
note: lint level defined here
|
||||
--> $DIR/edition-lint-nested-paths.rs:14:9
|
||||
|
|
||||
LL | #![deny(absolute_path_not_starting_with_crate)]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
LL | #![deny(absolute_paths_not_starting_with_crate)]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
= 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 TBD
|
||||
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
// run-rustfix
|
||||
|
||||
#![feature(rust_2018_preview)]
|
||||
#![deny(absolute_path_not_starting_with_crate)]
|
||||
#![deny(absolute_paths_not_starting_with_crate)]
|
||||
#![allow(unused)]
|
||||
|
||||
extern crate edition_lint_paths;
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
// run-rustfix
|
||||
|
||||
#![feature(rust_2018_preview)]
|
||||
#![deny(absolute_path_not_starting_with_crate)]
|
||||
#![deny(absolute_paths_not_starting_with_crate)]
|
||||
#![allow(unused)]
|
||||
|
||||
extern crate edition_lint_paths;
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@ LL | use ::bar::Bar;
|
|||
note: lint level defined here
|
||||
--> $DIR/edition-lint-paths.rs:15:9
|
||||
|
|
||||
LL | #![deny(absolute_path_not_starting_with_crate)]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
LL | #![deny(absolute_paths_not_starting_with_crate)]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
= 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 TBD
|
||||
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
// but we don't.
|
||||
|
||||
#![feature(rust_2018_preview)]
|
||||
#![deny(absolute_path_not_starting_with_crate)]
|
||||
#![deny(absolute_paths_not_starting_with_crate)]
|
||||
|
||||
extern crate edition_lint_paths;
|
||||
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
// but we don't.
|
||||
|
||||
#![feature(rust_2018_preview)]
|
||||
#![deny(absolute_path_not_starting_with_crate)]
|
||||
#![deny(absolute_paths_not_starting_with_crate)]
|
||||
|
||||
extern crate edition_lint_paths;
|
||||
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
// we can't drop the extern crate.
|
||||
|
||||
#![feature(rust_2018_preview)]
|
||||
#![deny(absolute_path_not_starting_with_crate)]
|
||||
#![deny(absolute_paths_not_starting_with_crate)]
|
||||
|
||||
extern crate edition_lint_paths;
|
||||
use self::edition_lint_paths::foo;
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
// we can't drop the extern crate.
|
||||
|
||||
#![feature(rust_2018_preview)]
|
||||
#![deny(absolute_path_not_starting_with_crate)]
|
||||
#![deny(absolute_paths_not_starting_with_crate)]
|
||||
|
||||
extern crate edition_lint_paths;
|
||||
use self::edition_lint_paths::foo;
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
// paths. We don't (and we leave the `extern crate` in place).
|
||||
|
||||
#![feature(rust_2018_preview)]
|
||||
#![deny(absolute_path_not_starting_with_crate)]
|
||||
#![deny(absolute_paths_not_starting_with_crate)]
|
||||
|
||||
extern crate edition_lint_paths as my_crate;
|
||||
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
// paths. We don't (and we leave the `extern crate` in place).
|
||||
|
||||
#![feature(rust_2018_preview)]
|
||||
#![deny(absolute_path_not_starting_with_crate)]
|
||||
#![deny(absolute_paths_not_starting_with_crate)]
|
||||
|
||||
extern crate edition_lint_paths as my_crate;
|
||||
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@ LL | use my_crate::foo;
|
|||
note: lint level defined here
|
||||
--> $DIR/extern-crate-rename.rs:18:9
|
||||
|
|
||||
LL | #![deny(absolute_path_not_starting_with_crate)]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
LL | #![deny(absolute_paths_not_starting_with_crate)]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
= 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 TBD
|
||||
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
// place).
|
||||
|
||||
#![feature(rust_2018_preview)]
|
||||
#![deny(absolute_path_not_starting_with_crate)]
|
||||
#![deny(absolute_paths_not_starting_with_crate)]
|
||||
|
||||
mod m {
|
||||
// Because this extern crate does not appear at the root, we
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
// place).
|
||||
|
||||
#![feature(rust_2018_preview)]
|
||||
#![deny(absolute_path_not_starting_with_crate)]
|
||||
#![deny(absolute_paths_not_starting_with_crate)]
|
||||
|
||||
mod m {
|
||||
// Because this extern crate does not appear at the root, we
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@ LL | use m::edition_lint_paths::foo;
|
|||
note: lint level defined here
|
||||
--> $DIR/extern-crate-submod.rs:19:9
|
||||
|
|
||||
LL | #![deny(absolute_path_not_starting_with_crate)]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
LL | #![deny(absolute_paths_not_starting_with_crate)]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
= 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 TBD
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#![deny(single_use_lifetime)]
|
||||
#![deny(single_use_lifetimes)]
|
||||
#![allow(dead_code)]
|
||||
#![allow(unused_variables)]
|
||||
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@ LL | a: for<'a> fn(&'a u32), //~ ERROR `'a` only used once
|
|||
note: lint level defined here
|
||||
--> $DIR/fn-types.rs:11:9
|
||||
|
|
||||
LL | #![deny(single_use_lifetime)]
|
||||
| ^^^^^^^^^^^^^^^^^^^
|
||||
LL | #![deny(single_use_lifetimes)]
|
||||
| ^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0581]: return type references lifetime `'a`, which is not constrained by the fn input types
|
||||
--> $DIR/fn-types.rs:22:22
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
// except according to those terms.
|
||||
|
||||
#![feature(in_band_lifetimes)]
|
||||
#![deny(single_use_lifetime)]
|
||||
#![deny(single_use_lifetimes)]
|
||||
#![allow(dead_code)]
|
||||
#![allow(unused_variables)]
|
||||
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@ LL | fn a(x: &'a u32, y: &'b u32) {
|
|||
note: lint level defined here
|
||||
--> $DIR/one-use-in-fn-argument-in-band.rs:12:9
|
||||
|
|
||||
LL | #![deny(single_use_lifetime)]
|
||||
| ^^^^^^^^^^^^^^^^^^^
|
||||
LL | #![deny(single_use_lifetimes)]
|
||||
| ^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: lifetime parameter `'a` only used once
|
||||
--> $DIR/one-use-in-fn-argument-in-band.rs:19:10
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#![deny(single_use_lifetime)]
|
||||
#![deny(single_use_lifetimes)]
|
||||
#![allow(dead_code)]
|
||||
#![allow(unused_variables)]
|
||||
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@ LL | fn a<'a>(x: &'a u32) { //~ ERROR `'a` only used once
|
|||
note: lint level defined here
|
||||
--> $DIR/one-use-in-fn-argument.rs:11:9
|
||||
|
|
||||
LL | #![deny(single_use_lifetime)]
|
||||
| ^^^^^^^^^^^^^^^^^^^
|
||||
LL | #![deny(single_use_lifetimes)]
|
||||
| ^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
// compile-pass
|
||||
|
||||
#![deny(single_use_lifetime)]
|
||||
#![deny(single_use_lifetimes)]
|
||||
#![allow(dead_code)]
|
||||
#![allow(unused_variables)]
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#![deny(single_use_lifetime)]
|
||||
#![deny(single_use_lifetimes)]
|
||||
#![allow(dead_code)]
|
||||
#![allow(unused_variables)]
|
||||
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@ LL | impl<'f> Foo<'f> { //~ ERROR `'f` only used once
|
|||
note: lint level defined here
|
||||
--> $DIR/one-use-in-inherent-impl-header.rs:11:9
|
||||
|
|
||||
LL | #![deny(single_use_lifetime)]
|
||||
| ^^^^^^^^^^^^^^^^^^^
|
||||
LL | #![deny(single_use_lifetimes)]
|
||||
| ^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#![deny(single_use_lifetime)]
|
||||
#![deny(single_use_lifetimes)]
|
||||
#![allow(dead_code)]
|
||||
#![allow(unused_variables)]
|
||||
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@ LL | fn inherent_a<'a>(&self, data: &'a u32) { //~ ERROR `'a` only used once
|
|||
note: lint level defined here
|
||||
--> $DIR/one-use-in-inherent-method-argument.rs:11:9
|
||||
|
|
||||
LL | #![deny(single_use_lifetime)]
|
||||
| ^^^^^^^^^^^^^^^^^^^
|
||||
LL | #![deny(single_use_lifetimes)]
|
||||
| ^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: lifetime parameter `'f` only used once
|
||||
--> $DIR/one-use-in-inherent-method-argument.rs:21:6
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#![deny(single_use_lifetime)]
|
||||
#![deny(single_use_lifetimes)]
|
||||
#![allow(dead_code)]
|
||||
#![allow(unused_variables)]
|
||||
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@ LL | impl<'f> Foo<'f> { //~ ERROR `'f` only used once
|
|||
note: lint level defined here
|
||||
--> $DIR/one-use-in-inherent-method-return.rs:11:9
|
||||
|
|
||||
LL | #![deny(single_use_lifetime)]
|
||||
| ^^^^^^^^^^^^^^^^^^^
|
||||
LL | #![deny(single_use_lifetimes)]
|
||||
| ^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@
|
|||
//
|
||||
// compile-pass
|
||||
|
||||
#![deny(single_use_lifetime)]
|
||||
#![deny(single_use_lifetimes)]
|
||||
#![allow(dead_code)]
|
||||
#![allow(unused_variables)]
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
// Test that we DO warn for a lifetime on an impl used only in `&self`
|
||||
// in a trait method.
|
||||
|
||||
#![deny(single_use_lifetime)]
|
||||
#![deny(single_use_lifetimes)]
|
||||
#![allow(dead_code)]
|
||||
#![allow(unused_variables)]
|
||||
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@ LL | fn next<'g>(&'g mut self) -> Option<Self::Item> { //~ ERROR `'g` only u
|
|||
note: lint level defined here
|
||||
--> $DIR/one-use-in-trait-method-argument.rs:14:9
|
||||
|
|
||||
LL | #![deny(single_use_lifetime)]
|
||||
| ^^^^^^^^^^^^^^^^^^^
|
||||
LL | #![deny(single_use_lifetimes)]
|
||||
| ^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
//
|
||||
// compile-pass
|
||||
|
||||
#![deny(single_use_lifetime)]
|
||||
#![deny(single_use_lifetimes)]
|
||||
#![allow(dead_code)]
|
||||
#![allow(unused_variables)]
|
||||
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
//
|
||||
// compile-pass
|
||||
|
||||
#![deny(single_use_lifetime)]
|
||||
#![deny(single_use_lifetimes)]
|
||||
#![allow(dead_code)]
|
||||
#![allow(unused_variables)]
|
||||
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
//
|
||||
// compile-pass
|
||||
|
||||
#![deny(single_use_lifetime)]
|
||||
#![deny(single_use_lifetimes)]
|
||||
#![allow(dead_code)]
|
||||
#![allow(unused_variables)]
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
// Test that we DO NOT warn for a lifetime used twice in an impl method and
|
||||
// header.
|
||||
|
||||
#![deny(single_use_lifetime)]
|
||||
#![deny(single_use_lifetimes)]
|
||||
#![allow(dead_code)]
|
||||
#![allow(unused_variables)]
|
||||
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@ LL | impl<'f> Foo<'f> { //~ ERROR `'f` only used once
|
|||
note: lint level defined here
|
||||
--> $DIR/two-uses-in-inherent-method-argument-and-return.rs:14:9
|
||||
|
|
||||
LL | #![deny(single_use_lifetime)]
|
||||
| ^^^^^^^^^^^^^^^^^^^
|
||||
LL | #![deny(single_use_lifetimes)]
|
||||
| ^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
//
|
||||
// compile-pass
|
||||
|
||||
#![deny(single_use_lifetime)]
|
||||
#![deny(single_use_lifetimes)]
|
||||
#![allow(dead_code)]
|
||||
#![allow(unused_variables)]
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
// Test that we DO warn when lifetime name is not used at all.
|
||||
|
||||
#![deny(unused_lifetime)]
|
||||
#![deny(unused_lifetimes)]
|
||||
#![allow(dead_code)]
|
||||
#![allow(unused_variables)]
|
||||
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@ LL | fn d<'a>() { } //~ ERROR `'a` never used
|
|||
note: lint level defined here
|
||||
--> $DIR/zero-uses-in-fn.rs:13:9
|
||||
|
|
||||
LL | #![deny(unused_lifetime)]
|
||||
| ^^^^^^^^^^^^^^^
|
||||
LL | #![deny(unused_lifetimes)]
|
||||
| ^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
// Test that we DO warn when lifetime name is not used at all.
|
||||
|
||||
#![deny(unused_lifetime)]
|
||||
#![deny(unused_lifetimes)]
|
||||
#![allow(dead_code)]
|
||||
#![allow(unused_variables)]
|
||||
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@ LL | impl<'a> Foo { } //~ ERROR `'a` never used
|
|||
note: lint level defined here
|
||||
--> $DIR/zero-uses-in-impl.rs:13:9
|
||||
|
|
||||
LL | #![deny(unused_lifetime)]
|
||||
| ^^^^^^^^^^^^^^^
|
||||
LL | #![deny(unused_lifetimes)]
|
||||
| ^^^^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ note: lint level defined here
|
|||
|
|
||||
LL | #![warn(rust_2018_idioms)]
|
||||
| ^^^^^^^^^^^^^^^^
|
||||
= note: #[warn(unnecessary_extern_crate)] implied by #[warn(rust_2018_idioms)]
|
||||
= note: #[warn(unnecessary_extern_crates)] implied by #[warn(rust_2018_idioms)]
|
||||
|
||||
warning: `extern crate` is unnecessary in the new edition
|
||||
--> $DIR/removing-extern-crate.rs:20:1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue