about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorEthiraric <ethiraric@gmail.com>2024-02-28 19:03:12 +0100
committerEthiraric <ethiraric@gmail.com>2024-02-28 19:17:37 +0100
commit0d5934590782b96de8be1c975834847639fac453 (patch)
tree7cc0b3b71f516fab8a84e64277865b2442aeb553 /compiler/rustc_codegen_llvm/src/errors.rs
parentaf91e6ea8c1e1bd2a6ccc52e34741805209f1a21 (diff)
downloadrust-0d5934590782b96de8be1c975834847639fac453.tar.gz
rust-0d5934590782b96de8be1c975834847639fac453.zip
[`redundant_closure_call`]: Don't lint if closure origins from a macro
The following code used to trigger the lint:
```rs
 macro_rules! make_closure {
     () => {
         (|| {})
     };
 }
 make_closure!()();
```
The lint would suggest to replace `make_closure!()()` with
`make_closure!()`, which changes the code and removes the call to the
closure from the macro. This commit fixes that.

Fixes #12358
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions