]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #50665 - alexcrichton:fix-single-item-path-warnings, r=oli-obk
authorbors <bors@rust-lang.org>
Thu, 17 May 2018 05:00:14 +0000 (05:00 +0000)
committerbors <bors@rust-lang.org>
Thu, 17 May 2018 05:00:14 +0000 (05:00 +0000)
rustc: Fix `crate` lint for single-item paths

This commit fixes recommending the `crate` prefix when migrating to 2018 for
paths that look like `use foo;` or `use {bar, baz}`

Closes #50660

1  2 
src/librustc_lint/lib.rs
src/librustc_resolve/lib.rs

Simple merge
Simple merge