From c8b411ebf1a364f369734484ccf049d8654c1bc1 Mon Sep 17 00:00:00 2001 From: EdwinRy Date: Wed, 15 Jun 2022 01:06:40 +0100 Subject: [PATCH] rename function and remove return type --- compiler/rustc_ast_lowering/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/rustc_ast_lowering/src/lib.rs b/compiler/rustc_ast_lowering/src/lib.rs index 6fe95a21fa42a..cb7804ca3752d 100644 --- a/compiler/rustc_ast_lowering/src/lib.rs +++ b/compiler/rustc_ast_lowering/src/lib.rs @@ -871,7 +871,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> { self.lower_angle_bracketed_parameter_data(data, ParamMode::Explicit, itctx).0 } GenericArgs::Parenthesized(ref data) => { - self.assoc_ty_contraint_param_error_emit(data); + self.emit_bad_parenthesized_trait_in_assoc_ty(data); self.lower_angle_bracketed_parameter_data( &data.as_angle_bracketed_args(), ParamMode::Explicit, @@ -982,7 +982,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> { } } - fn assoc_ty_contraint_param_error_emit(&self, data: &ParenthesizedArgs) -> () { + fn emit_bad_parenthesized_trait_in_assoc_ty(&self, data: &ParenthesizedArgs) { let mut err = self.sess.struct_span_err( data.span, "parenthesized generic arguments cannot be used in associated type constraints",