diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2022-11-18 17:48:18 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-18 17:48:18 -0500 |
| commit | 24ee5991959d36a2fd858e4760ca19a12912a5b9 (patch) | |
| tree | 3aaac9c0346e05ff22b1bdf95c2de14f9d600290 /compiler/rustc_codegen_llvm/src | |
| parent | 3181006d83ae9a7c64e8d83693b87259974f0bfd (diff) | |
| parent | 39e076a2e7df1407a58efa74bd46de60c7883941 (diff) | |
| download | rust-24ee5991959d36a2fd858e4760ca19a12912a5b9.tar.gz rust-24ee5991959d36a2fd858e4760ca19a12912a5b9.zip | |
Rollup merge of #104338 - compiler-errors:pointer-sized, r=eholk
Enforce that `dyn*` coercions are actually pointer-sized Implement a perma-unstable, rudimentary `PointerSized` trait to enforce `dyn*` casts are `usize`-sized for now, at least to prevent ICEs and weird codegen issues from cropping up after monomorphization since currently we enforce *nothing*. This probably can/should be removed in favor of a more sophisticated trait for handling `dyn*` conversions when we decide on one, but I just want to get something up for discussion and experimentation for now. r? ```@eholk``` cc ```@tmandry``` (though feel free to claim/reassign) Fixes #102141 Fixes #102173
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
