diagnostics: fix trailing space

This commit is contained in:
klensy 2022-06-08 20:34:57 +03:00
parent d40f24e956
commit 0ff8ae3111
151 changed files with 484 additions and 484 deletions

View File

@ -1920,7 +1920,7 @@ impl EmitterWriter {
// Only show an underline in the suggestions if the suggestion is not the
// entirety of the code being shown and the displayed code is not multiline.
if let DisplaySuggestion::Diff | DisplaySuggestion::Underline = show_code_change {
draw_col_separator(&mut buffer, row_num, max_line_num_len + 1);
draw_col_separator_no_space(&mut buffer, row_num, max_line_num_len + 1);
for part in parts {
let span_start_pos = sm.lookup_char_pos(part.span.lo()).col_display;
let span_end_pos = sm.lookup_char_pos(part.span.hi()).col_display;

View File

@ -58,7 +58,7 @@ help: consider removing the borrow
|
LL - asm!("{}", const &0);
LL + asm!("{}", const 0);
|
|
error: invalid asm output
--> $DIR/type-check-1.rs:15:29

View File

@ -9,7 +9,7 @@ help: the clause will not be checked when the type alias is used, and should be
|
LL - type _TaWhere1<T> where T: Iterator<Item: Copy> = T;
LL + type _TaWhere1<T> = T;
|
|
warning: where clauses are not enforced in type aliases
--> $DIR/type-alias.rs:6:25
@ -21,7 +21,7 @@ help: the clause will not be checked when the type alias is used, and should be
|
LL - type _TaWhere2<T> where T: Iterator<Item: 'static> = T;
LL + type _TaWhere2<T> = T;
|
|
warning: where clauses are not enforced in type aliases
--> $DIR/type-alias.rs:7:25
@ -33,7 +33,7 @@ help: the clause will not be checked when the type alias is used, and should be
|
LL - type _TaWhere3<T> where T: Iterator<Item: 'static> = T;
LL + type _TaWhere3<T> = T;
|
|
warning: where clauses are not enforced in type aliases
--> $DIR/type-alias.rs:8:25
@ -45,7 +45,7 @@ help: the clause will not be checked when the type alias is used, and should be
|
LL - type _TaWhere4<T> where T: Iterator<Item: 'static + Copy + Send> = T;
LL + type _TaWhere4<T> = T;
|
|
warning: where clauses are not enforced in type aliases
--> $DIR/type-alias.rs:9:25
@ -57,7 +57,7 @@ help: the clause will not be checked when the type alias is used, and should be
|
LL - type _TaWhere5<T> where T: Iterator<Item: for<'a> Into<&'a u8>> = T;
LL + type _TaWhere5<T> = T;
|
|
warning: where clauses are not enforced in type aliases
--> $DIR/type-alias.rs:10:25
@ -69,7 +69,7 @@ help: the clause will not be checked when the type alias is used, and should be
|
LL - type _TaWhere6<T> where T: Iterator<Item: Iterator<Item: Copy>> = T;
LL + type _TaWhere6<T> = T;
|
|
warning: bounds on generic parameters are not enforced in type aliases
--> $DIR/type-alias.rs:12:20
@ -81,7 +81,7 @@ help: the bound will not be checked when the type alias is used, and should be r
|
LL - type _TaInline1<T: Iterator<Item: Copy>> = T;
LL + type _TaInline1<T> = T;
|
|
warning: bounds on generic parameters are not enforced in type aliases
--> $DIR/type-alias.rs:13:20
@ -93,7 +93,7 @@ help: the bound will not be checked when the type alias is used, and should be r
|
LL - type _TaInline2<T: Iterator<Item: 'static>> = T;
LL + type _TaInline2<T> = T;
|
|
warning: bounds on generic parameters are not enforced in type aliases
--> $DIR/type-alias.rs:14:20
@ -105,7 +105,7 @@ help: the bound will not be checked when the type alias is used, and should be r
|
LL - type _TaInline3<T: Iterator<Item: 'static>> = T;
LL + type _TaInline3<T> = T;
|
|
warning: bounds on generic parameters are not enforced in type aliases
--> $DIR/type-alias.rs:15:20
@ -117,7 +117,7 @@ help: the bound will not be checked when the type alias is used, and should be r
|
LL - type _TaInline4<T: Iterator<Item: 'static + Copy + Send>> = T;
LL + type _TaInline4<T> = T;
|
|
warning: bounds on generic parameters are not enforced in type aliases
--> $DIR/type-alias.rs:16:20
@ -129,7 +129,7 @@ help: the bound will not be checked when the type alias is used, and should be r
|
LL - type _TaInline5<T: Iterator<Item: for<'a> Into<&'a u8>>> = T;
LL + type _TaInline5<T> = T;
|
|
warning: bounds on generic parameters are not enforced in type aliases
--> $DIR/type-alias.rs:17:20
@ -141,7 +141,7 @@ help: the bound will not be checked when the type alias is used, and should be r
|
LL - type _TaInline6<T: Iterator<Item: Iterator<Item: Copy>>> = T;
LL + type _TaInline6<T> = T;
|
|
warning: 12 warnings emitted

View File

@ -8,7 +8,7 @@ help: try removing the `+`
|
LL - 2 + +2;
LL + 2 + 2;
|
|
error: aborting due to previous error

View File

@ -31,7 +31,7 @@ help: remove the `.await`
|
LL - [1; ().await];
LL + [1; ()];
|
|
error: aborting due to 4 previous errors

View File

@ -9,7 +9,7 @@ help: remove these parentheses
|
LL - fn main() { let _a = (async { }); }
LL + fn main() { let _a = async { }; }
|
|
warning: 1 warning emitted

View File

@ -37,7 +37,7 @@ help: remove the `.await`
|
LL - (|_| 2333).await;
LL + (|_| 2333);
|
|
error: aborting due to 4 previous errors

View File

@ -13,7 +13,7 @@ help: remove the `.await`
|
LL - boo().await;
LL + boo();
|
|
help: alternatively, consider making `fn boo` asynchronous
|
LL | async fn boo() {}

View File

@ -12,7 +12,7 @@ help: consider removing the borrow
|
LL - &panic!()
LL + panic!()
|
|
error: aborting due to previous error

View File

@ -13,7 +13,7 @@ help: try removing `&mut` here
|
LL - h(&mut b);
LL + h(b);
|
|
error[E0596]: cannot borrow `b` as mutable, as it is not declared as mutable
--> $DIR/mut-borrow-of-mut-ref.rs:11:12
@ -30,7 +30,7 @@ help: try removing `&mut` here
|
LL - g(&mut &mut b);
LL + g(&mut b);
|
|
error[E0596]: cannot borrow `b` as mutable, as it is not declared as mutable
--> $DIR/mut-borrow-of-mut-ref.rs:18:12
@ -47,7 +47,7 @@ help: try removing `&mut` here
|
LL - h(&mut &mut b);
LL + h(&mut b);
|
|
error[E0596]: cannot borrow `f` as mutable, as it is not declared as mutable
--> $DIR/mut-borrow-of-mut-ref.rs:35:5

View File

@ -8,7 +8,7 @@ help: consider borrowing the value
|
LL - let _reference: &'static i32 = unsafe { pointer as *const i32 as &'static i32 };
LL + let _reference: &'static i32 = unsafe { &*(pointer as *const i32) };
|
|
error: aborting due to previous error

View File

@ -12,7 +12,7 @@ help: consider removing the `?Sized` bound to make the type parameter `Sized`
|
LL - pub struct AtLeastByte<T: ?Sized> {
LL + pub struct AtLeastByte<T> {
|
|
help: borrowed types always have a statically known size
|
LL | value: &T,

View File

@ -21,7 +21,7 @@ help: consider removing the `?Sized` bound to make the type parameter `Sized`
|
LL - pub struct AtLeastByte<T: ?Sized> {
LL + pub struct AtLeastByte<T> {
|
|
help: borrowed types always have a statically known size
|
LL | value: &T,

View File

@ -8,7 +8,7 @@ help: the `const` keyword is only needed in the definition of the type
|
LL - impl Foo<const 3> for Bar {
LL + impl Foo<3> for Bar {
|
|
error: aborting due to previous error

View File

@ -8,7 +8,7 @@ help: the `const` keyword is only needed in the definition of the type
|
LL - impl Foo<N = const 3> for Bar {
LL + impl Foo<N = 3> for Bar {
|
|
error[E0658]: associated const equality is incomplete
--> $DIR/issue-89013.rs:9:10

View File

@ -13,7 +13,7 @@ help: remove these braces
|
LL - let _: A<{ 7 }>;
LL + let _: A<7>;
|
|
warning: 1 warning emitted

View File

@ -21,7 +21,7 @@ help: you can use the `?` operator instead
|
LL - Ok(try!(Ok(())))
LL + Ok(Ok(())?)
|
|
help: alternatively, you can still access the deprecated `try!()` macro using the "raw identifier" syntax
|
LL | Ok(r#try!(Ok(())))

View File

@ -71,7 +71,7 @@ help: try removing this `?`
|
LL - c()?
LL + c()
|
|
help: try adding an expression at the end of the block
|
LL ~ c()?;

View File

@ -13,7 +13,7 @@ help: try removing `&mut` here
|
LL - self.run(&mut self);
LL + self.run(self);
|
|
error[E0502]: cannot borrow `self` as mutable because it is also borrowed as immutable
--> $DIR/issue-34126.rs:6:18

View File

@ -11,7 +11,7 @@ help: consider removing the `?Sized` bound to make the type parameter `Sized`
|
LL - fn test1<T: ?Sized + Foo>(t: &T) {
LL + fn test1<T: Foo>(t: &T) {
|
|
error[E0277]: the size for values of type `T` cannot be known at compilation time
--> $DIR/dst-object-from-unsized-type.rs:13:23
@ -26,7 +26,7 @@ help: consider removing the `?Sized` bound to make the type parameter `Sized`
|
LL - fn test2<T: ?Sized + Foo>(t: &T) {
LL + fn test2<T: Foo>(t: &T) {
|
|
error[E0277]: the size for values of type `str` cannot be known at compilation time
--> $DIR/dst-object-from-unsized-type.rs:18:28

View File

@ -15,7 +15,7 @@ help: use `dyn`
|
LL - fn function(x: &SomeTrait, y: Box<SomeTrait>) {
LL + fn function(x: &dyn SomeTrait, y: Box<SomeTrait>) {
|
|
error: trait objects without an explicit `dyn` are deprecated
--> $DIR/dyn-2018-edition-lint.rs:4:35
@ -29,7 +29,7 @@ help: use `dyn`
|
LL - fn function(x: &SomeTrait, y: Box<SomeTrait>) {
LL + fn function(x: &SomeTrait, y: Box<dyn SomeTrait>) {
|
|
error: trait objects without an explicit `dyn` are deprecated
--> $DIR/dyn-2018-edition-lint.rs:17:14
@ -43,7 +43,7 @@ help: use `dyn`
|
LL - let _x: &SomeTrait = todo!();
LL + let _x: &dyn SomeTrait = todo!();
|
|
error: trait objects without an explicit `dyn` are deprecated
--> $DIR/dyn-2018-edition-lint.rs:4:17
@ -57,7 +57,7 @@ help: use `dyn`
|
LL - fn function(x: &SomeTrait, y: Box<SomeTrait>) {
LL + fn function(x: &dyn SomeTrait, y: Box<SomeTrait>) {
|
|
error: trait objects without an explicit `dyn` are deprecated
--> $DIR/dyn-2018-edition-lint.rs:4:17
@ -71,7 +71,7 @@ help: use `dyn`
|
LL - fn function(x: &SomeTrait, y: Box<SomeTrait>) {
LL + fn function(x: &dyn SomeTrait, y: Box<SomeTrait>) {
|
|
error: trait objects without an explicit `dyn` are deprecated
--> $DIR/dyn-2018-edition-lint.rs:4:35
@ -85,7 +85,7 @@ help: use `dyn`
|
LL - fn function(x: &SomeTrait, y: Box<SomeTrait>) {
LL + fn function(x: &SomeTrait, y: Box<dyn SomeTrait>) {
|
|
error: trait objects without an explicit `dyn` are deprecated
--> $DIR/dyn-2018-edition-lint.rs:4:35
@ -99,7 +99,7 @@ help: use `dyn`
|
LL - fn function(x: &SomeTrait, y: Box<SomeTrait>) {
LL + fn function(x: &SomeTrait, y: Box<dyn SomeTrait>) {
|
|
error: aborting due to 7 previous errors

View File

@ -8,7 +8,7 @@ help: add `dyn` keyword before this trait
|
LL - fn function(x: &SomeTrait, y: Box<SomeTrait>) {
LL + fn function(x: &dyn SomeTrait, y: Box<SomeTrait>) {
|
|
error[E0782]: trait objects must include the `dyn` keyword
--> $DIR/dyn-2021-edition-error.rs:3:35
@ -20,7 +20,7 @@ help: add `dyn` keyword before this trait
|
LL - fn function(x: &SomeTrait, y: Box<SomeTrait>) {
LL + fn function(x: &SomeTrait, y: Box<dyn SomeTrait>) {
|
|
error: aborting due to 2 previous errors

View File

@ -15,7 +15,7 @@ help: use `dyn`
|
LL - <fmt::Debug>::fmt(self, f)
LL + <dyn fmt::Debug>::fmt(self, f)
|
|
error: aborting due to previous error

View File

@ -24,7 +24,7 @@ help: `E::Empty4` is a unit variant, you need to write it without the parenthese
|
LL - let e4 = E::Empty4();
LL + let e4 = E::Empty4;
|
|
error[E0618]: expected function, found `empty_struct::XEmpty2`
--> $DIR/empty-struct-unit-expr.rs:18:15
@ -46,7 +46,7 @@ help: `XE::XEmpty4` is a unit variant, you need to write it without the parenthe
|
LL - let xe4 = XE::XEmpty4();
LL + let xe4 = XE::XEmpty4;
|
|
error: aborting due to 4 previous errors

View File

@ -10,7 +10,7 @@ help: primitive type `u32` doesn't have generic parameters
|
LL - type X = u32<i32>;
LL + type X = u32;
|
|
error: aborting due to previous error

View File

@ -10,7 +10,7 @@ help: primitive type `u32` doesn't have generic parameters
|
LL - type X = u32<'static>;
LL + type X = u32;
|
|
error: aborting due to previous error

View File

@ -8,7 +8,7 @@ help: consider importing the module directly
|
LL - use std::fmt::self;
LL + use std::fmt;
|
|
help: alternatively, use the multi-path `use` syntax to import `self`
|
LL | use std::fmt::{self};

View File

@ -14,7 +14,7 @@ help: consider borrowing the value
|
LL - v as &u8;
LL + &*v;
|
|
error: aborting due to 2 previous errors

View File

@ -13,7 +13,7 @@ help: `X::Entry` is a unit variant, you need to write it without the parentheses
|
LL - X::Entry();
LL + X::Entry;
|
|
error[E0618]: expected function, found `i32`
--> $DIR/E0618.rs:9:5

View File

@ -30,7 +30,7 @@ help: consider removing the borrow
|
LL - if &true {}
LL + if true {}
|
|
error[E0308]: mismatched types
--> $DIR/if-no-match-bindings.rs:21:8
@ -42,7 +42,7 @@ help: consider removing the borrow
|
LL - if &mut true {}
LL + if true {}
|
|
error[E0308]: mismatched types
--> $DIR/if-no-match-bindings.rs:24:11
@ -76,7 +76,7 @@ help: consider removing the borrow
|
LL - while &true {}
LL + while true {}
|
|
error[E0308]: mismatched types
--> $DIR/if-no-match-bindings.rs:27:11
@ -88,7 +88,7 @@ help: consider removing the borrow
|
LL - while &mut true {}
LL + while true {}
|
|
error: aborting due to 8 previous errors

View File

@ -9,7 +9,7 @@ help: if `Iterator::Item` is an associated type you're trying to set, use the as
|
LL - fn sum<I: Iterator<Item = ()>>(i: I) -> i32 where I::Item = i32 {
LL + fn sum<I: Iterator<Item = (), Item = i32>>(i: I) -> i32 where {
|
|
error: equality constraints are not yet supported in `where` clauses
--> $DIR/equality-bound.rs:5:41
@ -22,7 +22,7 @@ help: if `Iterator::Item` is an associated type you're trying to set, use the as
|
LL - fn sum2<I: Iterator>(i: I) -> i32 where I::Item = i32 {
LL + fn sum2<I: Iterator<Item = i32>>(i: I) -> i32 where {
|
|
error: equality constraints are not yet supported in `where` clauses
--> $DIR/equality-bound.rs:9:41

View File

@ -11,7 +11,7 @@ help: try removing the generic parameter and using `impl Trait` instead
|
LL - fn foo<U: Debug>(&self, _: &U) { }
LL + fn foo(&self, _: &impl Debug) { }
|
|
error[E0643]: method `bar` has incompatible signature for trait
--> $DIR/impl-generic-mismatch.rs:17:23

View File

@ -14,7 +14,7 @@ help: consider importing the module directly
|
LL - use foo::self;
LL + use foo;
|
|
help: alternatively, use the multi-path `use` syntax to import `self`
|
LL | use foo::{self};

View File

@ -9,7 +9,7 @@ help: a macro with this name exists at the root of the crate
|
LL - use issue_59764::foo::{baz, makro};
LL + use issue_59764::{makro, foo::{baz}};
|
|
error[E0432]: unresolved import `issue_59764::foo::makro`
--> $DIR/issue-59764.rs:21:9
@ -52,7 +52,7 @@ help: a macro with this name exists at the root of the crate
|
LL - use issue_59764::foo::{baz, makro, foobar};
LL + use issue_59764::{makro, foo::{baz, foobar}};
|
|
error[E0432]: unresolved import `issue_59764::foo::makro`
--> $DIR/issue-59764.rs:40:9
@ -97,7 +97,7 @@ help: a macro with this name exists at the root of the crate
|
LL - use issue_59764::{foobaz, foo::makro};
LL + use issue_59764::{makro, foobaz};
|
|
error[E0432]: unresolved import `issue_59764::foo::makro`
--> $DIR/issue-59764.rs:59:42
@ -110,7 +110,7 @@ help: a macro with this name exists at the root of the crate
|
LL - use issue_59764::{foobaz, foo::{baz, makro}};
LL + use issue_59764::{makro, foobaz, foo::{baz}};
|
|
error[E0432]: unresolved import `issue_59764::foo::makro`
--> $DIR/issue-59764.rs:68:13
@ -155,7 +155,7 @@ help: a macro with this name exists at the root of the crate
|
LL - use issue_59764::{foobaz, foo::{baz, makro, barbaz::{barfoo}}};
LL + use issue_59764::{makro, foobaz, foo::{baz, barbaz::{barfoo}}};
|
|
error[E0432]: unresolved import `issue_59764::foo::makro`
--> $DIR/issue-59764.rs:93:13
@ -196,7 +196,7 @@ help: a macro with this name exists at the root of the crate
|
LL - use issue_59764::foo::{baz, makro as foobar};
LL + use issue_59764::{makro as foobar, foo::{baz}};
|
|
error[E0432]: unresolved import `issue_59764::foo::makro`
--> $DIR/issue-59764.rs:120:17

View File

@ -48,7 +48,7 @@ help: consider removing the borrow
|
LL - foo(&"aaa".to_owned());
LL + foo("aaa".to_owned());
|
|
error[E0308]: mismatched types
--> $DIR/deref-suggestion.rs:32:9
@ -67,7 +67,7 @@ help: consider removing the borrow
|
LL - foo(&mut "aaa".to_owned());
LL + foo("aaa".to_owned());
|
|
error[E0308]: mismatched types
--> $DIR/deref-suggestion.rs:2:20

View File

@ -8,7 +8,7 @@ help: consider borrowing the value
|
LL - let _q: &isize = p as &isize;
LL + let _q: &isize = &*p;
|
|
error: aborting due to previous error

View File

@ -11,7 +11,7 @@ help: move the `..` to the end of the field list
|
LL - let Point { .., y, } = p;
LL + let Point { y, .. } = p;
|
|
error: expected `}`, found `,`
--> $DIR/issue-49257.rs:11:19
@ -26,7 +26,7 @@ help: move the `..` to the end of the field list
|
LL - let Point { .., y } = p;
LL + let Point { y , .. } = p;
|
|
error: expected `}`, found `,`
--> $DIR/issue-49257.rs:12:19

View File

@ -11,7 +11,7 @@ help: try removing this `?`
|
LL - missing_discourses()?
LL + missing_discourses()
|
|
help: try wrapping the expression in `Ok`
|
LL | Ok(missing_discourses()?)

View File

@ -27,7 +27,7 @@ help: use `dyn`
|
LL - eq::<dyn, Foo>
LL + eq::<dyn, dyn Foo>
|
|
error[E0107]: missing generics for trait `Foo`
--> $DIR/issue-86756.rs:5:15

View File

@ -59,7 +59,7 @@ help: or remove `.into_iter()` to iterate by value
|
LL - for _ in [1, 2, 3].into_iter() {}
LL + for _ in [1, 2, 3] {}
|
|
warning: 5 warnings emitted

View File

@ -11,7 +11,7 @@ help: use `dyn`
|
LL - pub fn function(_x: Box<SomeTrait>) {}
LL + pub fn function(_x: Box<dyn SomeTrait>) {}
|
|
warning: trait objects without an explicit `dyn` are deprecated
--> $DIR/allowed-group-warn-by-default-lint.rs:10:25
@ -25,7 +25,7 @@ help: use `dyn`
|
LL - pub fn function(_x: Box<SomeTrait>) {}
LL + pub fn function(_x: Box<dyn SomeTrait>) {}
|
|
warning: trait objects without an explicit `dyn` are deprecated
--> $DIR/allowed-group-warn-by-default-lint.rs:10:25
@ -39,7 +39,7 @@ help: use `dyn`
|
LL - pub fn function(_x: Box<SomeTrait>) {}
LL + pub fn function(_x: Box<dyn SomeTrait>) {}
|
|
warning: 3 warnings emitted

View File

@ -11,7 +11,7 @@ help: use `dyn`
|
LL - pub fn function(_x: Box<SomeTrait>) {}
LL + pub fn function(_x: Box<dyn SomeTrait>) {}
|
|
warning: trait objects without an explicit `dyn` are deprecated
--> $DIR/cap-lints-allow.rs:8:25
@ -25,7 +25,7 @@ help: use `dyn`
|
LL - pub fn function(_x: Box<SomeTrait>) {}
LL + pub fn function(_x: Box<dyn SomeTrait>) {}
|
|
warning: trait objects without an explicit `dyn` are deprecated
--> $DIR/cap-lints-allow.rs:8:25
@ -39,7 +39,7 @@ help: use `dyn`
|
LL - pub fn function(_x: Box<SomeTrait>) {}
LL + pub fn function(_x: Box<dyn SomeTrait>) {}
|
|
warning: 3 warnings emitted

View File

@ -11,7 +11,7 @@ help: use `dyn`
|
LL - pub fn function(_x: Box<SomeTrait>) {}
LL + pub fn function(_x: Box<dyn SomeTrait>) {}
|
|
warning: trait objects without an explicit `dyn` are deprecated
--> $DIR/lint-group-allowed-cli-warn-by-default-lint.rs:8:25
@ -25,7 +25,7 @@ help: use `dyn`
|
LL - pub fn function(_x: Box<SomeTrait>) {}
LL + pub fn function(_x: Box<dyn SomeTrait>) {}
|
|
warning: trait objects without an explicit `dyn` are deprecated
--> $DIR/lint-group-allowed-cli-warn-by-default-lint.rs:8:25
@ -39,7 +39,7 @@ help: use `dyn`
|
LL - pub fn function(_x: Box<SomeTrait>) {}
LL + pub fn function(_x: Box<dyn SomeTrait>) {}
|
|
warning: 3 warnings emitted

View File

@ -11,7 +11,7 @@ help: use `dyn`
|
LL - pub fn function(_x: Box<SomeTrait>) {}
LL + pub fn function(_x: Box<dyn SomeTrait>) {}
|
|
warning: trait objects without an explicit `dyn` are deprecated
--> $DIR/lint-group-allowed-lint-group.rs:10:25
@ -25,7 +25,7 @@ help: use `dyn`
|
LL - pub fn function(_x: Box<SomeTrait>) {}
LL + pub fn function(_x: Box<dyn SomeTrait>) {}
|
|
warning: trait objects without an explicit `dyn` are deprecated
--> $DIR/lint-group-allowed-lint-group.rs:10:25
@ -39,7 +39,7 @@ help: use `dyn`
|
LL - pub fn function(_x: Box<SomeTrait>) {}
LL + pub fn function(_x: Box<dyn SomeTrait>) {}
|
|
warning: 3 warnings emitted

View File

@ -11,7 +11,7 @@ help: use `dyn`
|
LL - pub fn function(_x: Box<SomeTrait>) {}
LL + pub fn function(_x: Box<dyn SomeTrait>) {}
|
|
warning: trait objects without an explicit `dyn` are deprecated
--> $DIR/lint-group-allowed-warn-by-default-lint.rs:10:25
@ -25,7 +25,7 @@ help: use `dyn`
|
LL - pub fn function(_x: Box<SomeTrait>) {}
LL + pub fn function(_x: Box<dyn SomeTrait>) {}
|
|
warning: trait objects without an explicit `dyn` are deprecated
--> $DIR/lint-group-allowed-warn-by-default-lint.rs:10:25
@ -39,7 +39,7 @@ help: use `dyn`
|
LL - pub fn function(_x: Box<SomeTrait>) {}
LL + pub fn function(_x: Box<dyn SomeTrait>) {}
|
|
warning: 3 warnings emitted

View File

@ -13,7 +13,7 @@ help: remove these parentheses
|
LL - return (1);
LL + return 1;
|
|
error: unnecessary parentheses around `return` value
--> $DIR/lint-unnecessary-parens.rs:16:12
@ -25,7 +25,7 @@ help: remove these parentheses
|
LL - return (X { y });
LL + return X { y };
|
|
error: unnecessary parentheses around type
--> $DIR/lint-unnecessary-parens.rs:19:46
@ -37,7 +37,7 @@ help: remove these parentheses
|
LL - pub fn unused_parens_around_return_type() -> (u32) {
LL + pub fn unused_parens_around_return_type() -> u32 {
|
|
error: unnecessary parentheses around block return value
--> $DIR/lint-unnecessary-parens.rs:25:9
@ -49,7 +49,7 @@ help: remove these parentheses
|
LL - (5)
LL + 5
|
|
error: unnecessary parentheses around block return value
--> $DIR/lint-unnecessary-parens.rs:27:5
@ -61,7 +61,7 @@ help: remove these parentheses
|
LL - (5)
LL + 5
|
|
error: unnecessary parentheses around assigned value
--> $DIR/lint-unnecessary-parens.rs:44:31
@ -73,7 +73,7 @@ help: remove these parentheses
|
LL - pub const CONST_ITEM: usize = (10);
LL + pub const CONST_ITEM: usize = 10;
|
|
error: unnecessary parentheses around assigned value
--> $DIR/lint-unnecessary-parens.rs:45:33
@ -85,7 +85,7 @@ help: remove these parentheses
|
LL - pub static STATIC_ITEM: usize = (10);
LL + pub static STATIC_ITEM: usize = 10;
|
|
error: unnecessary parentheses around function argument
--> $DIR/lint-unnecessary-parens.rs:49:9
@ -97,7 +97,7 @@ help: remove these parentheses
|
LL - bar((true));
LL + bar(true);
|
|
error: unnecessary parentheses around `if` condition
--> $DIR/lint-unnecessary-parens.rs:51:8
@ -109,7 +109,7 @@ help: remove these parentheses
|
LL - if (true) {}
LL + if true {}
|
|
error: unnecessary parentheses around `while` condition
--> $DIR/lint-unnecessary-parens.rs:52:11
@ -121,7 +121,7 @@ help: remove these parentheses
|
LL - while (true) {}
LL + while true {}
|
|
error: unnecessary parentheses around `match` scrutinee expression
--> $DIR/lint-unnecessary-parens.rs:53:11
@ -133,7 +133,7 @@ help: remove these parentheses
|
LL - match (true) {
LL + match true {
|
|
error: unnecessary parentheses around `let` scrutinee expression
--> $DIR/lint-unnecessary-parens.rs:56:16
@ -145,7 +145,7 @@ help: remove these parentheses
|
LL - if let 1 = (1) {}
LL + if let 1 = 1 {}
|
|
error: unnecessary parentheses around `let` scrutinee expression
--> $DIR/lint-unnecessary-parens.rs:57:19
@ -157,7 +157,7 @@ help: remove these parentheses
|
LL - while let 1 = (2) {}
LL + while let 1 = 2 {}
|
|
error: unnecessary parentheses around method argument
--> $DIR/lint-unnecessary-parens.rs:73:24
@ -169,7 +169,7 @@ help: remove these parentheses
|
LL - X { y: false }.foo((true));
LL + X { y: false }.foo(true);
|
|
error: unnecessary parentheses around assigned value
--> $DIR/lint-unnecessary-parens.rs:75:18
@ -181,7 +181,7 @@ help: remove these parentheses
|
LL - let mut _a = (0);
LL + let mut _a = 0;
|
|
error: unnecessary parentheses around assigned value
--> $DIR/lint-unnecessary-parens.rs:76:10
@ -193,7 +193,7 @@ help: remove these parentheses
|
LL - _a = (0);
LL + _a = 0;
|
|
error: unnecessary parentheses around assigned value
--> $DIR/lint-unnecessary-parens.rs:77:11
@ -205,7 +205,7 @@ help: remove these parentheses
|
LL - _a += (1);
LL + _a += 1;
|
|
error: aborting due to 17 previous errors

View File

@ -23,7 +23,7 @@ help: elide the single-use lifetime
|
LL - fn _foo<'a>(_x: &'a u32) {}
LL + fn _foo(_x: &u32) {}
|
|
error: aborting due to previous error; 1 warning emitted

View File

@ -21,7 +21,7 @@ help: remove these parentheses
|
LL - let mut registry_no = (format!("NX-{}", 74205));
LL + let mut registry_no = format!("NX-{}", 74205);
|
|
warning: variable does not need to be mutable
--> $DIR/suggestions.rs:48:13

View File

@ -13,7 +13,7 @@ help: remove these parentheses
|
LL - let (a) = 0;
LL + let a = 0;
|
|
error: unnecessary parentheses around pattern
--> $DIR/issue-54538-unused-parens-lint.rs:17:9
@ -25,7 +25,7 @@ help: remove these parentheses
|
LL - for (a) in 0..1 {}
LL + for a in 0..1 {}
|
|
error: unnecessary parentheses around pattern
--> $DIR/issue-54538-unused-parens-lint.rs:18:12
@ -37,7 +37,7 @@ help: remove these parentheses
|
LL - if let (a) = 0 {}
LL + if let a = 0 {}
|
|
error: unnecessary parentheses around pattern
--> $DIR/issue-54538-unused-parens-lint.rs:19:15
@ -49,7 +49,7 @@ help: remove these parentheses
|
LL - while let (a) = 0 {}
LL + while let a = 0 {}
|
|
error: unnecessary parentheses around pattern
--> $DIR/issue-54538-unused-parens-lint.rs:20:12
@ -61,7 +61,7 @@ help: remove these parentheses
|
LL - fn foo((a): u8) {}
LL + fn foo(a: u8) {}
|
|
error: unnecessary parentheses around pattern
--> $DIR/issue-54538-unused-parens-lint.rs:21:14
@ -73,7 +73,7 @@ help: remove these parentheses
|
LL - let _ = |(a): u8| 0;
LL + let _ = |a: u8| 0;
|
|
error: unnecessary parentheses around pattern
--> $DIR/issue-54538-unused-parens-lint.rs:49:12
@ -85,7 +85,7 @@ help: remove these parentheses
|
LL - if let (0 | 1) = 0 {}
LL + if let 0 | 1 = 0 {}
|
|
error: unnecessary parentheses around pattern
--> $DIR/issue-54538-unused-parens-lint.rs:50:13
@ -97,7 +97,7 @@ help: remove these parentheses
|
LL - if let ((0 | 1),) = (0,) {}
LL + if let (0 | 1,) = (0,) {}
|
|
error: unnecessary parentheses around pattern
--> $DIR/issue-54538-unused-parens-lint.rs:51:13
@ -109,7 +109,7 @@ help: remove these parentheses
|
LL - if let [(0 | 1)] = [0] {}
LL + if let [0 | 1] = [0] {}
|
|
error: unnecessary parentheses around pattern
--> $DIR/issue-54538-unused-parens-lint.rs:52:16
@ -121,7 +121,7 @@ help: remove these parentheses
|
LL - if let 0 | (1 | 2) = 0 {}
LL + if let 0 | 1 | 2 = 0 {}
|
|
error: unnecessary parentheses around pattern
--> $DIR/issue-54538-unused-parens-lint.rs:54:15
@ -133,7 +133,7 @@ help: remove these parentheses
|
LL - if let TS((0 | 1)) = TS(0) {}
LL + if let TS(0 | 1) = TS(0) {}
|
|
error: unnecessary parentheses around pattern
--> $DIR/issue-54538-unused-parens-lint.rs:56:20
@ -145,7 +145,7 @@ help: remove these parentheses
|
LL - if let NS { f: (0 | 1) } = (NS { f: 0 }) {}
LL + if let NS { f: 0 | 1 } = (NS { f: 0 }) {}
|
|
error: unnecessary parentheses around pattern
--> $DIR/issue-54538-unused-parens-lint.rs:66:9
@ -157,7 +157,7 @@ help: remove these parentheses
|
LL - (_) => {}
LL + _ => {}
|
|
error: unnecessary parentheses around pattern
--> $DIR/issue-54538-unused-parens-lint.rs:67:9
@ -169,7 +169,7 @@ help: remove these parentheses
|
LL - (y) => {}
LL + y => {}
|
|
error: unnecessary parentheses around pattern
--> $DIR/issue-54538-unused-parens-lint.rs:68:9
@ -181,7 +181,7 @@ help: remove these parentheses
|
LL - (ref r) => {}
LL + ref r => {}
|
|
error: unnecessary parentheses around pattern
--> $DIR/issue-54538-unused-parens-lint.rs:69:9
@ -193,7 +193,7 @@ help: remove these parentheses
|
LL - (e @ 1...2) => {}
LL + e @ 1...2 => {}
|
|
error: unnecessary parentheses around pattern
--> $DIR/issue-54538-unused-parens-lint.rs:75:9
@ -205,7 +205,7 @@ help: remove these parentheses
|
LL - (e @ &(1...2)) => {}
LL + e @ &(1...2) => {}
|
|
error: unnecessary parentheses around pattern
--> $DIR/issue-54538-unused-parens-lint.rs:76:10
@ -217,7 +217,7 @@ help: remove these parentheses
|
LL - &(_) => {}
LL + &_ => {}
|
|
error: unnecessary parentheses around pattern
--> $DIR/issue-54538-unused-parens-lint.rs:87:9
@ -229,7 +229,7 @@ help: remove these parentheses
|
LL - (_) => {}
LL + _ => {}
|
|
error: unnecessary parentheses around pattern
--> $DIR/issue-54538-unused-parens-lint.rs:88:9
@ -241,7 +241,7 @@ help: remove these parentheses
|
LL - (y) => {}
LL + y => {}
|
|
error: unnecessary parentheses around pattern
--> $DIR/issue-54538-unused-parens-lint.rs:89:9
@ -253,7 +253,7 @@ help: remove these parentheses
|
LL - (ref r) => {}
LL + ref r => {}
|
|
error: unnecessary parentheses around pattern
--> $DIR/issue-54538-unused-parens-lint.rs:90:9
@ -265,7 +265,7 @@ help: remove these parentheses
|
LL - (e @ 1..=2) => {}
LL + e @ 1..=2 => {}
|
|
error: unnecessary parentheses around pattern
--> $DIR/issue-54538-unused-parens-lint.rs:96:9
@ -277,7 +277,7 @@ help: remove these parentheses
|
LL - (e @ &(1..=2)) => {}
LL + e @ &(1..=2) => {}
|
|
error: unnecessary parentheses around pattern
--> $DIR/issue-54538-unused-parens-lint.rs:97:10
@ -289,7 +289,7 @@ help: remove these parentheses
|
LL - &(_) => {}
LL + &_ => {}
|
|
error: aborting due to 24 previous errors

View File

@ -13,7 +13,7 @@ help: remove these parentheses
|
LL - while let Some(_) = ({yield}) {}
LL + while let Some(_) = {yield} {}
|
|
error: unnecessary parentheses around `let` scrutinee expression
--> $DIR/issue-74883-unused-paren-baren-yield.rs:15:29
@ -25,7 +25,7 @@ help: remove these parentheses
|
LL - while let Some(_) = ((yield)) {}
LL + while let Some(_) = (yield) {}
|
|
error: unnecessary braces around block return value
--> $DIR/issue-74883-unused-paren-baren-yield.rs:16:10
@ -42,7 +42,7 @@ help: remove these braces
|
LL - {{yield}};
LL + {yield};
|
|
error: unnecessary parentheses around block return value
--> $DIR/issue-74883-unused-paren-baren-yield.rs:17:10
@ -54,7 +54,7 @@ help: remove these parentheses
|
LL - {( yield )};
LL + {yield};
|
|
error: unnecessary parentheses around block return value
--> $DIR/issue-74883-unused-paren-baren-yield.rs:18:30
@ -66,7 +66,7 @@ help: remove these parentheses
|
LL - while let Some(_) = {(yield)} {}
LL + while let Some(_) = {yield} {}
|
|
error: unnecessary braces around block return value
--> $DIR/issue-74883-unused-paren-baren-yield.rs:19:30
@ -78,7 +78,7 @@ help: remove these braces
|
LL - while let Some(_) = {{yield}} {}
LL + while let Some(_) = {yield} {}
|
|
error: aborting due to 6 previous errors

View File

@ -13,7 +13,7 @@ help: remove these parentheses
|
LL - for _ in (1..loop { break 2 }) {}
LL + for _ in 1..loop { break 2 } {}
|
|
error: unnecessary parentheses around `for` iterator expression
--> $DIR/issue-90807-unused-paren-error.rs:8:14
@ -25,7 +25,7 @@ help: remove these parentheses
|
LL - for _ in (1..match () { () => 2 }) {}
LL + for _ in 1..match () { () => 2 } {}
|
|
error: aborting due to 2 previous errors

View File

@ -13,7 +13,7 @@ help: remove these parentheses
|
LL - let _ = (7);
LL + let _ = 7;
|
|
warning: unnecessary braces around `if` condition
--> $DIR/unused_braces.rs:26:8
@ -30,7 +30,7 @@ help: remove these braces
|
LL - if { true } {
LL + if true {
|
|
warning: unnecessary braces around `while` condition
--> $DIR/unused_braces.rs:30:11
@ -42,7 +42,7 @@ help: remove these braces
|
LL - while { false } {
LL + while false {
|
|
warning: unnecessary braces around const expression
--> $DIR/unused_braces.rs:34:17
@ -54,7 +54,7 @@ help: remove these braces
|
LL - let _: [u8; { 3 }];
LL + let _: [u8; 3];
|
|
warning: unnecessary braces around function argument
--> $DIR/unused_braces.rs:37:13
@ -66,7 +66,7 @@ help: remove these braces
|
LL - consume({ 7 });
LL + consume(7);
|
|
warning: 5 warnings emitted

View File

@ -13,7 +13,7 @@ help: remove these braces
|
LL - consume({ a.b });
LL + consume(a.b);
|
|
warning: 1 warning emitted

View File

@ -13,7 +13,7 @@ help: remove these parentheses
|
LL - let _a = (1 / (2 + 3));
LL + let _a = 1 / (2 + 3);
|
|
"}
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error

View File

@ -13,7 +13,7 @@ help: remove these parentheses
|
LL - if (_b) {
LL + if _b {
|
|
"}
{"message":"unnecessary parentheses around `if` condition","code":{"code":"unused_parens","explanation":null},"level":"error","spans":[{"file_name":"$DIR/unused_parens_remove_json_suggestion.rs","byte_start":612,"byte_end":613,"line_start":28,"line_end":28,"column_start":7,"column_end":8,"is_primary":true,"text":[{"text":" if(c) {
@ -26,7 +26,7 @@ help: remove these parentheses
|
LL - if(c) {
LL + if c {
|
|
"}
{"message":"unnecessary parentheses around `if` condition","code":{"code":"unused_parens","explanation":null},"level":"error","spans":[{"file_name":"$DIR/unused_parens_remove_json_suggestion.rs","byte_start":692,"byte_end":693,"line_start":32,"line_end":32,"column_start":8,"column_end":9,"is_primary":true,"text":[{"text":" if (c){
@ -39,7 +39,7 @@ help: remove these parentheses
|
LL - if (c){
LL + if c {
|
|
"}
{"message":"unnecessary parentheses around `while` condition","code":{"code":"unused_parens","explanation":null},"level":"error","spans":[{"file_name":"$DIR/unused_parens_remove_json_suggestion.rs","byte_start":774,"byte_end":775,"line_start":36,"line_end":36,"column_start":11,"column_end":12,"is_primary":true,"text":[{"text":" while (false && true){","highlight_start":11,"highlight_end":12}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null},{"file_name":"$DIR/unused_parens_remove_json_suggestion.rs","byte_start":788,"byte_end":789,"line_start":36,"line_end":36,"column_start":25,"column_end":26,"is_primary":true,"text":[{"text":" while (false && true){","highlight_start":25,"highlight_end":26}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"remove these parentheses","code":null,"level":"help","spans":[{"file_name":"$DIR/unused_parens_remove_json_suggestion.rs","byte_start":774,"byte_end":775,"line_start":36,"line_end":36,"column_start":11,"column_end":12,"is_primary":true,"text":[{"text":" while (false && true){","highlight_start":11,"highlight_end":12}],"label":null,"suggested_replacement":"","suggestion_applicability":"MachineApplicable","expansion":null},{"file_name":"$DIR/unused_parens_remove_json_suggestion.rs","byte_start":788,"byte_end":789,"line_start":36,"line_end":36,"column_start":25,"column_end":26,"is_primary":true,"text":[{"text":" while (false && true){","highlight_start":25,"highlight_end":26}],"label":null,"suggested_replacement":" ","suggestion_applicability":"MachineApplicable","expansion":null}],"children":[],"rendered":null}],"rendered":"error: unnecessary parentheses around `while` condition
@ -52,7 +52,7 @@ help: remove these parentheses
|
LL - while (false && true){
LL + while false && true {
|
|
"}
{"message":"unnecessary parentheses around `if` condition","code":{"code":"unused_parens","explanation":null},"level":"error","spans":[{"file_name":"$DIR/unused_parens_remove_json_suggestion.rs","byte_start":802,"byte_end":803,"line_start":37,"line_end":37,"column_start":12,"column_end":13,"is_primary":true,"text":[{"text":" if (c) {
@ -65,7 +65,7 @@ help: remove these parentheses
|
LL - if (c) {
LL + if c {
|
|
"}
{"message":"unnecessary parentheses around `while` condition","code":{"code":"unused_parens","explanation":null},"level":"error","spans":[{"file_name":"$DIR/unused_parens_remove_json_suggestion.rs","byte_start":899,"byte_end":900,"line_start":43,"line_end":43,"column_start":10,"column_end":11,"is_primary":true,"text":[{"text":" while(true && false) {
@ -78,7 +78,7 @@ help: remove these parentheses
|
LL - while(true && false) {
LL + while true && false {
|
|
"}
{"message":"unnecessary parentheses around `for` iterator expression","code":{"code":"unused_parens","explanation":null},"level":"error","spans":[{"file_name":"$DIR/unused_parens_remove_json_suggestion.rs","byte_start":968,"byte_end":969,"line_start":44,"line_end":44,"column_start":18,"column_end":19,"is_primary":true,"text":[{"text":" for _ in (0 .. 3){
@ -91,7 +91,7 @@ help: remove these parentheses
|
LL - for _ in (0 .. 3){
LL + for _ in 0 .. 3 {
|
|
"}
{"message":"unnecessary parentheses around `for` iterator expression","code":{"code":"unused_parens","explanation":null},"level":"error","spans":[{"file_name":"$DIR/unused_parens_remove_json_suggestion.rs","byte_start":1069,"byte_end":1070,"line_start":49,"line_end":49,"column_start":14,"column_end":15,"is_primary":true,"text":[{"text":" for _ in (0 .. 3) {
@ -104,7 +104,7 @@ help: remove these parentheses
|
LL - for _ in (0 .. 3) {
LL + for _ in 0 .. 3 {
|
|
"}
{"message":"unnecessary parentheses around `while` condition","code":{"code":"unused_parens","explanation":null},"level":"error","spans":[{"file_name":"$DIR/unused_parens_remove_json_suggestion.rs","byte_start":1128,"byte_end":1129,"line_start":50,"line_end":50,"column_start":15,"column_end":16,"is_primary":true,"text":[{"text":" while (true && false) {
@ -117,7 +117,7 @@ help: remove these parentheses
|
LL - while (true && false) {
LL + while true && false {
|
|
"}
{"message":"aborting due to 9 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 9 previous errors

View File

@ -12,7 +12,7 @@ help: if you import `bar`, refer to it directly
|
LL - a::bar();
LL + bar();
|
|
error: aborting due to previous error

View File

@ -30,7 +30,7 @@ help: consider borrowing the value
|
LL - let _ = v as &u8;
LL + let _ = &*v;
|
|
error[E0605]: non-primitive cast: `*const u8` as `E`
--> $DIR/cast-rfc0401.rs:30:13

View File

@ -22,7 +22,7 @@ help: if you import `S`, refer to it directly
|
LL - check(m1::S);
LL + check(S);
|
|
error[E0423]: expected value, found type alias `xm1::S`
--> $DIR/namespace-mix.rs:40:11
@ -50,7 +50,7 @@ help: if you import `S`, refer to it directly
|
LL - check(xm1::S);
LL + check(S);
|
|
error[E0423]: expected value, found struct variant `m7::V`
--> $DIR/namespace-mix.rs:100:11
@ -81,7 +81,7 @@ help: if you import `V`, refer to it directly
|
LL - check(m7::V);
LL + check(V);
|
|
error[E0423]: expected value, found struct variant `xm7::V`
--> $DIR/namespace-mix.rs:106:11
@ -114,7 +114,7 @@ help: if you import `V`, refer to it directly
|
LL - check(xm7::V);
LL + check(V);
|
|
error[E0277]: the trait bound `c::Item: Impossible` is not satisfied
--> $DIR/namespace-mix.rs:33:11

View File

@ -14,7 +14,7 @@ help: consider removing the borrow
|
LL - &panic!()
LL + panic!()
|
|
error[E0308]: mismatched types
--> $DIR/diverging-tuple-parts-39485.rs:12:5

View File

@ -27,7 +27,7 @@ help: consider removing the borrow
|
LL - [(); & { loop { continue } } ];
LL + [(); { loop { continue } } ];
|
|
error[E0308]: mismatched types
--> $DIR/issue-52443.rs:4:17

View File

@ -296,7 +296,7 @@ help: remove the `format!(..)` macro call
|
LL - panic!(format!("{}", 1));
LL + panic!("{}", 1);
|
|
warning: panic message is not a string literal
--> $DIR/non-fmt-panic.rs:50:18
@ -311,7 +311,7 @@ help: remove the `format!(..)` macro call
|
LL - unreachable!(format!("{}", 1));
LL + unreachable!("{}", 1);
|
|
warning: panic message is not a string literal
--> $DIR/non-fmt-panic.rs:51:20
@ -326,7 +326,7 @@ help: remove the `format!(..)` macro call
|
LL - assert!(false, format!("{}", 1));
LL + assert!(false, "{}", 1);
|
|
warning: panic message is not a string literal
--> $DIR/non-fmt-panic.rs:52:26
@ -341,7 +341,7 @@ help: remove the `format!(..)` macro call
|
LL - debug_assert!(false, format!("{}", 1));
LL + debug_assert!(false, "{}", 1);
|
|
warning: panic message is not a string literal
--> $DIR/non-fmt-panic.rs:54:12

View File

@ -12,7 +12,7 @@ help: consider removing the `?Sized` bound to make the type parameter `Sized`
|
LL - pub struct Bad<T: ?Sized> {
LL + pub struct Bad<T> {
|
|
help: borrowed types always have a statically known size
|
LL | data: &T,

View File

@ -322,7 +322,7 @@ help: to annotate the item macro invocation, change the attribute from inner to
|
LL - #[cfg(FALSE)] fn s() { #[attr] #![attr] foo!(); }
LL + #[cfg(FALSE)] fn s() { #[attr] #[attr] foo!(); }
|
|
error: an inner attribute is not permitted following an outer attribute
--> $DIR/attr-stmt-expr-attr-bad.rs:80:32
@ -338,7 +338,7 @@ help: to annotate the item macro invocation, change the attribute from inner to
|
LL - #[cfg(FALSE)] fn s() { #[attr] #![attr] foo![]; }
LL + #[cfg(FALSE)] fn s() { #[attr] #[attr] foo![]; }
|
|
error: an inner attribute is not permitted following an outer attribute
--> $DIR/attr-stmt-expr-attr-bad.rs:82:32
@ -354,7 +354,7 @@ help: to annotate the item macro invocation, change the attribute from inner to
|
LL - #[cfg(FALSE)] fn s() { #[attr] #![attr] foo!{}; }
LL + #[cfg(FALSE)] fn s() { #[attr] #[attr] foo!{}; }
|
|
error[E0586]: inclusive range with no end
--> $DIR/attr-stmt-expr-attr-bad.rs:88:35

View File

@ -8,7 +8,7 @@ help: consider removing this semicolon
|
LL - #[derive(Debug, Clone)];
LL + #[derive(Debug, Clone)]
|
|
error: aborting due to previous error

View File

@ -11,7 +11,7 @@ help: to annotate the function, change the attribute from inner to outer style
|
LL - #![lang = "foo"]
LL + #[lang = "foo"]
|
|
error: aborting due to previous error

View File

@ -18,7 +18,7 @@ help: if you import `hi_str`, refer to it directly
|
LL - println!("{}", circular_modules_main::hi_str());
LL + println!("{}", hi_str());
|
|
error: aborting due to 2 previous errors

View File

@ -9,7 +9,7 @@ help: you might have meant to write a regular comment
|
LL - if true /*!*/ {}
LL + if true /**/ {}
|
|
error: outer attributes are not allowed on `if` and `else` branches
--> $DIR/doc-comment-in-if-statement.rs:2:13

View File

@ -40,7 +40,7 @@ help: consider removing the `&&`
|
LL - &&
LL + if let Some(y) = a { true } else { false }
|
|
help: parentheses are required to parse this as an expression
|
LL | (if let Some(x) = a { true } else { false })

View File

@ -174,7 +174,7 @@ help: consider removing the `&&`
|
LL - { true } && { true }
LL + { true } { true }
|
|
help: parentheses are required to parse this as an expression
|
LL | ({ true }) && { true }

View File

@ -8,7 +8,7 @@ help: use `+= 1` instead
|
LL - ++i;
LL + i += 1;
|
|
error: Rust has no prefix increment operator
--> $DIR/increment-autofix.rs:11:11
@ -33,7 +33,7 @@ help: use `+= 1` instead
|
LL - ++tmp;
LL + tmp += 1;
|
|
error: Rust has no prefix increment operator
--> $DIR/increment-autofix.rs:25:11

View File

@ -10,7 +10,7 @@ LL | { let tmp = i; i += 1; tmp };
| +++++++++++ ~~~~~~~~~~~~~~~
LL - i++;
LL + i += 1;
|
|
error: Rust has no postfix increment operator
--> $DIR/increment-notfixed.rs:17:12
@ -26,7 +26,7 @@ LL | while { let tmp = i; i += 1; tmp } < 5 {
| +++++++++++ ~~~~~~~~~~~~~~~
LL - while i++ < 5 {
LL + while i += 1 < 5 {
|
|
error: Rust has no postfix increment operator
--> $DIR/increment-notfixed.rs:25:8
@ -40,7 +40,7 @@ LL | { let tmp_ = tmp; tmp += 1; tmp_ };
| ++++++++++++ ~~~~~~~~~~~~~~~~~~
LL - tmp++;
LL + tmp += 1;
|
|
error: Rust has no postfix increment operator
--> $DIR/increment-notfixed.rs:31:14
@ -56,7 +56,7 @@ LL | while { let tmp_ = tmp; tmp += 1; tmp_ } < 5 {
| ++++++++++++ ~~~~~~~~~~~~~~~~~~
LL - while tmp++ < 5 {
LL + while tmp += 1 < 5 {
|
|
error: Rust has no postfix increment operator
--> $DIR/increment-notfixed.rs:39:16
@ -70,7 +70,7 @@ LL | { let tmp = foo.bar.qux; foo.bar.qux += 1; tmp };
| +++++++++++ ~~~~~~~~~~~~~~~~~~~~~~~~~
LL - foo.bar.qux++;
LL + foo.bar.qux += 1;
|
|
error: Rust has no postfix increment operator
--> $DIR/increment-notfixed.rs:49:10
@ -84,7 +84,7 @@ LL | { let tmp = s.tmp; s.tmp += 1; tmp };
| +++++++++++ ~~~~~~~~~~~~~~~~~~~
LL - s.tmp++;
LL + s.tmp += 1;
|
|
error: Rust has no prefix increment operator
--> $DIR/increment-notfixed.rs:56:5
@ -96,7 +96,7 @@ help: use `+= 1` instead
|
LL - ++foo.bar.qux;
LL + foo.bar.qux += 1;
|
|
error: aborting due to 7 previous errors

View File

@ -17,7 +17,7 @@ help: to annotate the function, change the attribute from inner to outer style
|
LL - #![recursion_limit="100"]
LL + #[recursion_limit="100"]
|
|
error: aborting due to previous error

View File

@ -14,7 +14,7 @@ help: to annotate the function, change the attribute from inner to outer style
|
LL - #![recursion_limit="100"]
LL + #[recursion_limit="100"]
|
|
error: aborting due to previous error

View File

@ -25,7 +25,7 @@ help: to annotate the function, change the attribute from inner to outer style
|
LL - #![test]
LL + #[test]
|
|
error[E0753]: expected outer doc comment
--> $DIR/issue-30318.rs:13:1
@ -52,7 +52,7 @@ help: you might have meant to write a regular comment
|
LL - //! Misplaced comment...
LL + // Misplaced comment...
|
|
error[E0753]: expected outer doc comment
--> $DIR/issue-30318.rs:23:1
@ -65,7 +65,7 @@ help: you might have meant to write a regular comment
|
LL - /*! Misplaced comment... */
LL + /* Misplaced comment... */
|
|
error: expected item after doc comment
--> $DIR/issue-30318.rs:23:1

View File

@ -12,7 +12,7 @@ help: if `Test::Drill` is a function, use the arguments directly
|
LL - Test::Drill(field: 42);
LL + Test::Drill(42);
|
|
error: aborting due to previous error

View File

@ -23,7 +23,7 @@ help: alternatively, remove the type ascription
|
LL - vec![1, 2, 3]: Vec<i32>[0];
LL + vec![1, 2, 3][0];
|
|
error: casts cannot be followed by indexing
--> $DIR/issue-35813-postfix-after-cast.rs:17:5
@ -50,7 +50,7 @@ help: alternatively, remove the type ascription
|
LL - (&[0i32]): &[i32; 1][0];
LL + (&[0i32])[0];
|
|
error: casts cannot be followed by a method call
--> $DIR/issue-35813-postfix-after-cast.rs:39:13
@ -66,7 +66,7 @@ help: alternatively, remove the type ascription
|
LL - let _ = 0i32: i32: i32.count_ones();
LL + let _ = 0i32: i32.count_ones();
|
|
error: casts cannot be followed by a method call
--> $DIR/issue-35813-postfix-after-cast.rs:41:13
@ -82,7 +82,7 @@ help: alternatively, remove the type ascription
|
LL - let _ = 0 as i32: i32.count_ones();
LL + let _ = 0 as i32.count_ones();
|
|
error: casts cannot be followed by a method call
--> $DIR/issue-35813-postfix-after-cast.rs:43:13
@ -131,7 +131,7 @@ help: alternatively, remove the type ascription
|
LL - let _ = 0i32: i32.count_ones(): u32;
LL + let _ = 0i32.count_ones(): u32;
|
|
error: casts cannot be followed by a method call
--> $DIR/issue-35813-postfix-after-cast.rs:51:13
@ -158,7 +158,7 @@ help: alternatively, remove the type ascription
|
LL - let _ = 0i32: i32.count_ones() as u32;
LL + let _ = 0i32.count_ones() as u32;
|
|
error: casts cannot be followed by a method call
--> $DIR/issue-35813-postfix-after-cast.rs:55:13
@ -185,7 +185,7 @@ help: alternatively, remove the type ascription
|
LL - let _ = 0i32: i32: i32.count_ones() as u32 as i32;
LL + let _ = 0i32: i32.count_ones() as u32 as i32;
|
|
error: casts cannot be followed by a method call
--> $DIR/issue-35813-postfix-after-cast.rs:62:13
@ -237,7 +237,7 @@ help: alternatively, remove the type ascription
|
LL - 0: i32.max(0);
LL + 0.max(0);
|
|
error: casts cannot be followed by a method call
--> $DIR/issue-35813-postfix-after-cast.rs:92:8
@ -264,7 +264,7 @@ help: alternatively, remove the type ascription
|
LL - if 5u64: u64.max(0) == 0 {
LL + if 5u64.max(0) == 0 {
|
|
error: casts cannot be followed by a method call
--> $DIR/issue-35813-postfix-after-cast.rs:102:9
@ -291,7 +291,7 @@ help: alternatively, remove the type ascription
|
LL - 5u64: u64.max(0) == 0
LL + 5u64.max(0) == 0
|
|
error: casts cannot be followed by indexing
--> $DIR/issue-35813-postfix-after-cast.rs:111:24
@ -318,7 +318,7 @@ help: alternatively, remove the type ascription
|
LL - static bar2: &[i32] = &(&[1i32,2,3]: &[i32; 3][0..1]);
LL + static bar2: &[i32] = &(&[1i32,2,3][0..1]);
|
|
error: casts cannot be followed by `?`
--> $DIR/issue-35813-postfix-after-cast.rs:119:5
@ -345,7 +345,7 @@ help: alternatively, remove the type ascription
|
LL - Err(0u64): Result<u64,u64>?;
LL + Err(0u64)?;
|
|
error: casts cannot be followed by a function call
--> $DIR/issue-35813-postfix-after-cast.rs:145:5
@ -372,7 +372,7 @@ help: alternatively, remove the type ascription
|
LL - drop_ptr: fn(u8)(0);
LL + drop_ptr(0);
|
|
error: casts cannot be followed by `.await`
--> $DIR/issue-35813-postfix-after-cast.rs:152:5
@ -399,7 +399,7 @@ help: alternatively, remove the type ascription
|
LL - Box::pin(noop()): Pin<Box<_>>.await;
LL + Box::pin(noop()).await;
|
|
error: casts cannot be followed by a field access
--> $DIR/issue-35813-postfix-after-cast.rs:167:5
@ -426,7 +426,7 @@ help: alternatively, remove the type ascription
|
LL - Foo::default(): Foo.bar;
LL + Foo::default().bar;
|
|
error: casts cannot be followed by a method call
--> $DIR/issue-35813-postfix-after-cast.rs:84:9
@ -453,7 +453,7 @@ help: alternatively, remove the type ascription
|
LL - if true { 33 } else { 44 }: i32.max(0)
LL + if true { 33 } else { 44 }.max(0)
|
|
error[E0214]: parenthesized type parameters may only be used with a `Fn` trait
--> $DIR/issue-35813-postfix-after-cast.rs:131:13

View File

@ -27,7 +27,7 @@ help: if `bar` is a function, use the arguments directly
|
LL - bar(baz: $rest)
LL + bar(: $rest)
|
|
error: aborting due to 2 previous errors

View File

@ -11,7 +11,7 @@ help: to annotate the function, change the attribute from inner to outer style
|
LL - #![allow(unused_variables)]
LL + #[allow(unused_variables)]
|
|
error: aborting due to previous error

View File

@ -12,7 +12,7 @@ help: for an inherent impl, drop this `for`
|
LL - impl for T {}
LL + impl T {}
|
|
error: aborting due to previous error

View File

@ -8,7 +8,7 @@ help: try removing the `+`
|
LL - let _ = +1;
LL + let _ = 1;
|
|
error: leading `+` is not supported
--> $DIR/issue-88276-unary-plus.rs:5:20
@ -20,7 +20,7 @@ help: try removing the `+`
|
LL - let _ = (1.0 + +2.0) * +3.0;
LL + let _ = (1.0 + 2.0) * +3.0;
|
|
error: leading `+` is not supported
--> $DIR/issue-88276-unary-plus.rs:5:28
@ -32,7 +32,7 @@ help: try removing the `+`
|
LL - let _ = (1.0 + +2.0) * +3.0;
LL + let _ = (1.0 + +2.0) * 3.0;
|
|
error: leading `+` is not supported
--> $DIR/issue-88276-unary-plus.rs:7:14
@ -44,7 +44,7 @@ help: try removing the `+`
|
LL - let _ = [+3, 4+6];
LL + let _ = [3, 4+6];
|
|
error: aborting due to 4 previous errors

View File

@ -12,7 +12,7 @@ help: for an inherent impl, drop this `for`
|
LL - impl for S { }
LL + impl S { }
|
|
error: aborting due to previous error

View File

@ -12,7 +12,7 @@ help: to annotate the struct, change the attribute from inner to outer style
|
LL - #![deny(missing_docs)]
LL + #[deny(missing_docs)]
|
|
error: aborting due to previous error

View File

@ -52,7 +52,7 @@ help: consider removing the label
|
LL - 'l4 0;
LL + 0;
|
|
error: labeled expression must be followed by `:`
--> $DIR/labeled-no-colon-expr.rs:8:9

View File

@ -12,7 +12,7 @@ help: remove the `=` if `Item` is a type
|
LL - bar::<Item = >();
LL + bar::<Item >();
|
|
error: aborting due to previous error

View File

@ -14,7 +14,7 @@ help: remove parentheses in `for` loop
|
LL - for ( elem in vec ) {
LL + for elem in vec {
|
|
error[E0308]: mismatched types
--> $DIR/recover-for-loop-parens-around-head.rs:13:38

View File

@ -12,7 +12,7 @@ help: if `Enum::Foo` is a function, use the arguments directly
|
LL - let x = Enum::Foo(a: 3, b: 4);
LL + let x = Enum::Foo(3, 4);
|
|
error[E0532]: expected tuple struct or tuple variant, found struct variant `Enum::Foo`
--> $DIR/recover-from-bad-variant.rs:10:9

View File

@ -8,7 +8,7 @@ help: consider removing the label
|
LL - let _ = 'label: 1 + 1;
LL + let _ = 1 + 1;
|
|
error: expected `while`, `for`, `loop` or `{` after a label
--> $DIR/recover-labeled-non-block-expr.rs:6:13
@ -20,7 +20,7 @@ help: consider removing the label
|
LL - 'label: match () { () => {}, };
LL + match () { () => {}, };
|
|
error: expected `while`, `for`, `loop` or `{` after a label
--> $DIR/recover-labeled-non-block-expr.rs:7:13

View File

@ -14,7 +14,7 @@ help: remove the parentheses
|
LL - fn foo2(_: &dyn (Drop + AsRef<str>)) {}
LL + fn foo2(_: &dyn Drop + AsRef<str>) {}
|
|
error: expected parameter name, found `{`
--> $DIR/trait-object-delimiters.rs:8:17

View File

@ -29,7 +29,7 @@ help: use `dyn`
|
LL - let _: Box<(Obj) + (?Sized) + (for<'a> Trait<'a>)>;
LL + let _: Box<dyn (Obj) + (?Sized) + (for<'a> Trait<'a>)>;
|
|
error[E0225]: only auto traits can be used as additional traits in a trait object
--> $DIR/trait-object-trait-parens.rs:8:35
@ -54,7 +54,7 @@ help: use `dyn`
|
LL - let _: Box<?Sized + (for<'a> Trait<'a>) + (Obj)>;
LL + let _: Box<dyn ?Sized + (for<'a> Trait<'a>) + (Obj)>;
|
|
error[E0225]: only auto traits can be used as additional traits in a trait object
--> $DIR/trait-object-trait-parens.rs:13:47
@ -79,7 +79,7 @@ help: use `dyn`
|
LL - let _: Box<for<'a> Trait<'a> + (Obj) + (?Sized)>;
LL + let _: Box<dyn for<'a> Trait<'a> + (Obj) + (?Sized)>;
|
|
error[E0225]: only auto traits can be used as additional traits in a trait object
--> $DIR/trait-object-trait-parens.rs:18:36

View File

@ -10,7 +10,7 @@ help: move it to the end of the type declaration
|
LL - type Assoc where u32: Copy = ();
LL + type Assoc = () where u32: Copy;
|
|
warning: where clause not allowed here
--> $DIR/type-alias-where-fixable.rs:18:17
@ -23,7 +23,7 @@ help: move it to the end of the type declaration
|
LL - type Assoc2 where u32: Copy = () where i32: Copy;
LL + type Assoc2 = () where i32: Copy, u32: Copy;
|
|
warning: where clause not allowed here
--> $DIR/type-alias-where-fixable.rs:26:17
@ -36,7 +36,7 @@ help: move it to the end of the type declaration
|
LL - type Assoc2 where u32: Copy, i32: Copy = ();
LL + type Assoc2 = () where u32: Copy, i32: Copy;
|
|
warning: 3 warnings emitted

View File

@ -13,7 +13,7 @@ help: remove these parentheses
|
LL - return (<T as ToString>::to_string(&arg));
LL + return <T as ToString>::to_string(&arg);
|
|
warning: 1 warning emitted

View File

@ -320,7 +320,7 @@ help: the bound will not be checked when the type alias is used, and should be r
|
LL - pub type Alias<T: PrivTr> = T;
LL + pub type Alias<T> = T;
|
|
warning: where clauses are not enforced in type aliases
--> $DIR/private-in-public-warn.rs:74:29
@ -332,7 +332,7 @@ help: the clause will not be checked when the type alias is used, and should be
|
LL - pub type Alias<T> where T: PrivTr = T;
LL + pub type Alias<T> = T;
|
|
error: aborting due to 34 previous errors; 2 warnings emitted

View File

@ -12,7 +12,7 @@ help: if you import `A`, refer to it directly
|
LL - let _ = namespaced_enums::A;
LL + let _ = A;
|
|
error[E0425]: cannot find function, tuple struct or tuple variant `B` in crate `namespaced_enums`
--> $DIR/enums-are-namespaced-xc.rs:7:31
@ -28,7 +28,7 @@ help: if you import `B`, refer to it directly
|
LL - let _ = namespaced_enums::B(10);
LL + let _ = B(10);
|
|
error[E0422]: cannot find struct, variant or union type `C` in crate `namespaced_enums`
--> $DIR/enums-are-namespaced-xc.rs:9:31
@ -44,7 +44,7 @@ help: if you import `C`, refer to it directly
|
LL - let _ = namespaced_enums::C { a: 10 };
LL + let _ = C { a: 10 };
|
|
error: aborting due to 3 previous errors

View File

@ -14,7 +14,7 @@ help: if you import `LOG10_2`, refer to it directly
|
LL - const M: usize = (f64::from(N) * std::f64::LOG10_2) as usize;
LL + const M: usize = (f64::from(N) * LOG10_2) as usize;
|
|
error[E0080]: evaluation of constant value failed
--> $DIR/issue-50599.rs:4:29

View File

@ -12,7 +12,7 @@ help: if you import `HashMap`, refer to it directly
|
LL - let _map = std::hahmap::HashMap::new();
LL + let _map = HashMap::new();
|
|
error: aborting due to previous error

View File

@ -109,7 +109,7 @@ help: if you import `E`, refer to it directly
|
LL - let _: E = m::E;
LL + let _: E = E;
|
|
error[E0423]: expected value, found struct variant `m::E::Struct`
--> $DIR/privacy-enum-ctor.rs:45:16
@ -347,7 +347,7 @@ help: `Z::Unit` is a unit variant, you need to write it without the parentheses
|
LL - let _ = Z::Unit();
LL + let _ = Z::Unit;
|
|
error[E0308]: mismatched types
--> $DIR/privacy-enum-ctor.rs:43:16
@ -382,7 +382,7 @@ help: `m::E::Unit` is a unit variant, you need to write it without the parenthes
|
LL - let _: E = m::E::Unit();
LL + let _: E = m::E::Unit;
|
|
error[E0308]: mismatched types
--> $DIR/privacy-enum-ctor.rs:51:16
@ -417,7 +417,7 @@ help: `E::Unit` is a unit variant, you need to write it without the parentheses
|
LL - let _: E = E::Unit();
LL + let _: E = E::Unit;
|
|
error: aborting due to 23 previous errors

View File

@ -18,7 +18,7 @@ help: if you import `u8`, refer to it directly
|
LL - let _: ::u8;
LL + let _: u8;
|
|
error[E0061]: this function takes 0 arguments but 1 argument was supplied
--> $DIR/resolve-primitive-fallback.rs:3:5

View File

@ -982,7 +982,7 @@ help: consider removing the borrow
|
LL - if &let 0 = 0 {}
LL + if let 0 = 0 {}
|
|
error[E0614]: type `bool` cannot be dereferenced
--> $DIR/disallowed-positions.rs:94:8
@ -1149,7 +1149,7 @@ help: consider removing the `&&`
|
LL - if let Range { start: true, end } = t..&&false {}
LL + if let Range { start: true, end } = t..false {}
|
|
error[E0308]: mismatched types
--> $DIR/disallowed-positions.rs:144:8
@ -1178,7 +1178,7 @@ help: consider removing the borrow
|
LL - while &let 0 = 0 {}
LL + while let 0 = 0 {}
|
|
error[E0614]: type `bool` cannot be dereferenced
--> $DIR/disallowed-positions.rs:158:11
@ -1345,7 +1345,7 @@ help: consider removing the `&&`
|
LL - while let Range { start: true, end } = t..&&false {}
LL + while let Range { start: true, end } = t..false {}
|
|
error[E0308]: mismatched types
--> $DIR/disallowed-positions.rs:208:11

View File

@ -8,7 +8,7 @@ help: you might have meant to write a const trait impl
|
LL - const impl Foo for i32 {}
LL + impl const Foo for i32 {}
|
|
error: expected identifier, found keyword `impl`
--> $DIR/const-impl-recovery.rs:9:7
@ -20,7 +20,7 @@ help: you might have meant to write a const trait impl
|
LL - const impl<T: Foo> Bar for T {}
LL + impl<T: Foo> const Bar for T {}
|
|
error: aborting due to 2 previous errors

View File

@ -13,7 +13,7 @@ help: remove these bounds
|
LL - struct TeeOutlivesAyIsDebugBee<'a, 'b, T: 'a + Debug + 'b> {
LL + struct TeeOutlivesAyIsDebugBee<'a, 'b, T: Debug> {
|
|
error: outlives requirements can be inferred
--> $DIR/edition-lint-infer-outlives-multispan.rs:18:61
@ -25,7 +25,7 @@ help: remove these bounds
|
LL - struct TeeWhereOutlivesAyIsDebugBee<'a, 'b, T> where T: 'a + Debug + 'b {
LL + struct TeeWhereOutlivesAyIsDebugBee<'a, 'b, T> where T: Debug {
|
|
error: outlives requirements can be inferred
--> $DIR/edition-lint-infer-outlives-multispan.rs:23:53
@ -37,7 +37,7 @@ help: remove these bounds
|
LL - struct TeeYooOutlivesAyIsDebugBee<'a, 'b, T, U: 'a + Debug + 'b> {
LL + struct TeeYooOutlivesAyIsDebugBee<'a, 'b, T, U: Debug> {
|
|
error: outlives requirements can be inferred
--> $DIR/edition-lint-infer-outlives-multispan.rs:29:48
@ -49,7 +49,7 @@ help: remove these bounds
|
LL - struct TeeOutlivesAyYooBeeIsDebug<'a, 'b, T: 'a, U: 'b + Debug> {
LL + struct TeeOutlivesAyYooBeeIsDebug<'a, 'b, T, U: Debug> {
|
|
error: outlives requirements can be inferred
--> $DIR/edition-lint-infer-outlives-multispan.rs:35:48
@ -61,7 +61,7 @@ help: remove these bounds
|
LL - struct TeeOutlivesAyYooIsDebugBee<'a, 'b, T: 'a, U: Debug + 'b> {
LL + struct TeeOutlivesAyYooIsDebugBee<'a, 'b, T, U: Debug> {
|
|
error: outlives requirements can be inferred
--> $DIR/edition-lint-infer-outlives-multispan.rs:41:46
@ -73,7 +73,7 @@ help: remove these bounds
|
LL - struct TeeOutlivesAyYooWhereBee<'a, 'b, T: 'a, U> where U: 'b {
LL + struct TeeOutlivesAyYooWhereBee<'a, 'b, T, U> {
|
|
error: outlives requirements can be inferred
--> $DIR/edition-lint-infer-outlives-multispan.rs:47:67
@ -85,7 +85,7 @@ help: remove these bounds
|
LL - struct TeeYooWhereOutlivesAyIsDebugBee<'a, 'b, T, U> where U: 'a + Debug + 'b {
LL + struct TeeYooWhereOutlivesAyIsDebugBee<'a, 'b, T, U> where U: Debug {
|
|
error: outlives requirements can be inferred
--> $DIR/edition-lint-infer-outlives-multispan.rs:53:53
@ -97,7 +97,7 @@ help: remove these bounds
|
LL - struct TeeOutlivesAyYooWhereBeeIsDebug<'a, 'b, T: 'a, U> where U: 'b + Debug {
LL + struct TeeOutlivesAyYooWhereBeeIsDebug<'a, 'b, T, U> where U: Debug {
|
|
error: outlives requirements can be inferred
--> $DIR/edition-lint-infer-outlives-multispan.rs:59:53
@ -109,7 +109,7 @@ help: remove these bounds
|
LL - struct TeeOutlivesAyYooWhereIsDebugBee<'a, 'b, T: 'a, U> where U: Debug + 'b {
LL + struct TeeOutlivesAyYooWhereIsDebugBee<'a, 'b, T, U> where U: Debug {
|
|
error: outlives requirements can be inferred
--> $DIR/edition-lint-infer-outlives-multispan.rs:65:69
@ -121,7 +121,7 @@ help: remove these bounds
|
LL - struct TeeWhereOutlivesAyYooWhereBeeIsDebug<'a, 'b, T, U> where T: 'a, U: 'b + Debug {
LL + struct TeeWhereOutlivesAyYooWhereBeeIsDebug<'a, 'b, T, U> where U: Debug {
|
|
error: outlives requirements can be inferred
--> $DIR/edition-lint-infer-outlives-multispan.rs:71:69
@ -133,7 +133,7 @@ help: remove these bounds
|
LL - struct TeeWhereOutlivesAyYooWhereIsDebugBee<'a, 'b, T, U> where T: 'a, U: Debug + 'b {
LL + struct TeeWhereOutlivesAyYooWhereIsDebugBee<'a, 'b, T, U> where U: Debug {
|
|
error: outlives requirements can be inferred
--> $DIR/edition-lint-infer-outlives-multispan.rs:77:38
@ -145,7 +145,7 @@ help: remove these bounds
|
LL - struct BeeOutlivesAyTeeBee<'a, 'b: 'a, T: 'b> {
LL + struct BeeOutlivesAyTeeBee<'a, 'b, T> {
|
|
error: outlives requirements can be inferred
--> $DIR/edition-lint-infer-outlives-multispan.rs:82:40
@ -157,7 +157,7 @@ help: remove these bounds
|
LL - struct BeeOutlivesAyTeeAyBee<'a, 'b: 'a, T: 'a + 'b> {
LL + struct BeeOutlivesAyTeeAyBee<'a, 'b, T> {
|
|
error: outlives requirements can be inferred
--> $DIR/edition-lint-infer-outlives-multispan.rs:87:55
@ -169,7 +169,7 @@ help: remove these bounds
|
LL - struct BeeOutlivesAyTeeOutlivesAyIsDebugBee<'a, 'b: 'a, T: 'a + Debug + 'b> {
LL + struct BeeOutlivesAyTeeOutlivesAyIsDebugBee<'a, 'b, T: Debug> {
|
|
error: outlives requirements can be inferred
--> $DIR/edition-lint-infer-outlives-multispan.rs:92:68
@ -181,7 +181,7 @@ help: remove these bounds
|
LL - struct BeeWhereAyTeeWhereOutlivesAyIsDebugBee<'a, 'b, T> where 'b: 'a, T: 'a + Debug + 'b {
LL + struct BeeWhereAyTeeWhereOutlivesAyIsDebugBee<'a, 'b, T> where T: Debug {
|
|
error: outlives requirements can be inferred
--> $DIR/edition-lint-infer-outlives-multispan.rs:97:58
@ -193,7 +193,7 @@ help: remove these bounds
|
LL - struct BeeOutlivesAyTeeYooOutlivesAyIsDebugBee<'a, 'b: 'a, T, U: 'a + Debug + 'b> {
LL + struct BeeOutlivesAyTeeYooOutlivesAyIsDebugBee<'a, 'b, T, U: Debug> {
|
|
error: outlives requirements can be inferred
--> $DIR/edition-lint-infer-outlives-multispan.rs:104:18
@ -205,7 +205,7 @@ help: remove these bounds
|
LL - where U: 'a + Debug + 'b, 'b: 'a
LL + where U: Debug,
|
|
error: outlives requirements can be inferred
--> $DIR/edition-lint-infer-outlives-multispan.rs:115:47
@ -217,7 +217,7 @@ help: remove these bounds
|
LL - struct TeeOutlivesAyIsDebugBee<'a, 'b, T: 'a + Debug + 'b>(&'a &'b T);
LL + struct TeeOutlivesAyIsDebugBee<'a, 'b, T: Debug>(&'a &'b T);
|
|
error: outlives requirements can be inferred
--> $DIR/edition-lint-infer-outlives-multispan.rs:118:72
@ -229,7 +229,7 @@ help: remove these bounds
|
LL - struct TeeWhereOutlivesAyIsDebugBee<'a, 'b, T>(&'a &'b T) where T: 'a + Debug + 'b;
LL + struct TeeWhereOutlivesAyIsDebugBee<'a, 'b, T>(&'a &'b T) where T: Debug;
|
|
error: outlives requirements can be inferred
--> $DIR/edition-lint-infer-outlives-multispan.rs:121:53
@ -241,7 +241,7 @@ help: remove these bounds
|
LL - struct TeeYooOutlivesAyIsDebugBee<'a, 'b, T, U: 'a + Debug + 'b>(T, &'a &'b U);
LL + struct TeeYooOutlivesAyIsDebugBee<'a, 'b, T, U: Debug>(T, &'a &'b U);
|
|
error: outlives requirements can be inferred
--> $DIR/edition-lint-infer-outlives-multispan.rs:124:48
@ -253,7 +253,7 @@ help: remove these bounds
|
LL - struct TeeOutlivesAyYooBeeIsDebug<'a, 'b, T: 'a, U: 'b + Debug>(&'a T, &'b U);
LL + struct TeeOutlivesAyYooBeeIsDebug<'a, 'b, T, U: Debug>(&'a T, &'b U);
|
|
error: outlives requirements can be inferred
--> $DIR/edition-lint-infer-outlives-multispan.rs:127:48
@ -265,7 +265,7 @@ help: remove these bounds
|
LL - struct TeeOutlivesAyYooIsDebugBee<'a, 'b, T: 'a, U: Debug + 'b>(&'a T, &'b U);
LL + struct TeeOutlivesAyYooIsDebugBee<'a, 'b, T, U: Debug>(&'a T, &'b U);
|
|
error: outlives requirements can be inferred
--> $DIR/edition-lint-infer-outlives-multispan.rs:130:46
@ -277,7 +277,7 @@ help: remove these bounds
|
LL - struct TeeOutlivesAyYooWhereBee<'a, 'b, T: 'a, U>(&'a T, &'b U) where U: 'b;
LL + struct TeeOutlivesAyYooWhereBee<'a, 'b, T, U>(&'a T, &'b U) ;
|
|
error: outlives requirements can be inferred
--> $DIR/edition-lint-infer-outlives-multispan.rs:133:81
@ -289,7 +289,7 @@ help: remove these bounds
|
LL - struct TeeYooWhereOutlivesAyIsDebugBee<'a, 'b, T, U>(T, &'a &'b U) where U: 'a + Debug + 'b;
LL + struct TeeYooWhereOutlivesAyIsDebugBee<'a, 'b, T, U>(T, &'a &'b U) where U: Debug;
|
|
error: outlives requirements can be inferred
--> $DIR/edition-lint-infer-outlives-multispan.rs:136:53
@ -301,7 +301,7 @@ help: remove these bounds
|
LL - struct TeeOutlivesAyYooWhereBeeIsDebug<'a, 'b, T: 'a, U>(&'a T, &'b U) where U: 'b + Debug;
LL + struct TeeOutlivesAyYooWhereBeeIsDebug<'a, 'b, T, U>(&'a T, &'b U) where U: Debug;
|
|
error: outlives requirements can be inferred
--> $DIR/edition-lint-infer-outlives-multispan.rs:139:53
@ -313,7 +313,7 @@ help: remove these bounds
|
LL - struct TeeOutlivesAyYooWhereIsDebugBee<'a, 'b, T: 'a, U>(&'a T, &'b U) where U: Debug + 'b;
LL + struct TeeOutlivesAyYooWhereIsDebugBee<'a, 'b, T, U>(&'a T, &'b U) where U: Debug;
|
|
error: outlives requirements can be inferred
--> $DIR/edition-lint-infer-outlives-multispan.rs:142:75
@ -325,7 +325,7 @@ help: remove these bounds
|
LL - struct TeeWhereAyYooWhereBeeIsDebug<'a, 'b, T, U>(&'a T, &'b U) where T: 'a, U: 'b + Debug;
LL + struct TeeWhereAyYooWhereBeeIsDebug<'a, 'b, T, U>(&'a T, &'b U) where U: Debug;
|
|
error: outlives requirements can be inferred
--> $DIR/edition-lint-infer-outlives-multispan.rs:145:75
@ -337,7 +337,7 @@ help: remove these bounds
|
LL - struct TeeWhereAyYooWhereIsDebugBee<'a, 'b, T, U>(&'a T, &'b U) where T: 'a, U: Debug + 'b;
LL + struct TeeWhereAyYooWhereIsDebugBee<'a, 'b, T, U>(&'a T, &'b U) where U: Debug;
|
|
error: outlives requirements can be inferred
--> $DIR/edition-lint-infer-outlives-multispan.rs:148:38
@ -349,7 +349,7 @@ help: remove these bounds
|
LL - struct BeeOutlivesAyTeeBee<'a, 'b: 'a, T: 'b>(&'a &'b T);
LL + struct BeeOutlivesAyTeeBee<'a, 'b, T>(&'a &'b T);
|
|
error: outlives requirements can be inferred
--> $DIR/edition-lint-infer-outlives-multispan.rs:151:40
@ -361,7 +361,7 @@ help: remove these bounds
|
LL - struct BeeOutlivesAyTeeAyBee<'a, 'b: 'a, T: 'a + 'b>(&'a &'b T);
LL + struct BeeOutlivesAyTeeAyBee<'a, 'b, T>(&'a &'b T);
|
|
error: outlives requirements can be inferred
--> $DIR/edition-lint-infer-outlives-multispan.rs:154:55
@ -373,7 +373,7 @@ help: remove these bounds
|
LL - struct BeeOutlivesAyTeeOutlivesAyIsDebugBee<'a, 'b: 'a, T: 'a + Debug + 'b>(&'a &'b T);
LL + struct BeeOutlivesAyTeeOutlivesAyIsDebugBee<'a, 'b, T: Debug>(&'a &'b T);
|
|
error: outlives requirements can be inferred
--> $DIR/edition-lint-infer-outlives-multispan.rs:157:71
@ -385,7 +385,7 @@ help: remove these bounds
|
LL - struct BeeWhereAyTeeWhereAyIsDebugBee<'a, 'b, T>(&'a &'b T) where 'b: 'a, T: 'a + Debug + 'b;
LL + struct BeeWhereAyTeeWhereAyIsDebugBee<'a, 'b, T>(&'a &'b T) where T: Debug;
|
|
error: outlives requirements can be inferred
--> $DIR/edition-lint-infer-outlives-multispan.rs:160:58
@ -397,7 +397,7 @@ help: remove these bounds
|
LL - struct BeeOutlivesAyTeeYooOutlivesAyIsDebugBee<'a, 'b: 'a, T, U: 'a + Debug + 'b>(T, &'a &'b U);
LL + struct BeeOutlivesAyTeeYooOutlivesAyIsDebugBee<'a, 'b, T, U: Debug>(T, &'a &'b U);
|
|
error: outlives requirements can be inferred
--> $DIR/edition-lint-infer-outlives-multispan.rs:164:18
@ -409,7 +409,7 @@ help: remove these bounds
|
LL - where U: 'a + Debug + 'b, 'b: 'a;
LL + where U: Debug, ;
|
|
error: outlives requirements can be inferred
--> $DIR/edition-lint-infer-outlives-multispan.rs:171:45
@ -421,7 +421,7 @@ help: remove these bounds
|
LL - enum TeeOutlivesAyIsDebugBee<'a, 'b, T: 'a + Debug + 'b> {
LL + enum TeeOutlivesAyIsDebugBee<'a, 'b, T: Debug> {
|
|
error: outlives requirements can be inferred
--> $DIR/edition-lint-infer-outlives-multispan.rs:176:59
@ -433,7 +433,7 @@ help: remove these bounds
|
LL - enum TeeWhereOutlivesAyIsDebugBee<'a, 'b, T> where T: 'a + Debug + 'b {
LL + enum TeeWhereOutlivesAyIsDebugBee<'a, 'b, T> where T: Debug {
|
|
error: outlives requirements can be inferred
--> $DIR/edition-lint-infer-outlives-multispan.rs:181:51
@ -445,7 +445,7 @@ help: remove these bounds
|
LL - enum TeeYooOutlivesAyIsDebugBee<'a, 'b, T, U: 'a + Debug + 'b> {
LL + enum TeeYooOutlivesAyIsDebugBee<'a, 'b, T, U: Debug> {
|
|
error: outlives requirements can be inferred
--> $DIR/edition-lint-infer-outlives-multispan.rs:187:46
@ -457,7 +457,7 @@ help: remove these bounds
|
LL - enum TeeOutlivesAyYooBeeIsDebug<'a, 'b, T: 'a, U: 'b + Debug> {
LL + enum TeeOutlivesAyYooBeeIsDebug<'a, 'b, T, U: Debug> {
|
|
error: outlives requirements can be inferred
--> $DIR/edition-lint-infer-outlives-multispan.rs:193:46
@ -469,7 +469,7 @@ help: remove these bounds
|
LL - enum TeeOutlivesAyYooIsDebugBee<'a, 'b, T: 'a, U: Debug + 'b> {
LL + enum TeeOutlivesAyYooIsDebugBee<'a, 'b, T, U: Debug> {
|
|
error: outlives requirements can be inferred
--> $DIR/edition-lint-infer-outlives-multispan.rs:199:44
@ -481,7 +481,7 @@ help: remove these bounds
|
LL - enum TeeOutlivesAyYooWhereBee<'a, 'b, T: 'a, U> where U: 'b {
LL + enum TeeOutlivesAyYooWhereBee<'a, 'b, T, U> {
|
|
error: outlives requirements can be inferred
--> $DIR/edition-lint-infer-outlives-multispan.rs:205:65
@ -493,7 +493,7 @@ help: remove these bounds
|
LL - enum TeeYooWhereOutlivesAyIsDebugBee<'a, 'b, T, U> where U: 'a + Debug + 'b {
LL + enum TeeYooWhereOutlivesAyIsDebugBee<'a, 'b, T, U> where U: Debug {
|
|
error: outlives requirements can be inferred
--> $DIR/edition-lint-infer-outlives-multispan.rs:211:51
@ -505,7 +505,7 @@ help: remove these bounds
|
LL - enum TeeOutlivesAyYooWhereBeeIsDebug<'a, 'b, T: 'a, U> where U: 'b + Debug {
LL + enum TeeOutlivesAyYooWhereBeeIsDebug<'a, 'b, T, U> where U: Debug {
|
|
error: outlives requirements can be inferred
--> $DIR/edition-lint-infer-outlives-multispan.rs:217:51
@ -517,7 +517,7 @@ help: remove these bounds
|
LL - enum TeeOutlivesAyYooWhereIsDebugBee<'a, 'b, T: 'a, U> where U: Debug + 'b {
LL + enum TeeOutlivesAyYooWhereIsDebugBee<'a, 'b, T, U> where U: Debug {
|
|
error: outlives requirements can be inferred
--> $DIR/edition-lint-infer-outlives-multispan.rs:223:67
@ -529,7 +529,7 @@ help: remove these bounds
|
LL - enum TeeWhereOutlivesAyYooWhereBeeIsDebug<'a, 'b, T, U> where T: 'a, U: 'b + Debug {
LL + enum TeeWhereOutlivesAyYooWhereBeeIsDebug<'a, 'b, T, U> where U: Debug {
|
|
error: outlives requirements can be inferred
--> $DIR/edition-lint-infer-outlives-multispan.rs:229:67
@ -541,7 +541,7 @@ help: remove these bounds
|
LL - enum TeeWhereOutlivesAyYooWhereIsDebugBee<'a, 'b, T, U> where T: 'a, U: Debug + 'b {
LL + enum TeeWhereOutlivesAyYooWhereIsDebugBee<'a, 'b, T, U> where U: Debug {
|
|
error: outlives requirements can be inferred
--> $DIR/edition-lint-infer-outlives-multispan.rs:235:36
@ -553,7 +553,7 @@ help: remove these bounds
|
LL - enum BeeOutlivesAyTeeBee<'a, 'b: 'a, T: 'b> {
LL + enum BeeOutlivesAyTeeBee<'a, 'b, T> {
|
|
error: outlives requirements can be inferred
--> $DIR/edition-lint-infer-outlives-multispan.rs:240:38
@ -565,7 +565,7 @@ help: remove these bounds
|
LL - enum BeeOutlivesAyTeeAyBee<'a, 'b: 'a, T: 'a + 'b> {
LL + enum BeeOutlivesAyTeeAyBee<'a, 'b, T> {
|
|
error: outlives requirements can be inferred
--> $DIR/edition-lint-infer-outlives-multispan.rs:246:53
@ -577,7 +577,7 @@ help: remove these bounds
|
LL - enum BeeOutlivesAyTeeOutlivesAyIsDebugBee<'a, 'b: 'a, T: 'a + Debug + 'b> {
LL + enum BeeOutlivesAyTeeOutlivesAyIsDebugBee<'a, 'b, T: Debug> {
|
|
error: outlives requirements can be inferred
--> $DIR/edition-lint-infer-outlives-multispan.rs:251:66
@ -589,7 +589,7 @@ help: remove these bounds
|
LL - enum BeeWhereAyTeeWhereOutlivesAyIsDebugBee<'a, 'b, T> where 'b: 'a, T: 'a + Debug + 'b {
LL + enum BeeWhereAyTeeWhereOutlivesAyIsDebugBee<'a, 'b, T> where T: Debug {
|
|
error: outlives requirements can be inferred
--> $DIR/edition-lint-infer-outlives-multispan.rs:256:56
@ -601,7 +601,7 @@ help: remove these bounds
|
LL - enum BeeOutlivesAyTeeYooOutlivesAyIsDebugBee<'a, 'b: 'a, T, U: 'a + Debug + 'b> {
LL + enum BeeOutlivesAyTeeYooOutlivesAyIsDebugBee<'a, 'b, T, U: Debug> {
|
|
error: outlives requirements can be inferred
--> $DIR/edition-lint-infer-outlives-multispan.rs:262:75
@ -613,7 +613,7 @@ help: remove these bounds
|
LL - enum BeeWhereAyTeeYooWhereOutlivesAyIsDebugBee<'a, 'b, T, U> where U: 'a + Debug + 'b, 'b: 'a {
LL + enum BeeWhereAyTeeYooWhereOutlivesAyIsDebugBee<'a, 'b, T, U> where U: Debug, {
|
|
error: outlives requirements can be inferred
--> $DIR/edition-lint-infer-outlives-multispan.rs:271:46
@ -625,7 +625,7 @@ help: remove these bounds
|
LL - union TeeOutlivesAyIsDebugBee<'a, 'b, T: 'a + Debug + 'b> {
LL + union TeeOutlivesAyIsDebugBee<'a, 'b, T: Debug> {
|
|
error: outlives requirements can be inferred
--> $DIR/edition-lint-infer-outlives-multispan.rs:276:60
@ -637,7 +637,7 @@ help: remove these bounds
|
LL - union TeeWhereOutlivesAyIsDebugBee<'a, 'b, T> where T: 'a + Debug + 'b {
LL + union TeeWhereOutlivesAyIsDebugBee<'a, 'b, T> where T: Debug {
|
|
error: outlives requirements can be inferred
--> $DIR/edition-lint-infer-outlives-multispan.rs:281:52
@ -649,7 +649,7 @@ help: remove these bounds
|
LL - union TeeYooOutlivesAyIsDebugBee<'a, 'b, T, U: 'a + Debug + 'b> {
LL + union TeeYooOutlivesAyIsDebugBee<'a, 'b, T, U: Debug> {
|
|
error: outlives requirements can be inferred
--> $DIR/edition-lint-infer-outlives-multispan.rs:287:47
@ -661,7 +661,7 @@ help: remove these bounds
|
LL - union TeeOutlivesAyYooBeeIsDebug<'a, 'b, T: 'a, U: 'b + Debug> {
LL + union TeeOutlivesAyYooBeeIsDebug<'a, 'b, T, U: Debug> {
|
|
error: outlives requirements can be inferred
--> $DIR/edition-lint-infer-outlives-multispan.rs:293:47
@ -673,7 +673,7 @@ help: remove these bounds
|
LL - union TeeOutlivesAyYooIsDebugBee<'a, 'b, T: 'a, U: Debug + 'b> {
LL + union TeeOutlivesAyYooIsDebugBee<'a, 'b, T, U: Debug> {
|
|
error: outlives requirements can be inferred
--> $DIR/edition-lint-infer-outlives-multispan.rs:299:45
@ -685,7 +685,7 @@ help: remove these bounds
|
LL - union TeeOutlivesAyYooWhereBee<'a, 'b, T: 'a, U> where U: 'b {
LL + union TeeOutlivesAyYooWhereBee<'a, 'b, T, U> {
|
|
error: outlives requirements can be inferred
--> $DIR/edition-lint-infer-outlives-multispan.rs:305:66
@ -697,7 +697,7 @@ help: remove these bounds
|
LL - union TeeYooWhereOutlivesAyIsDebugBee<'a, 'b, T, U> where U: 'a + Debug + 'b {
LL + union TeeYooWhereOutlivesAyIsDebugBee<'a, 'b, T, U> where U: Debug {
|
|
error: outlives requirements can be inferred
--> $DIR/edition-lint-infer-outlives-multispan.rs:311:52
@ -709,7 +709,7 @@ help: remove these bounds
|
LL - union TeeOutlivesAyYooWhereBeeIsDebug<'a, 'b, T: 'a, U> where U: 'b + Debug {
LL + union TeeOutlivesAyYooWhereBeeIsDebug<'a, 'b, T, U> where U: Debug {
|
|
error: outlives requirements can be inferred
--> $DIR/edition-lint-infer-outlives-multispan.rs:317:52
@ -721,7 +721,7 @@ help: remove these bounds
|
LL - union TeeOutlivesAyYooWhereIsDebugBee<'a, 'b, T: 'a, U> where U: Debug + 'b {
LL + union TeeOutlivesAyYooWhereIsDebugBee<'a, 'b, T, U> where U: Debug {
|
|
error: outlives requirements can be inferred
--> $DIR/edition-lint-infer-outlives-multispan.rs:323:68
@ -733,7 +733,7 @@ help: remove these bounds
|
LL - union TeeWhereOutlivesAyYooWhereBeeIsDebug<'a, 'b, T, U> where T: 'a, U: 'b + Debug {
LL + union TeeWhereOutlivesAyYooWhereBeeIsDebug<'a, 'b, T, U> where U: Debug {
|
|
error: outlives requirements can be inferred
--> $DIR/edition-lint-infer-outlives-multispan.rs:329:68
@ -745,7 +745,7 @@ help: remove these bounds
|
LL - union TeeWhereOutlivesAyYooWhereIsDebugBee<'a, 'b, T, U> where T: 'a, U: Debug + 'b {
LL + union TeeWhereOutlivesAyYooWhereIsDebugBee<'a, 'b, T, U> where U: Debug {
|
|
error: outlives requirements can be inferred
--> $DIR/edition-lint-infer-outlives-multispan.rs:335:37
@ -757,7 +757,7 @@ help: remove these bounds
|
LL - union BeeOutlivesAyTeeBee<'a, 'b: 'a, T: 'b> {
LL + union BeeOutlivesAyTeeBee<'a, 'b, T> {
|
|
error: outlives requirements can be inferred
--> $DIR/edition-lint-infer-outlives-multispan.rs:340:39
@ -769,7 +769,7 @@ help: remove these bounds
|
LL - union BeeOutlivesAyTeeAyBee<'a, 'b: 'a, T: 'a + 'b> {
LL + union BeeOutlivesAyTeeAyBee<'a, 'b, T> {
|
|
error: outlives requirements can be inferred
--> $DIR/edition-lint-infer-outlives-multispan.rs:345:54
@ -781,7 +781,7 @@ help: remove these bounds
|
LL - union BeeOutlivesAyTeeOutlivesAyIsDebugBee<'a, 'b: 'a, T: 'a + Debug + 'b> {
LL + union BeeOutlivesAyTeeOutlivesAyIsDebugBee<'a, 'b, T: Debug> {
|
|
error: outlives requirements can be inferred
--> $DIR/edition-lint-infer-outlives-multispan.rs:350:67
@ -793,7 +793,7 @@ help: remove these bounds
|
LL - union BeeWhereAyTeeWhereOutlivesAyIsDebugBee<'a, 'b, T> where 'b: 'a, T: 'a + Debug + 'b {
LL + union BeeWhereAyTeeWhereOutlivesAyIsDebugBee<'a, 'b, T> where T: Debug {
|
|
error: outlives requirements can be inferred
--> $DIR/edition-lint-infer-outlives-multispan.rs:355:57
@ -805,7 +805,7 @@ help: remove these bounds
|
LL - union BeeOutlivesAyTeeYooOutlivesAyIsDebugBee<'a, 'b: 'a, T, U: 'a + Debug + 'b> {
LL + union BeeOutlivesAyTeeYooOutlivesAyIsDebugBee<'a, 'b, T, U: Debug> {
|
|
error: outlives requirements can be inferred
--> $DIR/edition-lint-infer-outlives-multispan.rs:361:76
@ -817,7 +817,7 @@ help: remove these bounds
|
LL - union BeeWhereAyTeeYooWhereOutlivesAyIsDebugBee<'a, 'b, T, U> where U: 'a + Debug + 'b, 'b: 'a {
LL + union BeeWhereAyTeeYooWhereOutlivesAyIsDebugBee<'a, 'b, T, U> where U: Debug, {
|
|
error: aborting due to 68 previous errors

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