]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #50667 - alexcrichton:no-remove-extern-crate-unless-works, r=Manishearth
authorkennytm <kennytm@gmail.com>
Sun, 13 May 2018 08:15:47 +0000 (16:15 +0800)
committerkennytm <kennytm@gmail.com>
Sun, 13 May 2018 09:20:30 +0000 (17:20 +0800)
commitededa9dcd563c9191efeb4bc07c280281b595674
treef1f67de03d1ca6a3ffc9b4ed2b944b098ce9dd0c
parent34cec066d9c00f9f132d79707e116c7512d9d6ed
parent12f92e9640df926da70911b31d0fd2967be5fec3
Rollup merge of #50667 - alexcrichton:no-remove-extern-crate-unless-works, r=Manishearth

rustc: Only suggest deleting `extern crate` if it works

This commit updates one of the edition lints to only suggest deleting `extern
crate` if it actually works. Otherwise this can yield some confusing behavior
with rustfix specifically where if you accidentally deny the `rust_2018_idioms`
lint in the 2015 edition it's suggesting features that don't work!