about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/context.rs
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2025-01-12 23:08:58 +0100
committerGitHub <noreply@github.com>2025-01-12 23:08:58 +0100
commitfad3039124540aace9e45fc662c7367bebc15f53 (patch)
treeadec961e3de9adba5469d05592797505217246f6 /compiler/rustc_codegen_llvm/src/context.rs
parent24cc0cb6fe0c03241df4918a054caa77d7c97c0f (diff)
parent4de8cefbdf032077154576a646f340883927c5b3 (diff)
downloadrust-fad3039124540aace9e45fc662c7367bebc15f53.tar.gz
rust-fad3039124540aace9e45fc662c7367bebc15f53.zip
Rollup merge of #135383 - BoxyUwU:cov_tag_ptr, r=compiler-errors
De-abstract tagged ptr and make it covariant

In #135272 I needed to use a tagged ptr in `hir::TyKind` in order to not regress hir type sizes. Unfortunately the existing `CopyTaggedPtr` abstraction is insufficient as it makes the `'hir` lifetime invariant.

I spent some time trying to keep existing functionality while making it covariant but in the end I realised that actually we dont use *any* of this code *anywhere* in rustc, so I've just removed everything and replaced it with a much less general abstraction that is suitable for what I need in #135272.

Idk if anyone has a preference for just keeping all the abstractions here in case anyone needs them in the future :woman_shrugging:
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/context.rs')
0 files changed, 0 insertions, 0 deletions