about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser/generics.rs
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-06-28 19:37:21 -0400
committerMichael Goulet <michael@errs.io>2024-06-28 19:40:31 -0400
commit3bc32472008387ab2adca98dcfd0bef6207357c1 (patch)
tree004ba8b336c13bad906929c79e55e4cb2f658832 /compiler/rustc_parse/src/parser/generics.rs
parent036b38ced36b0ed16579f95b4647ba7424f6b1bc (diff)
downloadrust-3bc32472008387ab2adca98dcfd0bef6207357c1.tar.gz
rust-3bc32472008387ab2adca98dcfd0bef6207357c1.zip
Move binder and polarity parsing into parse_generic_ty_bound
Diffstat (limited to 'compiler/rustc_parse/src/parser/generics.rs')
-rw-r--r--compiler/rustc_parse/src/parser/generics.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/generics.rs b/compiler/rustc_parse/src/parser/generics.rs
index fde16ac957d..10c7715c7dc 100644
--- a/compiler/rustc_parse/src/parser/generics.rs
+++ b/compiler/rustc_parse/src/parser/generics.rs
@@ -457,7 +457,7 @@ impl<'a> Parser<'a> {
         // * `for<'a> Trait1<'a>: Trait2<'a /* ok */>`
         // * `(for<'a> Trait1<'a>): Trait2<'a /* not ok */>`
         // * `for<'a> for<'b> Trait1<'a, 'b>: Trait2<'a /* ok */, 'b /* not ok */>`
-        let lifetime_defs = self.parse_late_bound_lifetime_defs()?;
+        let (lifetime_defs, _) = self.parse_late_bound_lifetime_defs()?;
 
         // Parse type with mandatory colon and (possibly empty) bounds,
         // or with mandatory equality sign and the second type.