diff options
| author | kennytm <kennytm@gmail.com> | 2018-05-13 16:15:49 +0800 |
|---|---|---|
| committer | kennytm <kennytm@gmail.com> | 2018-05-13 17:20:31 +0800 |
| commit | b0d31704855a286c476d4208fd6cacde9153e252 (patch) | |
| tree | 80f65c220a4c9a7673d24e0c0a630766ba626e37 /src/rustllvm/RustWrapper.cpp | |
| parent | ededa9dcd563c9191efeb4bc07c280281b595674 (diff) | |
| parent | 6de899f42db1901a637dd8c7d7b3c976d58200a2 (diff) | |
| download | rust-b0d31704855a286c476d4208fd6cacde9153e252.tar.gz rust-b0d31704855a286c476d4208fd6cacde9153e252.zip | |
Rollup merge of #50670 - alexcrichton:remove-extern-crate-correct-span, r=Manishearth
rustc: Include semicolon when removing `extern crate`
Currently the lint for removing `extern crate` suggests removing `extern crate`
most of the time, but the rest of the time it suggest replacing it with `use
crate_name`. Unfortunately though when spliced into the original code you're
replacing
extern crate foo;
with
use foo
which is syntactically invalid! This commit ensure that the trailing semicolon
is included in rustc's suggestion to ensure that the code continues to compile
afterwards.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
