about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2022-11-18 17:48:18 -0500
committerGitHub <noreply@github.com>2022-11-18 17:48:18 -0500
commit24ee5991959d36a2fd858e4760ca19a12912a5b9 (patch)
tree3aaac9c0346e05ff22b1bdf95c2de14f9d600290 /compiler/rustc_codegen_llvm/src
parent3181006d83ae9a7c64e8d83693b87259974f0bfd (diff)
parent39e076a2e7df1407a58efa74bd46de60c7883941 (diff)
downloadrust-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