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`)
33 |
44LL | let b = a as u32;
55 | ^^^^^^^^ help: try: `a`
6- -Ztrack-diagnostics: created at src/tools/clippy/clippy_lints/src/casts/unnecessary_cast.rs:LL:CC
76 |
7+ = note: -Ztrack-diagnostics: created at src/tools/clippy/clippy_lints/src/casts/unnecessary_cast.rs:LL:CC
88 = note: `-D clippy::unnecessary-cast` implied by `-D warnings`
99 = help: to override `-D warnings` add `#[allow(clippy::unnecessary_cast)]`
1010
@@ -15,8 +15,8 @@ LL | let d = 42;
1515 | ----------- unnecessary `let` binding
1616LL | d
1717 | ^
18- -Ztrack-diagnostics: created at src/tools/clippy/clippy_lints/src/returns.rs:LL:CC
1918 |
19+ = note: -Ztrack-diagnostics: created at src/tools/clippy/clippy_lints/src/returns.rs:LL:CC
2020 = note: `-D clippy::let-and-return` implied by `-D warnings`
2121 = help: to override `-D warnings` add `#[allow(clippy::let_and_return)]`
2222help: return the expression directly
Original file line number Diff line number Diff line change @@ -8,5 +8,6 @@ struct A;
88struct B ;
99const S : A = B ;
1010//~^ ERROR: mismatched types
11+ //~| NOTE: created at
1112
1213fn main ( ) { }
Original file line number Diff line number Diff line change @@ -3,7 +3,8 @@ error[E0308]: mismatched types
33 |
44LL | const S: A = B;
55 | ^ 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
78
89error: aborting due to 1 previous error
910
You can’t perform that action at this time.
0 commit comments