File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ error: casting to the same type is unnecessary (`u32` -> `u32`)
3
3
|
4
4
LL | let b = a as u32;
5
5
| ^^^^^^^^ help: try: `a`
6
- -Ztrack-diagnostics: created at src/tools/clippy/clippy_lints/src/casts/unnecessary_cast.rs:LL:CC
7
6
|
7
+ = note: -Ztrack-diagnostics: created at src/tools/clippy/clippy_lints/src/casts/unnecessary_cast.rs:LL:CC
8
8
= note: `-D clippy::unnecessary-cast` implied by `-D warnings`
9
9
= help: to override `-D warnings` add `#[allow(clippy::unnecessary_cast)]`
10
10
@@ -15,8 +15,8 @@ LL | let d = 42;
15
15
| ----------- unnecessary `let` binding
16
16
LL | d
17
17
| ^
18
- -Ztrack-diagnostics: created at src/tools/clippy/clippy_lints/src/returns.rs:LL:CC
19
18
|
19
+ = note: -Ztrack-diagnostics: created at src/tools/clippy/clippy_lints/src/returns.rs:LL:CC
20
20
= note: `-D clippy::let-and-return` implied by `-D warnings`
21
21
= help: to override `-D warnings` add `#[allow(clippy::let_and_return)]`
22
22
help: return the expression directly
Original file line number Diff line number Diff line change @@ -8,5 +8,6 @@ struct A;
8
8
struct B ;
9
9
const S : A = B ;
10
10
//~^ ERROR: mismatched types
11
+ //~| NOTE: created at
11
12
12
13
fn main ( ) { }
Original file line number Diff line number Diff line change @@ -3,7 +3,8 @@ error[E0308]: mismatched types
3
3
|
4
4
LL | const S: A = B;
5
5
| ^ expected `A`, found `B`
6
- -Ztrack-diagnostics: created at compiler/rustc_trait_selection/src/error_reporting/infer/mod.rs:LL:CC
6
+ |
7
+ = note: -Ztrack-diagnostics: created at compiler/rustc_trait_selection/src/error_reporting/infer/mod.rs:LL:CC
7
8
8
9
error: aborting due to 1 previous error
9
10
You can’t perform that action at this time.
0 commit comments