From 15f2b119b1e5266ebcaf058f5b4e8a5cd6332452 Mon Sep 17 00:00:00 2001 From: Santiago Pastorino Date: Tue, 31 May 2022 17:40:50 -0300 Subject: [PATCH] Fix lower_generics rustdocs --- compiler/rustc_ast_lowering/src/item.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/compiler/rustc_ast_lowering/src/item.rs b/compiler/rustc_ast_lowering/src/item.rs index c5f9f4a9c0bf..f4301e9a8431 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( &mut self, generics: &Generics,