-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Report overflows gracefully with new solver #110103
Conversation
Some changes occurred to the core trait solver cc @rust-lang/initiative-trait-system-refactor |
CodeAmbiguity, | ||
/// Overflow reported from the new solver `-Ztrait-solver=next`, which will | ||
/// be reported as an regular error as opposed to a fatal error. | ||
CodeOverflow, |
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.
can you merge CodeOverflow
with CodeAmbiguity
?
This should make it clearer that overflow should be treated as ambiguous and not as an actual hard error.
So something like CodeAmbuguity { overflow: bool }
r=me after that
☔ The latest upstream changes (presumably #110137) made this pull request unmergeable. Please resolve the merge conflicts. |
b374229
to
9f9df8f
Compare
9f9df8f
to
05a6daa
Compare
@bors r=lcnr |
…ws, r=lcnr Report overflows gracefully with new solver avoid reporting overflows as ambiguity errors, so that the error message is clearer. r? `@lcnr`
…ws, r=lcnr Report overflows gracefully with new solver avoid reporting overflows as ambiguity errors, so that the error message is clearer. r? ``@lcnr``
…iaskrgr Rollup of 8 pull requests Successful merges: - rust-lang#109810 (Replace rustdoc-ui/{c,z}-help tests with a stable run-make test ) - rust-lang#110035 (fix: ensure bad `#[test]` invocs retain correct AST) - rust-lang#110089 (sync::mpsc: synchronize receiver disconnect with initialization) - rust-lang#110103 (Report overflows gracefully with new solver) - rust-lang#110122 (Fix x check --stage 1 when download-ci-llvm=false) - rust-lang#110133 (Do not use ImplDerivedObligationCause for inherent impl method error reporting) - rust-lang#110135 (Revert "Don't recover lifetimes/labels containing emojis as character literals") - rust-lang#110235 (Fix `--extend-css` option) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
avoid reporting overflows as ambiguity errors, so that the error message is clearer.
r? @lcnr