Skip to content

Don't warn about instantiating a copy type parameter with a non-implicitly-copyable type when the receiver is the only one with the type parameter #2542

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
pcwalton opened this issue Jun 8, 2012 · 0 comments
Labels
A-diagnostics Area: Messages for errors, warnings, and lints A-lints Area: Lints (warnings about flaws in source code) such as unused_mut. A-type-system Area: Type system C-enhancement Category: An issue proposing an enhancement or a PR with one.

Comments

@pcwalton
Copy link
Contributor

pcwalton commented Jun 8, 2012

hashmap.contains_key("foo") shouldn't warn, because the type parameters are only in the receiver.

flip1995 pushed a commit to flip1995/rust that referenced this issue Jul 17, 2020
flip1995 pushed a commit to flip1995/rust that referenced this issue Jul 17, 2020
Add test for `needless_range_loop` issue

Closes rust-lang#2277

This was fixed when we fixed rust-lang#2542.

changelog: none
bors added a commit to rust-lang-ci/rust that referenced this issue Sep 22, 2022
celinval pushed a commit to celinval/rust-dev that referenced this issue Jun 4, 2024
This allows users to write their own custom visualization script to run
after running the benchmarks. Prior to this commit, visualizations had
to be checked into the Kani repository.

When run_command is specified as a visualization, benchcomp runs the
specified command and passes the result of the run as a JSON file on
stdin. The command can then process the result however it likes.

This resolves rust-lang#2518.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-diagnostics Area: Messages for errors, warnings, and lints A-lints Area: Lints (warnings about flaws in source code) such as unused_mut. A-type-system Area: Type system C-enhancement Category: An issue proposing an enhancement or a PR with one.
Projects
None yet
Development

No branches or pull requests

1 participant