diff options
| author | Matthew Jasper <mjjasper1@gmail.com> | 2025-04-10 10:57:55 +0000 |
|---|---|---|
| committer | Matthew Jasper <mjjasper1@gmail.com> | 2025-04-14 10:00:28 +0000 |
| commit | 2d5e80b8cb89e9d809e569426d948e4f1fa6002d (patch) | |
| tree | 225c4df46a01ed2d5ebf8dcd6f721955190c1c57 /compiler/rustc_codegen_llvm/src/errors.rs | |
| parent | f836ae4e663b6e8938096b8559e094d18361be55 (diff) | |
| download | rust-2d5e80b8cb89e9d809e569426d948e4f1fa6002d.tar.gz rust-2d5e80b8cb89e9d809e569426d948e4f1fa6002d.zip | |
Handle regions equivalent to 'static in non_local_bounds
`non_local_bounds` would only find non local bounds that strictly bound a given region, but it's possible that a local region is equated to 'static when showing a type referencing a locally bound lifetime, such as `dyn Any + 'a` in the tests added, is well-formed. In this case we should return 'static.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
