Skip to content

Conversation

ghost
Copy link

@ghost ghost commented Mar 9, 2013

This makes #[deriving_clone] useful.

I wasn't sure if a macro was the right way to do this, but it seems more maintainable than a series of repetitive impls.

bors added a commit that referenced this pull request Mar 9, 2013
This makes `#[deriving_clone]` useful.

I wasn't sure if a macro was the right way to do this, but it seems more maintainable than a series of repetitive `impl`s.
@bors bors closed this Mar 9, 2013
bors added a commit to rust-lang-ci/rust that referenced this pull request May 2, 2020
Lint unnamed address comparisons

Functions and vtables have an insignificant address. Attempts to compare such addresses will lead to very surprising behaviour. For example: addresses of different functions could compare equal; two trait object pointers representing the same object and the same type could be unequal.

Lint against unnamed address comparisons to avoid issues like those in rust-lang#69757 and rust-lang#54685.

changelog: New lints: [`fn_address_comparisons`] [rust-lang#5294](rust-lang/rust-clippy#5294), [`vtable_address_comparisons`] [rust-lang#5294](rust-lang/rust-clippy#5294)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants