]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #54603 - davidtwco:issue-54559, r=nikomatsakis
authorPietro Albini <pietro@pietroalbini.org>
Tue, 2 Oct 2018 20:54:29 +0000 (22:54 +0200)
committerGitHub <noreply@github.com>
Tue, 2 Oct 2018 20:54:29 +0000 (22:54 +0200)
Add `crate::` to trait suggestions in Rust 2018.

Fixes #54559.

In the 2018 edition, when suggesting traits to import that implement a
given method that is being invoked, suggestions will now include the
`crate::` prefix if the suggested trait is local to the current crate.

r? @nikomatsakis


Trivial merge