about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2017-12-03 17:43:48 -0500
committerGitHub <noreply@github.com>2017-12-03 17:43:48 -0500
commit94dbbacd45702d32c67c0d3be8d4874eadf300c8 (patch)
treee038092ff6aa90fae8b840d0b4976a3afe3e62ce /src/libstd/sys/unix/stack_overflow.rs
parent7c4f74d16e80a584a648425b9dec1b413d0584cf (diff)
parent17d6631c02a297b187d75817b4cfe4d2b3c6c9de (diff)
downloadrust-94dbbacd45702d32c67c0d3be8d4874eadf300c8.tar.gz
rust-94dbbacd45702d32c67c0d3be8d4874eadf300c8.zip
Rollup merge of #46462 - sinkuu:copyprop_reg2, r=arielb1
Fix CopyPropagation regression (2)

Remaining part of MIR copyprop regression by (I think) #45380, which I missed in #45753.

```rust
fn foo(mut x: i32) -> i32 {
    let y = x;
    x = 123; // `x` is assigned only once in MIR, but cannot be propagated to `y`
    y
}
```

So any assignment to an argument cannot be propagated.
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions