]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_hir/src/hir.rs
Rollup merge of #81682 - JulianKnodt:bit_set_iter_benchmarks, r=oli-obk
[rust.git] / compiler / rustc_hir / src / hir.rs
index 1c16dc026670bbc4b45347fd7c065fe7386f898e..67a15418ea4957af0a5e5f604cb65cc6c73999a6 100644 (file)
@@ -358,7 +358,7 @@ pub fn span(&self) -> Option<Span> {
             .iter()
             .filter(|arg| !arg.is_synthetic())
             .map(|arg| arg.span())
-            .fold_first(|span1, span2| span1.to(span2))
+            .reduce(|span1, span2| span1.to(span2))
     }
 
     /// Returns span encompassing arguments and their surrounding `<>` or `()`
@@ -2015,6 +2015,7 @@ pub struct TypeBinding<'hir> {
     pub hir_id: HirId,
     #[stable_hasher(project(name))]
     pub ident: Ident,
+    pub gen_args: &'hir GenericArgs<'hir>,
     pub kind: TypeBindingKind<'hir>,
     pub span: Span,
 }