Skip to content

Commit 1b8fc2f

Browse files
authored
Rollup merge of rust-lang#98113 - EdwinRy:constraint-misspelling, r=compiler-errors
Fix misspelling of "constraint" as "contraint" I misspelled a function name a while back
2 parents b2d0e78 + c8b411e commit 1b8fc2f

File tree

1 file changed

+2
-2
lines changed
  • compiler/rustc_ast_lowering/src

1 file changed

+2
-2
lines changed

compiler/rustc_ast_lowering/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -871,7 +871,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
871871
self.lower_angle_bracketed_parameter_data(data, ParamMode::Explicit, itctx).0
872872
}
873873
GenericArgs::Parenthesized(ref data) => {
874-
self.assoc_ty_contraint_param_error_emit(data);
874+
self.emit_bad_parenthesized_trait_in_assoc_ty(data);
875875
self.lower_angle_bracketed_parameter_data(
876876
&data.as_angle_bracketed_args(),
877877
ParamMode::Explicit,
@@ -982,7 +982,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
982982
}
983983
}
984984

985-
fn assoc_ty_contraint_param_error_emit(&self, data: &ParenthesizedArgs) -> () {
985+
fn emit_bad_parenthesized_trait_in_assoc_ty(&self, data: &ParenthesizedArgs) {
986986
let mut err = self.sess.struct_span_err(
987987
data.span,
988988
"parenthesized generic arguments cannot be used in associated type constraints",

0 commit comments

Comments
 (0)