diff options
| author | Dylan DPC <99973273+Dylan-DPC@users.noreply.github.com> | 2022-10-21 17:29:57 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-21 17:29:57 +0530 |
| commit | 66d91d8276160d10f6c4032c85703a9715f5de60 (patch) | |
| tree | 222a132107abc879903defe0d62f3b8a6480b126 /tests/coverage/overflow.rs | |
| parent | b1ab3b738ac718da74cd4aa0bb7f362d0adbdf84 (diff) | |
| parent | 8509819aef02c28c3f636dc04ad7b6087f7dc334 (diff) | |
| download | rust-66d91d8276160d10f6c4032c85703a9715f5de60.tar.gz rust-66d91d8276160d10f6c4032c85703a9715f5de60.zip | |
Rollup merge of #102287 - compiler-errors:unused-must-use-also-supertrait, r=fee1-dead
Elaborate supertrait bounds when triggering `unused_must_use` on `impl Trait` Given `impl Trait`, if one of its supertraits has a `#[must_use]`, then trigger the lint. This means that, for example, `-> impl ExactSizeIterator` also triggers the `must_use` on `trait Iterator`, which fixes #102183. This might need `@rust-lang/lang` sign-off, since it changes the behavior of the lint, so cc'ing them.
Diffstat (limited to 'tests/coverage/overflow.rs')
0 files changed, 0 insertions, 0 deletions
