about summary refs log tree commit diff
path: root/tests/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-10-03 01:26:29 +0000
committerbors <bors@rust-lang.org>2023-10-03 01:26:29 +0000
commit81400e2db821317741ca811e5eb71bce6bcd49f7 (patch)
tree8406fbfe9171b8febd0b7e30a3352d407236d96d /tests/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
parent08c429f241b985c277e63a6e95c0a60d49f946f1 (diff)
parentd5cc97e32c9b1919a175aa798e99bd7dde814073 (diff)
downloadrust-81400e2db821317741ca811e5eb71bce6bcd49f7.tar.gz
rust-81400e2db821317741ca811e5eb71bce6bcd49f7.zip
Auto merge of #11589 - koka831:fix/10198, r=giraffate
std_instead_of_core: avoid lint inside of proc-macro

- fixes https://github.com/rust-lang/rust-clippy/issues/10198

note: The lint for the reported `thiserror::Error` has been suppressed by [Don't lint unstable moves in std_instead_of_core](https://github.com/rust-lang/rust-clippy/pull/9545/files#diff-2cb8a24429cf9d9898de901450d640115503a10454d692dddc6a073a299fbb7eR29) because `thiserror::Error`  internally implements `std::error::Error for (derived struct)`.

changelog: [`std_intead_of_core`]: avoid linting inside proc-macro

I confirmed this change fixes the problem:
<details>
<summary>test result without the change</summary>

```console
error: used import from `std` instead of `core`
  --> tests/ui/std_instead_of_core.rs:65:14
   |
LL |     #[derive(ImplStructWithStdDisplay)]
   |              ^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: this error originates in the derive macro `ImplStructWithStdDisplay` (in Nightly builds, run with -Z macro-backtrace for more info)
```
</details>
Diffstat (limited to 'tests/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions