about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorllogiq <bogusandre@gmail.com>2025-06-05 19:39:14 +0000
committerGitHub <noreply@github.com>2025-06-05 19:39:14 +0000
commitda93448c9875e40b252c794d4b08a28fe3cbeb65 (patch)
tree2943d638f193bc0b702857146ca88b89d36a182b /compiler/rustc_codegen_llvm/src/errors.rs
parentb379d54c22f9f6b9577075d7f89645ac2498c931 (diff)
parent1ae37ada0845bdaa13008c3957b98cc75f068fd4 (diff)
downloadrust-da93448c9875e40b252c794d4b08a28fe3cbeb65.tar.gz
rust-da93448c9875e40b252c794d4b08a28fe3cbeb65.zip
Do not recurse indefinitely while checking for inner mutability (#14965)
`clippy_utils::ty::InteriorMut::interior_mut_ty_chain` must stop
recursing forever when types are chained indefinitely due to the use of
associated types in generics. A false negative is acceptable, and
documented here.

Should this situation be later identified specifically, a conversion of
`Option` to `Result` would allow separating the infinitely recursive
case from a negative one.

changelog: [`mutable_key_type`]: fix ICE when infinitely associated
generic types are used

Fixes rust-lang/rust-clippy#14935
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions