about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-02-17 09:13:30 +0000
committerbors <bors@rust-lang.org>2022-02-17 09:13:30 +0000
commita4cf91b9c8b393a83dc9690d2721346a1fe0569d (patch)
tree9ff0ab29b67b6c0971b63f0752b3c06cea4b3ae4 /compiler/rustc_codegen_llvm/src
parentb34cd79c0cf2f5425aa56a77cbe95459bef1d98f (diff)
parent504f3af70ea4cb2ce13f9272babb4e59b61fd88e (diff)
downloadrust-a4cf91b9c8b393a83dc9690d2721346a1fe0569d.tar.gz
rust-a4cf91b9c8b393a83dc9690d2721346a1fe0569d.zip
Auto merge of #8433 - hellow554:update_default_trait, r=flip1995
Don't lint Default::default if it is the udpate syntax base

changelog: Don't lint `Default::default` it is part of the update syntax

Current clippy warns about this:

```
warning: calling `Foo::default()` is more clear than this expression
  --> src/main.rs:12:11
   |
12 |         ..Default::default()
   |           ^^^^^^^^^^^^^^^^^^ help: try: `Foo::default()`
   |
```

With these changes, it will not lint that particular expression anymore.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions