mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-16 02:24:35 +00:00
c41916d9bd
new_without_default: do not suggest deriving --- changelog: do not suggest deriving `Default` in `new_without_default` This commit changes the behavior of the `new_without_default` lint to not suggest deriving `Default`. This suggestion is misleading if the `new` implementation does something different than what a derived `Default` implementation would do, because then the two methods would not be equivalent. Instead, the `can_derive_default` check is removed, and we always suggest implementing `Default` in terms of `new()`. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
README.md |