diff options
| author | llogiq <bogusandre@gmail.com> | 2025-06-05 19:39:14 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-05 19:39:14 +0000 |
| commit | da93448c9875e40b252c794d4b08a28fe3cbeb65 (patch) | |
| tree | 2943d638f193bc0b702857146ca88b89d36a182b /compiler/rustc_codegen_llvm/src/errors.rs | |
| parent | b379d54c22f9f6b9577075d7f89645ac2498c931 (diff) | |
| parent | 1ae37ada0845bdaa13008c3957b98cc75f068fd4 (diff) | |
| download | rust-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
