diff options
| author | bors <bors@rust-lang.org> | 2020-05-25 17:19:00 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-05-25 17:19:00 +0000 |
| commit | c41916d9bd2ca98c9291d07a095503d9e934da60 (patch) | |
| tree | 8e277cb77410b0a1a754e2f1395ceb2e3125304d /src/test/rustdoc-js-std/string-from_ut.js | |
| parent | 7ca335a97dab0869ec6e407a15bea86a7c7c629e (diff) | |
| parent | a578bed69ac2a9b33fcb871f9ad7dbf02355cb82 (diff) | |
| download | rust-c41916d9bd2ca98c9291d07a095503d9e934da60.tar.gz rust-c41916d9bd2ca98c9291d07a095503d9e934da60.zip | |
Auto merge of #5616 - euclio:no-derive-suggestion, r=phansch,flip1995
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()`.
Diffstat (limited to 'src/test/rustdoc-js-std/string-from_ut.js')
0 files changed, 0 insertions, 0 deletions
