about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/llvm_util.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-09-16 21:53:07 +0200
committerGitHub <noreply@github.com>2024-09-16 21:53:07 +0200
commit852e08e9bc8de4611b2aebf8678ee32758b39494 (patch)
tree9916ea4106e8a2ab599e09d6675ce608f2eadcf3 /compiler/rustc_codegen_llvm/src/llvm_util.rs
parent7be15b850ffd180f7cf178d055c5516bd923b952 (diff)
parent575c15a72ed339073bd446fa216c7dc31e2d5d2a (diff)
downloadrust-852e08e9bc8de4611b2aebf8678ee32758b39494.tar.gz
rust-852e08e9bc8de4611b2aebf8678ee32758b39494.zip
Rollup merge of #130282 - compiler-errors:over-overflow, r=BoxyUwU
Do not report an excessive number of overflow errors for an ever-growing deref impl

Check that we don't first hit the recursion limit in `get_field_candidates_considering_privacy` before probing for methods when we have a method lookup failure and we want to see if `.field.method()` exists. We also silence overflow error messages if we're probing for methods for diagnostics.

Also renames some functions to make it clearer that they're only for diagnostics, and sprinkle some `Autoderef::silence_errors` around to silence unnecessary overflow errors that come from diagnostics.

Fixes #130224.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm_util.rs')
0 files changed, 0 insertions, 0 deletions