You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/tmp/test2.rs:5:4: 5:21 error: type `std::hashmap::HashSet<int>` does not implement any method in scope named `contains`
/tmp/test2.rs:5 set.contains(&3);
^~~~~~~~~~~~~~~~~
With the help of the wonderful folks on #rust, I was able to determine that the reason is isn't working is that the Set trait is being masked by my alias for std::hashmap::HashSet. I think that the compiler should emit a warning or error to explain what's going on.
The text was updated successfully, but these errors were encountered:
Add import_rename lint, this adds a field on the Conf struct
fixesrust-lang#7276
changelog: Add ``[`import_rename`]`` a lint that enforces import renaming defined in the config file.
The following code compiled with Rust dc4560d:
fails to compile with the following message:
With the help of the wonderful folks on
#rust
, I was able to determine that the reason is isn't working is that theSet
trait is being masked by my alias forstd::hashmap::HashSet
. I think that the compiler should emit a warning or error to explain what's going on.The text was updated successfully, but these errors were encountered: