This website requires JavaScript.
Explore
Help
Register
Sign In
mikros
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
a20078f044
rust
/
tests
/
ui
/
auxiliary
/
removing-extern-crate.rs
2 lines
23 B
Rust
Raw
Normal View
History
Unescape
Escape
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.
2018-05-11 14:34:56 -05:00
// intentionally blank
Reference in New Issue
Copy Permalink