forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of rust-lang#126620 - oli-obk:taint_errors, r=fee1-dead
Actually taint InferCtxt when a fulfillment error is emitted And avoid checking the global error counter fixes rust-lang#122044 fixes rust-lang#123255 fixes rust-lang#123276 fixes rust-lang#125799
- Loading branch information
Showing
42 changed files
with
595 additions
and
238 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,37 @@ | ||
error[E0282]: type annotations needed for `Foo<_>` | ||
error[E0284]: type annotations needed for `Foo<_>` | ||
--> $DIR/doesnt_infer.rs:13:9 | ||
| | ||
LL | let foo = Foo::foo(); | ||
| ^^^ | ||
| ^^^ ---------- type must be known at this point | ||
| | ||
note: required by a const generic parameter in `Foo::<N>::foo` | ||
--> $DIR/doesnt_infer.rs:5:6 | ||
| | ||
LL | impl<const N: u32> Foo<N> { | ||
| ^^^^^^^^^^^^ required by this const generic parameter in `Foo::<N>::foo` | ||
LL | fn foo() -> Self { | ||
| --- required by a bound in this associated function | ||
help: consider giving `foo` an explicit type, where the value of const parameter `N` is specified | ||
| | ||
LL | let foo: Foo<N> = Foo::foo(); | ||
| ++++++++ | ||
|
||
error[E0284]: type annotations needed for `Foo<_>` | ||
--> $DIR/doesnt_infer.rs:13:9 | ||
| | ||
LL | let foo = Foo::foo(); | ||
| ^^^ --- type must be known at this point | ||
| | ||
note: required by a const generic parameter in `Foo` | ||
--> $DIR/doesnt_infer.rs:3:12 | ||
| | ||
LL | struct Foo<const N: u32 = 2>; | ||
| ^^^^^^^^^^^^^^^^ required by this const generic parameter in `Foo` | ||
help: consider giving `foo` an explicit type, where the value of const parameter `N` is specified | ||
| | ||
LL | let foo: Foo<N> = Foo::foo(); | ||
| ++++++++ | ||
|
||
error: aborting due to 1 previous error | ||
error: aborting due to 2 previous errors | ||
|
||
For more information about this error, try `rustc --explain E0282`. | ||
For more information about this error, try `rustc --explain E0284`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.