about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-01-30 16:47:08 +0000
committerbors <bors@rust-lang.org>2016-01-30 16:47:08 +0000
commit449e8bf3048d144fd5b82dd1a1a1060ff86b2877 (patch)
tree7b1eb302df38159c74df3ea4a791035a32edc131 /src/libstd/sys/unix/stack_overflow.rs
parent9bda7ea81d38945b353816611fa9d23b62427f0c (diff)
parent9b81d03114b54d9dbc594d558c907f3c5efd53be (diff)
downloadrust-449e8bf3048d144fd5b82dd1a1a1060ff86b2877.tar.gz
rust-449e8bf3048d144fd5b82dd1a1a1060ff86b2877.zip
Auto merge of #31286 - oli-obk:fix/mir_box, r=nagisa
the previous code generated a temporary of the inner type and assigned the box-memory to it. So if you did `let x: Box<usize> = box 5;` you got a

```rust
let var0: Box<usize>; // x
let mut tmp0: Box<usize>;
let mut tmp1: usize;
...
tmp1 = Box(usize);
(*tmp1) = const 5;
tmp0 = tmp1;
var0 = tmp0;
```

r? @nagisa
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions