diff options
| author | bors <bors@rust-lang.org> | 2022-12-19 09:23:31 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-12-19 09:23:31 +0000 |
| commit | 4653c93e4442d88bf3278067183c8fdc0be74a1f (patch) | |
| tree | 882fb217c4882e6a83e1cf8f385b72fef7328559 /compiler/rustc_parse/src/parser/path.rs | |
| parent | 10723378900ba2d25fc5d8baf785e1082f385832 (diff) | |
| parent | 2a57493fa1e3e59a298bec365a6afb3df7ea5e84 (diff) | |
| download | rust-4653c93e4442d88bf3278067183c8fdc0be74a1f.tar.gz rust-4653c93e4442d88bf3278067183c8fdc0be74a1f.zip | |
Auto merge of #105892 - Dylan-DPC:rollup-eozolx4, r=Dylan-DPC
Rollup of 5 pull requests Successful merges: - #105682 (Use `expose_addr()` in `fmt::Pointer`) - #105839 (Suggest a `T: Send` bound for `&mut T` upvars in `Send` generators) - #105864 (clippy::complexity fixes) - #105882 (Don't ICE in closure arg borrow suggestion) - #105889 (Fix `uninlined_format_args` in libtest) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_parse/src/parser/path.rs')
| -rw-r--r-- | compiler/rustc_parse/src/parser/path.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_parse/src/parser/path.rs b/compiler/rustc_parse/src/parser/path.rs index 2d432e3f5bd..5333d3b8587 100644 --- a/compiler/rustc_parse/src/parser/path.rs +++ b/compiler/rustc_parse/src/parser/path.rs @@ -277,8 +277,7 @@ impl<'a> Parser<'a> { if let Some(arg) = args .iter() .rev() - .skip_while(|arg| matches!(arg, AngleBracketedArg::Constraint(_))) - .next() + .find(|arg| !matches!(arg, AngleBracketedArg::Constraint(_))) { err.span_suggestion_verbose( arg.span().shrink_to_hi(), |
