about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorEduard-Mihai Burtescu <edy.burt@gmail.com>2016-11-12 10:38:44 +0200
committerGitHub <noreply@github.com>2016-11-12 10:38:44 +0200
commit69717bbdedbc9cecb3b8e133d1e1a4813e34b4e1 (patch)
tree95e8548cc054d803aee12bdd39bfda57e1d28b21 /src/test/incremental/thinlto
parentafbb675f2ec243358933f9fa16175fd8db83a3ae (diff)
parent323c20c8a4747aa96285c90005a00aa43228af8e (diff)
downloadrust-69717bbdedbc9cecb3b8e133d1e1a4813e34b4e1.tar.gz
rust-69717bbdedbc9cecb3b8e133d1e1a4813e34b4e1.zip
Rollup merge of #37708 - oli-obk:box_free, r=eddyb
change the `box_free` lang item to accept pointers to unsized types

in miri we use the `box_free` lang item as the destructor for `Box` objects, since the function's api matches that of an `fn drop(&mut self)` in a hypothetical `impl<T: ?Sized> Drop for Box<T>` exactly.

This works fine except if we insert a check in the `size_of` intrinsic to ensure that it is only called with sized types, since the `box_free` lang item calls that intrinsic.

cc @eddyb

no clue who to r? here, probably lang team?
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions