about summary refs log tree commit diff
path: root/tests/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-07-07 15:29:43 +0000
committerbors <bors@rust-lang.org>2022-07-07 15:29:43 +0000
commit7142a59674fc6faa5e76abdd47e2b516e9fd153b (patch)
treef8c3b15386e215d627e085afe5e96272f9ea3a36 /tests/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs
parentafb34eb261aa8e54b9045a582d2553bb7d6fd463 (diff)
parentead2c4f1222c7c9023f02bf6dceaa49eb987c716 (diff)
downloadrust-7142a59674fc6faa5e76abdd47e2b516e9fd153b.tar.gz
rust-7142a59674fc6faa5e76abdd47e2b516e9fd153b.zip
Auto merge of #9132 - hellow554:maybe_trait_bound_on_type_repetition, r=Manishearth
Maybe trait bound on type repetition

*Please write a short comment explaining your change (or "none" for internal only changes)*

changelog: fix maybe trait on [`type_repetition_in_bounds`] lint

I simplified the two for loops, which did exactly the same. Only downside is, that I need a `copied`, but that's to convert from `&&` to `&`, to that should be a noop?

One more thing: I only handle [`TraitBoundModifier::Maybe`](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_hir/enum.TraitBoundModifier.html#variant.Maybe). Can anyone give me an example (and testcase) for [`TraitBoundModifier::MaybeConst`](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_hir/enum.TraitBoundModifier.html#variant.MaybeConst)?

closes #8770
Diffstat (limited to 'tests/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs')
0 files changed, 0 insertions, 0 deletions