Address code review feedback

This commit is contained in:
Eric Holk
2023-12-04 13:43:38 -08:00
parent 26f9954971
commit 50ef8006eb
10 changed files with 53 additions and 36 deletions

View File

@@ -401,14 +401,14 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
)
}
/// An associated type binding `$symbol = $ty`.
/// An associated type binding `$assoc_ty_name = $ty`.
pub(crate) fn assoc_ty_binding(
&mut self,
symbol: rustc_span::Symbol,
assoc_ty_name: rustc_span::Symbol,
span: Span,
ty: &'hir hir::Ty<'hir>,
) -> hir::TypeBinding<'hir> {
let ident = Ident::with_dummy_span(symbol);
let ident = Ident::with_dummy_span(assoc_ty_name);
let kind = hir::TypeBindingKind::Equality { term: ty.into() };
let args = arena_vec![self;];
let bindings = arena_vec![self;];