about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-02-22 14:58:11 +0100
committerGitHub <noreply@github.com>2019-02-22 14:58:11 +0100
commit59f1a563d5a5f6aa9f34df5ed4b7a3ad9d154ac4 (patch)
tree78a81b28058e86fb26d6eeb4f2f308ff442c2862 /src/rustllvm/RustWrapper.cpp
parentb28a32fba77f7c50497e15109773838fef07b0e7 (diff)
parent6a5abea7092cf7ede5bb6b3489db94eb701cd04e (diff)
downloadrust-59f1a563d5a5f6aa9f34df5ed4b7a3ad9d154ac4.tar.gz
rust-59f1a563d5a5f6aa9f34df5ed4b7a3ad9d154ac4.zip
Rollup merge of #58607 - gurgalex:fail_E0505_for_2018_edition, r=matthewjasper
Fixes #58586: Make E0505 erronous example fail for the 2018 edition

The original example worked for 2015, but not the 2018 edition of Rust.

Borrowing the moved value after ownership is transferred seems required for 2018.

[this](https://github.com/rust-lang/rust/compare/rust-lang:f66e469...gurgalex:b2a02c8#diff-4ca866aea4a6efecd732f1975faaad88R1564) line though is correct for 2018, but not for the 2015 edition.

Fix #58586
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions