-
Notifications
You must be signed in to change notification settings - Fork 384
Closed
Labels
Description
Environment
- Intellij-Rust plugin version: v0.2.98.2618-191-nightly
- Rust toolchain version: stable
- IDE name and version: CLion 2019.1.2
- Operating system: Linux
Problem description
The IDE suggests traits that are not actually available in the current context. It seems that it happens when these traits are available in dependencies.
Steps to reproduce
fn main() {
std::iter::once(()).colle
}When there are no dependencies, it correctly suggests collect and nothing else. But if I add mdbook = "0.2.3" to Cargo.toml, it starts suggesting collect_vec and collect_tuple from itertools because mdbook depends on itertools. If I accept the suggestion, the code will not compile because I can't import itertools (it's not a direct dependency of the current crate).