diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2025-03-01 11:34:00 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-01 11:34:00 +0100 |
| commit | b7853ef3cfc2d86f859cb6017913f682c848ee1e (patch) | |
| tree | 172a31432d4d7f91e2c7721c90760a406cc2fac1 /compiler/rustc_codegen_gcc | |
| parent | 1d9992d4d27ac773c444f46b6c80f6b43e6e4608 (diff) | |
| parent | 5bf22375cf14d31a81362fe4230e4756e01483a0 (diff) | |
| download | rust-b7853ef3cfc2d86f859cb6017913f682c848ee1e.tar.gz rust-b7853ef3cfc2d86f859cb6017913f682c848ee1e.zip | |
Rollup merge of #137769 - compiler-errors:empty-unsafe-fmt, r=ytmimi
Do not yeet `unsafe<>` from type when formatting unsafe binder Unsafe binders are types like `unsafe<'a, 'b> Ty<'a, 'b>`. However, users can also specify unsafe binder types with no bound vars, like `unsafe<> Ty`. When I added nightly formatting for unsafe binders, I didn't consider this, so on nightly we are stripping the `unsafe<>` part, which gives us back `Ty` which is a different type! This PR fixes that. r? ``@ytmimi``
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions
