about summary refs log tree commit diff
path: root/compiler/rustc_interface/src/callbacks.rs
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2022-08-22 11:45:45 +0530
committerGitHub <noreply@github.com>2022-08-22 11:45:45 +0530
commit88e39b2c2e875d78f8c04fe8c6a52a6a48632af5 (patch)
treeb58da1c85df07b941f32365551c974562ec3d941 /compiler/rustc_interface/src/callbacks.rs
parent57e521e0e5d3dc7deb389697e516aaae12e37613 (diff)
parent4b47686e10caafebab36445072a17b6a0d4b99c7 (diff)
downloadrust-88e39b2c2e875d78f8c04fe8c6a52a6a48632af5.tar.gz
rust-88e39b2c2e875d78f8c04fe8c6a52a6a48632af5.zip
Rollup merge of #100757 - ouz-a:issue-95134, r=jackh726
Catch overflow early

Although this code should raise an overflow error, it didn't because [check_recursion_limit](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_trait_selection/traits/select/struct.SelectionContext.html#method.check_recursion_limit) it checks for `depth = 128` but not for `129` which should have triggered the overflow error. Anyways this catches that error early.

Fixes #95134
Diffstat (limited to 'compiler/rustc_interface/src/callbacks.rs')
0 files changed, 0 insertions, 0 deletions