-
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
Catch overflow early #100757
Catch overflow early #100757
Conversation
(rust-highfive has picked a reviewer for you, use r? to override) |
I don't understand why this check needs to be performed in this specific place but not in others. |
There is a similar check above, so I thought it was appropriate to put it here 😅 |
Weird rust-highfive assigned you again 🤷♂️ r? @jackh726 |
@bors r+ |
Rollup of 5 pull requests Successful merges: - rust-lang#93162 (Std module docs improvements) - rust-lang#99386 (Add tests that check `Vec::retain` predicate execution order.) - rust-lang#99915 (Recover keywords in trait bounds) - rust-lang#100694 (Migrate rustc_ast_passes diagnostics to `SessionDiagnostic` and translatable messages (first part)) - rust-lang#100757 (Catch overflow early) Failed merges: - rust-lang#99917 (Move Error trait into core) r? `@ghost` `@rustbot` modify labels: rollup
…rors Reverts check done by rust-lang#100757 As my `fix` caused more issues than it resolved it's better to revert it. ( rust-lang#103274 rust-lang#104322 rust-lang#104606) r? `@compiler-errors` Reopens rust-lang#95134
…rors Reverts check done by rust-lang#100757 As my `fix` caused more issues than it resolved it's better to revert it. ( rust-lang#103274 rust-lang#104322 rust-lang#104606) r? `@compiler-errors` Reopens rust-lang#95134
Although this code should raise an overflow error, it didn't because check_recursion_limit it checks for
depth = 128
but not for129
which should have triggered the overflow error. Anyways this catches that error early.Fixes #95134