fix one more case of trailing space

This commit is contained in:
klensy 2022-06-08 21:07:59 +03:00
parent 0ff8ae3111
commit 989d1a732f
105 changed files with 140 additions and 140 deletions

View file

@ -819,7 +819,7 @@ impl EmitterWriter {
}
buffer.puts(line_offset, 0, &self.maybe_anonymized(line_index), Style::LineNumber);
draw_col_separator(buffer, line_offset, width_offset - 2);
draw_col_separator_no_space(buffer, line_offset, width_offset - 2);
}
fn render_source_line(

View file

@ -30,7 +30,7 @@ error[E0053]: method `make` has an incompatible type for trait
|
LL | default type Ty = bool;
| ----------------------- expected this associated type
LL |
LL |
LL | fn make() -> bool { true }
| ^^^^
| |
@ -50,7 +50,7 @@ error[E0308]: mismatched types
|
LL | type Ty = u8;
| ------------- associated type defaults can't be assumed inside the trait defining them
LL |
LL |
LL | fn make() -> Self::Ty {
| -------- expected `<Self as Tr>::Ty` because of return type
LL | 0u8
@ -77,7 +77,7 @@ error[E0308]: mismatched types
|
LL | default type Ty = bool;
| ----------------------- expected this associated type
LL |
LL |
LL | fn make() -> Self::Ty { true }
| -------- ^^^^ expected associated type, found `bool`
| |

View file

@ -5,7 +5,7 @@ LL | / trait Sub<Rhs=Self> {
LL | | type Output;
LL | | }
| |_- type parameter `Rhs` must be specified for this
LL |
LL |
LL | type Test = dyn Add + Sub;
| ^^^ help: set the type parameter to the desired type: `Sub<Rhs>`
|

View file

@ -3,7 +3,7 @@ error[E0515]: cannot return value referencing local variable `s`
|
LL | let b = &s[..];
| - `s` is borrowed here
LL |
LL |
LL | Err(b)?;
| ^^^^^^^ returns a value referencing data owned by the current function

View file

@ -3,7 +3,7 @@ error[E0255]: the name `foo` is defined multiple times
|
LL | mod foo { pub mod foo { } }
| ------- previous definition of the module `foo` here
LL |
LL |
LL | use foo::foo;
| ^^^^^^^^ `foo` reimported here
|

View file

@ -3,10 +3,10 @@ error[E0502]: cannot borrow `x` as mutable because it is also borrowed as immuta
|
LL | let y = &x;
| -- immutable borrow occurs here
LL |
LL |
LL | let q = &raw mut x;
| ^^^^^^^^^^ mutable borrow occurs here
LL |
LL |
LL | drop(y);
| - immutable borrow later used here
@ -15,7 +15,7 @@ error[E0502]: cannot borrow `x` as immutable because it is also borrowed as muta
|
LL | let y = &mut x;
| ------ mutable borrow occurs here
LL |
LL |
LL | let p = &raw const x;
| ^^^^^^^^^^^^ immutable borrow occurs here
...
@ -30,7 +30,7 @@ LL | let y = &mut x;
...
LL | let q = &raw mut x;
| ^^^^^^^^^^ second mutable borrow occurs here
LL |
LL |
LL | drop(y);
| - first borrow later used here

View file

@ -3,7 +3,7 @@ error[E0596]: cannot borrow `*x` as mutable, as it is behind a `&` reference
|
LL | let x = &0;
| -- help: consider changing this to be a mutable reference: `&mut 0`
LL |
LL |
LL | let q = &raw mut *x;
| ^^^^^^^^^^^ `x` is a `&` reference, so the data it refers to cannot be borrowed as mutable
@ -12,7 +12,7 @@ error[E0596]: cannot borrow `*x` as mutable, as it is behind a `*const` pointer
|
LL | let x = &0 as *const i32;
| -- help: consider changing this to be a mutable pointer: `&mut 0`
LL |
LL |
LL | let q = &raw mut *x;
| ^^^^^^^^^^^ `x` is a `*const` pointer, so the data it refers to cannot be borrowed as mutable

View file

@ -5,7 +5,7 @@ LL | let r = &x.0;
| ---- borrow of `x.0` occurs here
LL | let y = x;
| ^ move out of `x` occurs here
LL |
LL |
LL | r.use_ref();
| ----------- borrow later used here

View file

@ -3,10 +3,10 @@ error[E0502]: cannot borrow `p` as mutable because it is also borrowed as immuta
|
LL | let q: &isize = &p[0];
| - immutable borrow occurs here
LL |
LL |
LL | p[0] = 5;
| ^ mutable borrow occurs here
LL |
LL |
LL | println!("{}", *q);
| -- immutable borrow later used here

View file

@ -3,7 +3,7 @@ error[E0503]: cannot use `p` because it was mutably borrowed
|
LL | let q = &mut p;
| ------ borrow of `p` occurs here
LL |
LL |
LL | p + 3;
| ^ use of borrowed `p`
...
@ -18,7 +18,7 @@ LL | let q = &mut p;
...
LL | p.times(3);
| ^^^^^^^^^^ immutable borrow occurs here
LL |
LL |
LL | *q + 3; // OK to use the new alias `q`
| -- mutable borrow later used here

View file

@ -18,7 +18,7 @@ LL | let l = &mut p;
| ------ mutable borrow occurs here
LL | p.impurem();
| ^^^^^^^^^^^ immutable borrow occurs here
LL |
LL |
LL | l.x += 1;
| -------- mutable borrow later used here

View file

@ -3,7 +3,7 @@ error[E0505]: cannot move out of `*a` because it is borrowed
|
LL | let b = &a;
| -- borrow of `a` occurs here
LL |
LL |
LL | let z = *a;
| ^^ move out of `*a` occurs here
LL | b.use_ref();

View file

@ -3,7 +3,7 @@ error[E0382]: use of moved value: `t`
|
LL | let t: Box<_> = Box::new(3);
| - move occurs because `t` has type `Box<isize>`, which does not implement the `Copy` trait
LL |
LL |
LL | call_f(move|| { *t + 1 });
| ------ -- variable moved due to use in closure
| |

View file

@ -3,7 +3,7 @@ error[E0505]: cannot move out of `s` because it is borrowed
|
LL | let rs = &mut s;
| ------ borrow of `s` occurs here
LL |
LL |
LL | println!("{}", f[s]);
| ^ move out of `s` occurs here
...

View file

@ -23,7 +23,7 @@ error[E0502]: cannot borrow `s[..]` as mutable because it is also borrowed as im
|
LL | let [.., _, ref from_end4, ref from_end3, _, ref from_end1] = *s;
| ------------- immutable borrow occurs here
LL |
LL |
LL | let [_, _, ref mut from_begin2, ..] = *s;
| ^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here
LL | nop(&[from_begin2, from_end1, from_end3, from_end4]);
@ -45,7 +45,7 @@ error[E0502]: cannot borrow `s[..]` as mutable because it is also borrowed as im
|
LL | let [ref from_begin0, ref from_begin1, _, ref from_begin3, _, ..] = *s;
| --------------- immutable borrow occurs here
LL |
LL |
LL | let [.., ref mut from_end3, _, _] = *s;
| ^^^^^^^^^^^^^^^^^ mutable borrow occurs here
LL | nop(&[from_begin0, from_begin1, from_begin3, from_end3]);

View file

@ -99,7 +99,7 @@ LL | let ra = &mut u.a;
| -------- borrow of `u.a` occurs here
LL | let b = u.b;
| ^^^ use of borrowed `u.a`
LL |
LL |
LL | drop(ra);
| -- borrow later used here

View file

@ -3,7 +3,7 @@ error[E0382]: borrow of moved value: `helpers`
|
LL | let helpers = [vec![], vec![]];
| ------- move occurs because `helpers` has type `[Vec<&i64>; 2]`, which does not implement the `Copy` trait
LL |
LL |
LL | HelperStruct { helpers, is_empty: helpers[0].is_empty() }
| ------- ^^^^^^^^^^^^^^^^^^^^^ value borrowed here after move
| |

View file

@ -5,7 +5,7 @@ LL | let res = (|| (|| &greeting)())();
| -- -------- borrow occurs due to use in closure
| |
| borrow of `greeting` occurs here
LL |
LL |
LL | greeting = "DEALLOCATED".to_string();
| ^^^^^^^^ assignment to borrowed `greeting` occurs here
...

View file

@ -3,7 +3,7 @@ error[E0503]: cannot use `i` because it was mutably borrowed
|
LL | /*1*/ let p = &mut i; // (reservation of `i` starts here)
| ------ borrow of `i` occurs here
LL |
LL |
LL | /*2*/ let j = i; // OK: `i` is only reserved here
| ^ use of borrowed `i`
...

View file

@ -3,7 +3,7 @@ error[E0502]: cannot borrow `v` as mutable because it is also borrowed as immuta
|
LL | let shared = &v;
| -- immutable borrow occurs here
LL |
LL |
LL | v.extend(shared);
| ^^------^^^^^^^^
| | |

View file

@ -5,7 +5,7 @@ LL | v[0].push_str({
| - -------- first borrow later used by call
| |
| first mutable borrow occurs here
LL |
LL |
LL | v.push(format!("foo"));
| ^^^^^^^^^^^^^^^^^^^^^^ second mutable borrow occurs here

View file

@ -3,7 +3,7 @@ error[E0596]: cannot borrow `**ref_mref_x` as mutable, as it is behind a `&` ref
|
LL | let ref_mref_x = &mref_x;
| ------- help: consider changing this to be a mutable reference: `&mut mref_x`
LL |
LL |
LL | let c = || {
| ^^ `ref_mref_x` is a `&` reference, so the data it refers to cannot be borrowed as mutable
LL |

View file

@ -5,7 +5,7 @@ LL | let sq = || { *x * *x };
| -- -- borrow occurs due to use in closure
| |
| borrow of `x` occurs here
LL |
LL |
LL | twice(x);
| ^ move out of `x` occurs here
LL | invoke(sq);

View file

@ -3,7 +3,7 @@ error[E0596]: cannot borrow `c` as mutable, as it is not declared as mutable
|
LL | let c = |a, b, c, d| {};
| - help: consider changing this to be mutable: `mut c`
LL |
LL |
LL | A.f(participant_name, &mut c);
| ^^^^^^ cannot borrow as mutable

View file

@ -3,7 +3,7 @@ error[E0751]: found both positive and negative implementation of trait `std::mar
|
LL | unsafe impl<T: MyTrait + 'static> Send for TestType<T> {}
| ------------------------------------------------------ positive implementation here
LL |
LL |
LL | impl<T: MyTrait> !Send for TestType<T> {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ negative implementation here

View file

@ -3,7 +3,7 @@ error: conflicting implementations of trait `Trait` for type `for<'a, 'b> fn(&'a
|
LL | impl Trait for for<'a, 'b> fn(&'a &'b u32, &'b &'a u32) -> &'b u32 {}
| ------------------------------------------------------------------ first implementation here
LL |
LL |
LL | impl Trait for for<'c> fn(&'c &'c u32, &'c &'c u32) -> &'c u32 {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `for<'a, 'b> fn(&'a &'b u32, &'b &'a u32) -> &'b u32`
|

View file

@ -3,7 +3,7 @@ error: conflicting implementations of trait `TheTrait` for type `fn(&u8)`
|
LL | impl<'a> TheTrait for fn(&'a u8) {}
| -------------------------------- first implementation here
LL |
LL |
LL | impl TheTrait for fn(&u8) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `fn(&u8)`
|

View file

@ -3,7 +3,7 @@ error[E0119]: conflicting implementations of trait `Foo<i32>` for type `i32`
|
LL | impl Foo<i32> for i32 { }
| --------------------- first implementation here
LL |
LL |
LL | impl<A:Iterator> Foo<A::Item> for A { }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `i32`
|

View file

@ -3,7 +3,7 @@ error[E0119]: conflicting implementations of trait `Foo<_>` for type `std::optio
|
LL | impl <P, T: Foo<P>> Foo<P> for Option<T> {}
| ---------------------------------------- first implementation here
LL |
LL |
LL | impl<T, U> Foo<T> for Option<U> { }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `std::option::Option<_>`

View file

@ -3,7 +3,7 @@ error[E0119]: conflicting implementations of trait `Foo<i32>` for type `i32`
|
LL | impl Foo<i32> for i32 { }
| --------------------- first implementation here
LL |
LL |
LL | impl<A:Bar> Foo<A::Output> for A { }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `i32`

View file

@ -3,7 +3,7 @@ warning: conflicting implementations of trait `TheTrait` for type `for<'a, 'b> f
|
LL | impl TheTrait for for<'a, 'b> fn(&'a u8, &'b u8) -> &'a u8 {}
| ---------------------------------------------------------- first implementation here
LL |
LL |
LL | impl TheTrait for for<'a> fn(&'a u8, &'a u8) -> &'a u8 {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `for<'a, 'b> fn(&'a u8, &'b u8) -> &'a u8`
|

View file

@ -23,7 +23,7 @@ error[E0599]: the method `use_eq` exists for struct `Object<NoDerives>`, but its
|
LL | pub struct NoDerives;
| --------------------- doesn't satisfy `NoDerives: Eq`
LL |
LL |
LL | struct Object<T>(T);
| -------------------- method `use_eq` not found for this
...
@ -42,7 +42,7 @@ error[E0599]: the method `use_ord` exists for struct `Object<NoDerives>`, but it
|
LL | pub struct NoDerives;
| --------------------- doesn't satisfy `NoDerives: Ord`
LL |
LL |
LL | struct Object<T>(T);
| -------------------- method `use_ord` not found for this
...
@ -64,7 +64,7 @@ LL | pub struct NoDerives;
| |
| doesn't satisfy `NoDerives: Ord`
| doesn't satisfy `NoDerives: PartialOrd`
LL |
LL |
LL | struct Object<T>(T);
| -------------------- method `use_ord_and_partial_ord` not found for this
...

View file

@ -3,7 +3,7 @@ error[E0255]: the name `foo` is defined multiple times
|
LL | use bar::foo;
| -------- previous import of the value `foo` here
LL |
LL |
LL | fn foo() {}
| ^^^^^^^^ `foo` redefined here
|

View file

@ -3,7 +3,7 @@ error[E0259]: the name `alloc` is defined multiple times
|
LL | extern crate alloc;
| ------------------- previous import of the extern crate `alloc` here
LL |
LL |
LL | extern crate libc as alloc;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ `alloc` reimported here
|

View file

@ -3,7 +3,7 @@ error[E0260]: the name `alloc` is defined multiple times
|
LL | extern crate alloc;
| ------------------- previous import of the extern crate `alloc` here
LL |
LL |
LL | mod alloc {
| ^^^^^^^^^ `alloc` redefined here
|

View file

@ -3,7 +3,7 @@ error[E0393]: the type parameter `T` must be explicitly specified
|
LL | trait A<T=Self> {}
| ------------------ type parameter `T` must be specified for this
LL |
LL |
LL | fn together_we_will_rule_the_galaxy(son: &dyn A) {}
| ^ help: set the type parameter to the desired type: `A<T>`
|

View file

@ -31,7 +31,7 @@ error[E0423]: expected function, tuple struct or tuple variant, found struct `Fo
|
LL | struct Foo { a: bool };
| ---------------------- `Foo` defined here
LL |
LL |
LL | let f = Foo();
| ^^^^^
...

View file

@ -3,7 +3,7 @@ error[E0446]: private type `Bar` in public interface
|
LL | struct Bar(u32);
| ---------------- `Bar` declared as private
LL |
LL |
LL | pub fn bar() -> Bar {
| ^^^^^^^^^^^^^^^^^^^ can't leak private type

View file

@ -3,7 +3,7 @@ error[E0453]: allow(non_snake_case) incompatible with previous forbid
|
LL | #![forbid(non_snake_case)]
| -------------- `forbid` level set here
LL |
LL |
LL | #[allow(non_snake_case)]
| ^^^^^^^^^^^^^^ overruled by previous forbid
@ -12,7 +12,7 @@ error[E0453]: allow(non_snake_case) incompatible with previous forbid
|
LL | #![forbid(non_snake_case)]
| -------------- `forbid` level set here
LL |
LL |
LL | #[allow(non_snake_case)]
| ^^^^^^^^^^^^^^ overruled by previous forbid

View file

@ -3,7 +3,7 @@ error[E0505]: cannot move out of `fancy_num` because it is borrowed
|
LL | let fancy_ref = &fancy_num;
| ---------- borrow of `fancy_num` occurs here
LL |
LL |
LL | let x = move || {
| ^^^^^^^ move out of `fancy_num` occurs here
LL | println!("child function: {}", fancy_num.num);

View file

@ -5,7 +5,7 @@ LL | let fancy_ref = &fancy_num;
| ---------- borrow of `fancy_num` occurs here
LL | fancy_num = FancyNum { num: 6 };
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ assignment to borrowed `fancy_num` occurs here
LL |
LL |
LL | println!("Num: {}, Ref: {}", fancy_num.num, fancy_ref.num);
| ------------- borrow later used here

View file

@ -3,7 +3,7 @@ error[E0119]: conflicting implementations of trait `Foo` for type `&_`
|
LL | impl<T: std::ops::DerefMut> Foo for T { }
| ------------------------------------- first implementation here
LL |
LL |
LL | impl<T> Foo for &T { }
| ^^^^^^^^^^^^^^^^^^ conflicting implementation for `&_`

View file

@ -93,7 +93,7 @@ error: invalid format string: expected `'}'` but string was terminated
|
LL | {
| - because of this opening brace
LL |
LL |
LL | "###);
| ^ expected `'}'` in format string
|

View file

@ -3,10 +3,10 @@ error[E0502]: cannot borrow `my_stuff` as mutable because it is also borrowed as
|
LL | let (_, thing) = my_stuff.iter().next().unwrap();
| --------------- immutable borrow occurs here
LL |
LL |
LL | my_stuff.clear();
| ^^^^^^^^^^^^^^^^ mutable borrow occurs here
LL |
LL |
LL | println!("{}", *thing);
| ------ immutable borrow later used here

View file

@ -3,7 +3,7 @@ error[E0720]: cannot resolve opaque type
|
LL | fn id<T>(t: T) -> impl Sized { t }
| ---------- returning this opaque type `impl Sized`
LL |
LL |
LL | fn recursive_id() -> impl Sized {
| ^^^^^^^^^^ recursive opaque type
LL | id(recursive_id2())
@ -25,7 +25,7 @@ error[E0720]: cannot resolve opaque type
|
LL | fn wrap<T>(t: T) -> impl Sized { (t,) }
| ---------- returning this opaque type `impl Sized`
LL |
LL |
LL | fn recursive_wrap() -> impl Sized {
| ^^^^^^^^^^ recursive opaque type
LL | wrap(recursive_wrap2())

View file

@ -7,7 +7,7 @@ LL | let mut f = || v.push(2);
| borrow of `v` occurs here
LL | let _w = v;
| ^ move out of `v` occurs here
LL |
LL |
LL | f();
| - borrow later used here

View file

@ -3,7 +3,7 @@ error[E0393]: the type parameter `T` must be explicitly specified
|
LL | trait A<T=Self> {}
| ------------------ type parameter `T` must be specified for this
LL |
LL |
LL | fn f(a: &dyn A) {}
| ^ help: set the type parameter to the desired type: `A<T>`
|

View file

@ -3,7 +3,7 @@ error[E0428]: the name `foo` is defined multiple times
|
LL | fn foo();
| --------- previous definition of the value `foo` here
LL |
LL |
LL | / pub
LL | | fn foo();
| |___________^ `foo` redefined here

View file

@ -3,7 +3,7 @@ error[E0428]: the name `A` is defined multiple times
|
LL | enum A { B, C }
| ------ previous definition of the type `A` here
LL |
LL |
LL | enum A { D, E }
| ^^^^^^ `A` redefined here
|

View file

@ -3,7 +3,7 @@ error[E0428]: the name `a` is defined multiple times
|
LL | pub mod a {}
| --------- previous definition of the module `a` here
LL |
LL |
LL | pub mod a {}
| ^^^^^^^^^ `a` redefined here
|

View file

@ -3,7 +3,7 @@ error[E0308]: mismatched types
|
LL | struct Foo(u32);
| ---------------- fn(u32) -> Foo {Foo} defined here
LL |
LL |
LL | fn test() -> Foo { Foo }
| --- ^^^ expected struct `Foo`, found fn item
| |

View file

@ -3,7 +3,7 @@ error: captured variable cannot escape `FnMut` closure body
|
LL | let mut x: Box<()> = Box::new(());
| ----- variable defined here
LL |
LL |
LL | || {
| - inferred to be a `FnMut` closure
LL | &mut x

View file

@ -3,7 +3,7 @@ error: captured variable cannot escape `FnMut` closure body
|
LL | let mut x: Vec<()> = Vec::new();
| ----- variable defined here
LL |
LL |
LL | || {
| - inferred to be a `FnMut` closure
LL | / || {

View file

@ -5,7 +5,7 @@ LL | / fn bar() {
LL | | Foo { baz: 0 }.bar();
LL | | }
| |_____- previous definition of `bar` here
LL |
LL |
LL | / fn bar() {
LL | | }
| |_____^ duplicate definition

View file

@ -3,7 +3,7 @@ error[E0502]: cannot borrow `heap` as immutable because it is also borrowed as m
|
LL | let borrow = heap.peek_mut();
| --------------- mutable borrow occurs here
LL |
LL |
LL | match (borrow, ()) {
| ------------ a temporary with access to the mutable borrow is created here ...
LL | (Some(_), ()) => {

View file

@ -3,7 +3,7 @@ error[E0423]: expected function, tuple struct or tuple variant, found struct `X`
|
LL | struct X {}
| ----------- `X` defined here
LL |
LL |
LL | const Y: X = X("ö");
| ^^^^^^ help: use struct literal syntax instead: `X {}`

View file

@ -3,7 +3,7 @@ error[E0621]: explicit lifetime required in the type of `x`
|
LL | fn foo<'a>(&'a self, x: &i32) -> &i32 {
| ---- help: add explicit lifetime `'a` to the type of `x`: `&'a i32`
LL |
LL |
LL | if true { &self.field } else { x }
| ^ lifetime `'a` required

View file

@ -5,7 +5,7 @@ LL | fn foo<'a>(x: &i32, y: &'a i32) -> &'a i32 {
| -- - let's call the lifetime of this reference `'1`
| |
| lifetime `'a` defined here
LL |
LL |
LL | if x > y { x } else { y }
| ^ associated function was supposed to return data with lifetime `'a` but it is returning data with lifetime `'1`

View file

@ -5,7 +5,7 @@ LL | fn foo<'a>(&self, x: &'a i32) -> &i32 {
| -- - let's call the lifetime of this reference `'1`
| |
| lifetime `'a` defined here
LL |
LL |
LL | x
| ^ associated function was supposed to return data with lifetime `'1` but it is returning data with lifetime `'a`

View file

@ -5,7 +5,7 @@ LL | fn foo<'a>(&self, x: &'a Foo) -> &'a Foo {
| -- - let's call the lifetime of this reference `'1`
| |
| lifetime `'a` defined here
LL |
LL |
LL | if true { x } else { self }
| ^^^^ associated function was supposed to return data with lifetime `'a` but it is returning data with lifetime `'1`

View file

@ -3,7 +3,7 @@ warning: allow(unused_variables) incompatible with previous forbid
|
LL | #![forbid(unused)]
| ------ `forbid` level set here
LL |
LL |
LL | #[allow(unused_variables)]
| ^^^^^^^^^^^^^^^^ overruled by previous forbid
|
@ -16,7 +16,7 @@ warning: allow(unused_variables) incompatible with previous forbid
|
LL | #![forbid(unused)]
| ------ `forbid` level set here
LL |
LL |
LL | #[allow(unused_variables)]
| ^^^^^^^^^^^^^^^^ overruled by previous forbid
|
@ -28,7 +28,7 @@ warning: allow(unused_variables) incompatible with previous forbid
|
LL | #![forbid(unused)]
| ------ `forbid` level set here
LL |
LL |
LL | #[allow(unused_variables)]
| ^^^^^^^^^^^^^^^^ overruled by previous forbid
|

View file

@ -3,7 +3,7 @@ error[E0453]: allow(unused) incompatible with previous forbid
|
LL | #![forbid(unused_variables)]
| ---------------- `forbid` level set here
LL |
LL |
LL | #[allow(unused)]
| ^^^^^^ overruled by previous forbid
@ -12,7 +12,7 @@ error[E0453]: allow(unused) incompatible with previous forbid
|
LL | #![forbid(unused_variables)]
| ---------------- `forbid` level set here
LL |
LL |
LL | #[allow(unused)]
| ^^^^^^ overruled by previous forbid

View file

@ -3,7 +3,7 @@ warning: deny(warnings) incompatible with previous forbid
|
LL | #![forbid(warnings)]
| -------- `forbid` level set here
LL |
LL |
LL | #[deny(warnings)]
| ^^^^^^^^ overruled by previous forbid
|
@ -16,7 +16,7 @@ warning: deny(warnings) incompatible with previous forbid
|
LL | #![forbid(warnings)]
| -------- `forbid` level set here
LL |
LL |
LL | #[deny(warnings)]
| ^^^^^^^^ overruled by previous forbid
|
@ -28,7 +28,7 @@ warning: deny(warnings) incompatible with previous forbid
|
LL | #![forbid(warnings)]
| -------- `forbid` level set here
LL |
LL |
LL | #[deny(warnings)]
| ^^^^^^^^ overruled by previous forbid
|

View file

@ -3,7 +3,7 @@ error[E0453]: allow(deprecated) incompatible with previous forbid
|
LL | #![forbid(deprecated)]
| ---------- `forbid` level set here
LL |
LL |
LL | #[allow(deprecated)]
| ^^^^^^^^^^ overruled by previous forbid
@ -12,7 +12,7 @@ error[E0453]: allow(deprecated) incompatible with previous forbid
|
LL | #![forbid(deprecated)]
| ---------- `forbid` level set here
LL |
LL |
LL | #[allow(deprecated)]
| ^^^^^^^^^^ overruled by previous forbid

View file

@ -3,7 +3,7 @@ error: conflicting implementations of trait `Foo` for type `(dyn std::marker::Se
|
LL | impl Foo for dyn Send {}
| --------------------- first implementation here
LL |
LL |
LL | impl Foo for dyn Send + Send {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `(dyn std::marker::Send + 'static)`
|
@ -16,7 +16,7 @@ error: conflicting implementations of trait `Foo` for type `(dyn std::marker::Se
|
LL | impl Foo for dyn Send + Sync {}
| ---------------------------- first implementation here
LL |
LL |
LL | impl Foo for dyn Sync + Send {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `(dyn std::marker::Send + std::marker::Sync + 'static)`
|

View file

@ -3,7 +3,7 @@ error: `Umm` held across a suspend point, but should not be
|
LL | let guard = &mut self.u;
| ^^^^^^
LL |
LL |
LL | other().await;
| ------ the value is held across this suspend point
|

View file

@ -23,7 +23,7 @@ error: boxed `Wow` trait object held across a suspend point, but should not be
|
LL | let _guard2 = r#dyn();
| ^^^^^^^
LL |
LL |
LL | other().await;
| ------ the value is held across this suspend point
|

View file

@ -5,7 +5,7 @@ LL | let x: Box<_> = 5.into();
| - move occurs because `x` has type `Box<i32>`, which does not implement the `Copy` trait
LL | let y = x;
| - value moved here
LL |
LL |
LL | println!("{}", *x);
| ^^ value borrowed here after move
|

View file

@ -3,7 +3,7 @@ error[E0308]: mismatched types
|
LL | enum B { B }
| - unit variant defined here
LL |
LL |
LL | fn main() { let x: A = A::A; match x { B::B => { } } }
| - ^^^^ expected enum `A`, found enum `B`
| |

View file

@ -3,7 +3,7 @@ error[E0412]: cannot find type `N` in this scope
|
LL | struct X<const N: u8>();
| ------------------------ similarly named struct `X` defined here
LL |
LL |
LL | impl X<N> {}
| ^
|

View file

@ -6,7 +6,7 @@ LL | y: &y,
...
LL | }
| - `y` dropped here while still borrowed
LL |
LL |
LL | deref(p);
| - borrow later used here

View file

@ -32,7 +32,7 @@ LL | closure(&mut p, &y);
LL |
LL | }
| - `y` dropped here while still borrowed
LL |
LL |
LL | deref(p);
| - borrow later used here

View file

@ -54,7 +54,7 @@ LL | let mut closure1 = || p = &y;
...
LL | }
| - `y` dropped here while still borrowed
LL |
LL |
LL | deref(p);
| - borrow later used here

View file

@ -36,7 +36,7 @@ LL | let mut closure = || p = &y;
...
LL | }
| - `y` dropped here while still borrowed
LL |
LL |
LL | deref(p);
| - borrow later used here

View file

@ -6,7 +6,7 @@ LL | y = &x
LL |
LL | }
| - `x` dropped here while still borrowed
LL |
LL |
LL | println!("{}", y);
| - borrow later used here

View file

@ -9,7 +9,7 @@ LL | D("other").next(&_thing1)
...
LL | }
| - `_thing1` dropped here while still borrowed
LL |
LL |
LL | ;
| - ... and the borrow might be used here, when that temporary is dropped and runs the `Drop` code for type `D`
|

View file

@ -8,7 +8,7 @@ LL | D(&_thing1).end()
| a temporary with access to the borrow is created here ...
LL | }
| - `_thing1` dropped here while still borrowed
LL |
LL |
LL | ;
| - ... and the borrow might be used here, when that temporary is dropped and runs the `Drop` code for type `D`
|

View file

@ -3,7 +3,7 @@ error[E0382]: borrow of moved value: `arc_v`
|
LL | let arc_v = Arc::new(v);
| ----- move occurs because `arc_v` has type `Arc<Vec<i32>>`, which does not implement the `Copy` trait
LL |
LL |
LL | thread::spawn(move|| {
| ------ value moved into closure here
LL | assert_eq!((*arc_v)[3], 4);

View file

@ -3,7 +3,7 @@ error[E0382]: borrow of moved value: `arc_v`
|
LL | let arc_v = Arc::new(v);
| ----- move occurs because `arc_v` has type `Arc<Vec<i32>>`, which does not implement the `Copy` trait
LL |
LL |
LL | thread::spawn(move|| {
| ------ value moved into closure here
LL | assert_eq!((*arc_v)[3], 4);

View file

@ -6,7 +6,7 @@ LL | let hello = move || {
LL | | println!("Hello {}", a.0);
LL | | };
| |_____- within this `[closure@$DIR/not-clone-closure.rs:7:17: 9:6]`
LL |
LL |
LL | let hello = hello.clone();
| ^^^^^ within `[closure@$DIR/not-clone-closure.rs:7:17: 9:6]`, the trait `Clone` is not implemented for `S`
|

View file

@ -5,7 +5,7 @@ LL | / /**
LL | | * My module
LL | | */
| |___- previous doc comment
LL |
LL |
LL | #![recursion_limit="100"]
| ^^^^^^^^^^^^^^^^^^^^^^^^^ not permitted following an outer attribute
LL |

View file

@ -3,7 +3,7 @@ error: an inner attribute is not permitted following an outer attribute
|
LL | #[feature(lang_items)]
| ---------------------- previous outer attribute
LL |
LL |
LL | #![recursion_limit="100"]
| ^^^^^^^^^^^^^^^^^^^^^^^^^ not permitted following an outer attribute
LL | fn main() {}

View file

@ -6,7 +6,7 @@ LL | fn f() { assert_eq!(f(), (), assert_eq!(assert_eq!
| | |
| | unclosed delimiter
| unclosed delimiter
LL |
LL |
LL | fn main() {}
| ^
@ -18,7 +18,7 @@ LL | fn f() { assert_eq!(f(), (), assert_eq!(assert_eq!
| | |
| | unclosed delimiter
| unclosed delimiter
LL |
LL |
LL | fn main() {}
| ^
@ -30,7 +30,7 @@ LL | fn f() { assert_eq!(f(), (), assert_eq!(assert_eq!
| | |
| | unclosed delimiter
| unclosed delimiter
LL |
LL |
LL | fn main() {}
| ^
@ -39,7 +39,7 @@ error: expected one of `(`, `[`, or `{`, found keyword `fn`
|
LL | fn f() { assert_eq!(f(), (), assert_eq!(assert_eq!
| - expected one of `(`, `[`, or `{`
LL |
LL |
LL | fn main() {}
| ^^ unexpected token
|

View file

@ -5,8 +5,8 @@ LL | fn p() { match s { v, E { [) {) }
| - - unclosed delimiter
| |
| unclosed delimiter
LL |
LL |
LL |
LL |
| ^
error: this file contains an unclosed delimiter
@ -16,8 +16,8 @@ LL | fn p() { match s { v, E { [) {) }
| - - unclosed delimiter
| |
| unclosed delimiter
LL |
LL |
LL |
LL |
| ^
error: expected one of `,` or `}`, found `{`
@ -51,8 +51,8 @@ error: expected one of `.`, `?`, `{`, or an operator, found `}`
|
LL | fn p() { match s { v, E { [) {) }
| ----- while parsing this `match` expression
LL |
LL |
LL |
LL |
| ^ expected one of `.`, `?`, `{`, or an operator
error: mismatched closing delimiter: `)`

View file

@ -3,7 +3,7 @@ error: unexpected closing delimiter: `}`
|
LL | fn main() {
| - this opening brace...
LL |
LL |
LL | }
| - ...matches this closing brace
LL | let _ = ();

View file

@ -3,7 +3,7 @@ error: unreachable statement
|
LL | loop{}
| ------ any code following this expression is unreachable
LL |
LL |
LL | let a = 3;
| ^^^^^^^^^^ unreachable statement
|

View file

@ -3,7 +3,7 @@ error[E0530]: function parameters cannot shadow statics
|
LL | static foo: i32 = 0;
| -------------------- the static `foo` is defined here
LL |
LL |
LL | fn bar(foo: i32) {}
| ^^^ cannot be named the same as a static
@ -12,7 +12,7 @@ error[E0530]: function parameters cannot shadow statics
|
LL | use self::submod::answer;
| -------------------- the static `answer` is imported here
LL |
LL |
LL | fn question(answer: i32) {}
| ^^^^^^ cannot be named the same as a static

View file

@ -3,7 +3,7 @@ error[E0433]: failed to resolve: use of undeclared type `Baz`
|
LL | let Baz: &str = "";
| --- help: `Baz` is defined here, but is not a type
LL |
LL |
LL | println!("{}", Baz::Bar);
| ^^^ use of undeclared type `Baz`

View file

@ -9,7 +9,7 @@ error[E0412]: cannot find type `Baz` in this scope
|
LL | enum Bar { }
| -------- similarly named enum `Bar` defined here
LL |
LL |
LL | type A = Baz; // Misspelled type name.
| ^^^ help: an enum with a similar name exists: `Bar`

View file

@ -3,7 +3,7 @@ error[E0255]: the name `transmute` is defined multiple times
|
LL | use std::mem::transmute;
| ------------------- previous import of the value `transmute` here
LL |
LL |
LL | fn transmute() {}
| ^^^^^^^^^^^^^^ `transmute` redefined here
|

View file

@ -3,7 +3,7 @@ error[E0255]: the name `Iter` is defined multiple times
|
LL | use std::slice::Iter;
| ---------------- previous import of the type `Iter` here
LL |
LL |
LL | struct Iter;
| ^^^^^^^^^^^^ `Iter` redefined here
|

View file

@ -17,7 +17,7 @@ LL | | I: Iterator,
LL | | {
LL | | }
| |_- first implementation here
LL |
LL |
LL | impl IntoPyDictPointer for ()
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `()`
|

View file

@ -48,7 +48,7 @@ error[E0046]: not all trait items implemented, missing: `Type`, `foo`, `bar`, `q
|
LL | type Type;
| ---------- `Type` from trait
LL |
LL |
LL | fn foo();
| --------- `foo` from trait
LL | fn bar();

View file

@ -262,7 +262,7 @@ LL | trait _5 = Obj + Send;
| |
| additional non-auto trait
| first non-auto trait
LL |
LL |
LL | type _T20 = dyn _5 + _5;
| -- ^^ trait alias used in trait object type (additional use)
| |
@ -326,7 +326,7 @@ LL | trait _6 = _5 + _5; // ==> Obj + Send + Obj + Send
| -- -- referenced here (additional use)
| |
| referenced here (first use)
LL |
LL |
LL | type _T30 = dyn _6;
| ^^
| |
@ -392,7 +392,7 @@ LL | trait _7 = _5 + Sync;
| -- referenced here (first use)
LL | trait _8 = Unpin + _7;
| -- referenced here (first use)
LL |
LL |
LL | type _T40 = dyn _8 + Obj;
| -- ^^^ additional non-auto trait
| |

View file

@ -148,7 +148,7 @@ LL | trait _1 = _0;
...
LL | trait _5 = Sync + ObjB + Send;
| ---- first non-auto trait
LL |
LL |
LL | type _T20 = dyn _5 + _1;
| -- ^^ trait alias used in trait object type (additional use)
| |
@ -460,7 +460,7 @@ LL | trait _9 = _5 + Sync;
| -- referenced here (first use)
LL | trait _10 = Unpin + _9;
| -- referenced here (first use)
LL |
LL |
LL | type _T40 = dyn _10 + ObjA;
| --- ^^^^ additional non-auto trait
| |

View file

@ -12,7 +12,7 @@ error[E0224]: at least one trait is required for an object type
|
LL | trait _2 = _1 + _1;
| ------------------- this alias does not contain a trait
LL |
LL |
LL | type _T1 = dyn _2;
| ^^^^^^

View file

@ -3,7 +3,7 @@ error[E0505]: cannot move out of `v` because it is borrowed
|
LL | let el = &v[0];
| - borrow of `v` occurs here
LL |
LL |
LL | for _ in v {
| ^ move out of `v` occurs here
LL |

View file

@ -42,7 +42,7 @@ LL | let k = &mut i;
...
LL | i = 40;
| ^^^^^^ assignment to borrowed `i` occurs here
LL |
LL |
LL | let i_ptr = if let Err(i_ptr) = j { i_ptr } else { panic ! ("") };
| - borrow later used here

View file

@ -3,7 +3,7 @@ warning: unreachable expression
|
LL | return;
| ------ any code following this expression is unreachable
LL |
LL |
LL | / try {
LL | | loop {
LL | | err()?;
@ -32,7 +32,7 @@ LL | / loop {
LL | | err()?;
LL | | }
| |_________- any code following this expression is unreachable
LL |
LL |
LL | 42
| ^^ unreachable expression

View file

@ -21,7 +21,7 @@ error[E0308]: mismatched types
|
LL | type Closure = impl FnOnce();
| ------------- the expected opaque type
LL |
LL |
LL | fn c() -> Closure {
| ------- expected `Closure` because of return type
LL | || -> Closure { || () }

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