about summary refs log tree commit diff
path: root/compiler/rustc_plugin_impl/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-08-20 23:04:57 +0000
committerbors <bors@rust-lang.org>2021-08-20 23:04:57 +0000
commit1e3d632f8f921d03ccc5b71d97decf980df7dbe4 (patch)
tree7bc2ba77dbc9b6e8ff164d449f2d0fe6d1ac17cf /compiler/rustc_plugin_impl/src
parenta0035916e01d8e644ccd44554c57f0874cef8c8c (diff)
parentc75a93023a77dc9c468519e79a1206e5b56b33b9 (diff)
downloadrust-1e3d632f8f921d03ccc5b71d97decf980df7dbe4.tar.gz
rust-1e3d632f8f921d03ccc5b71d97decf980df7dbe4.zip
Auto merge of #88087 - jesyspa:issue-87935-box, r=jackh726
Check that a box expression's type is Sized

This resolves [issue 87935](https://github.com/rust-lang/rust/issues/87935).

This makes E0161 (move from an unsized rvalue) much less common.  I've replaced the test to use [this case](https://github.com/rust-lang/rust/blob/master/src/test/ui/object-safety/object-safety-by-value-self-use.rs), when a boxed `dyn` trait is passed by value, but that isn't an error when `unsized_locals` is enabled.  I think it may be possible to get rid of E0161 entirely by checking that case earlier, but I'm not sure if that's desirable?
Diffstat (limited to 'compiler/rustc_plugin_impl/src')
0 files changed, 0 insertions, 0 deletions