about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSantiago Pastorino <spastorino@gmail.com>2022-05-31 17:40:50 -0300
committerSantiago Pastorino <spastorino@gmail.com>2022-05-31 17:40:50 -0300
commit15f2b119b1e5266ebcaf058f5b4e8a5cd6332452 (patch)
tree1eeaa3ecc8d735309b790aa3b71dc82b4c284479
parent2ade55d908758a2c66a437d5667c1714bfa890c2 (diff)
downloadrust-15f2b119b1e5266ebcaf058f5b4e8a5cd6332452.tar.gz
rust-15f2b119b1e5266ebcaf058f5b4e8a5cd6332452.zip
Fix lower_generics rustdocs
-rw-r--r--compiler/rustc_ast_lowering/src/item.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/compiler/rustc_ast_lowering/src/item.rs b/compiler/rustc_ast_lowering/src/item.rs
index c5f9f4a9c0b..f4301e9a843 100644
--- a/compiler/rustc_ast_lowering/src/item.rs
+++ b/compiler/rustc_ast_lowering/src/item.rs
@@ -1296,9 +1296,8 @@ impl<'hir> LoweringContext<'_, 'hir> {
         }
     }
 
-    /// Creates a new `hir::GenericParam` for every new `Fresh` lifetime and
-    /// universal `impl Trait` type parameter encountered while evaluating `f`.
-    /// Definitions are created with the provided `parent_def_id`.
+    /// Return the pair of the lowered `generics` as `hir::Generics` and the evaluation of `f` with
+    /// the carried impl trait definitions and bounds.
     fn lower_generics<T>(
         &mut self,
         generics: &Generics,