-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rewrite error handling for unresolved inference vars #89862
Changes from all commits
721fc73
3fe346e
bc0d12c
69d575e
681736a
8b089a1
b343a46
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
error[E0283]: type annotations needed for `Mask<_, LANES>` | ||
--> $DIR/issue-91614.rs:6:13 | ||
--> $DIR/issue-91614.rs:6:9 | ||
| | ||
LL | let y = Mask::<_, _>::splat(false); | ||
| - ^^^^^^^^^^^^^^^^^^^ cannot infer type for type parameter `T` | ||
| | | ||
| consider giving `y` the explicit type `Mask<_, LANES>`, where the type parameter `T` is specified | ||
| ^ | ||
| | ||
= note: cannot satisfy `_: MaskElement` | ||
note: required by a bound in `Mask::<T, LANES>::splat` | ||
--> $SRC_DIR/core/src/../../portable-simd/crates/core_simd/src/masks.rs:LL:COL | ||
| | ||
LL | T: MaskElement, | ||
| ^^^^^^^^^^^ required by this bound in `Mask::<T, LANES>::splat` | ||
help: consider giving `y` an explicit type, where the type for type parameter `T` is specified | ||
| | ||
LL | let y: Mask<_, LANES> = Mask::<_, _>::splat(false); | ||
| ++++++++++++++++ | ||
Comment on lines
+13
to
+16
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's a shame that it is There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yeah, the reason for that is unfortunate:
|
||
|
||
error: aborting due to previous error | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,12 +2,12 @@ error[E0282]: type annotations needed | |
--> $DIR/cannot-infer-const-args.rs:6:5 | ||
| | ||
LL | foo(); | ||
| ^^^ cannot infer the value of const parameter `X` declared on the function `foo` | ||
| ^^^ cannot infer the value of the const parameter `X` declared on the function `foo` | ||
| | ||
help: consider specifying the const argument | ||
help: consider specifying the generic argument | ||
| | ||
LL | foo::<X>(); | ||
| ~~~~~~~~ | ||
| +++++ | ||
Comment on lines
+7
to
+10
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm realizing that this message should mention what type There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. added to #94483 |
||
|
||
error: aborting due to previous error | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would guess that the only thing which may impact the amount of
process_obligations
would be this.We now use a different
span
fromseg.ident
which may mean that we don't dedup obligations as readily as they now have different spans? Can try to take a deeper look at this in the near future