From 75563cd7253bb72876c5c97ff2f7813dd1485bc5 Mon Sep 17 00:00:00 2001 From: Christopher Acosta Date: Fri, 27 Jan 2023 22:23:01 +0100 Subject: Error code E0794 for late-bound lifetime parameter error. --- compiler/rustc_hir_analysis/src/astconv/generics.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/rustc_hir_analysis/src') diff --git a/compiler/rustc_hir_analysis/src/astconv/generics.rs b/compiler/rustc_hir_analysis/src/astconv/generics.rs index 7f6518ffd71..11c5028744a 100644 --- a/compiler/rustc_hir_analysis/src/astconv/generics.rs +++ b/compiler/rustc_hir_analysis/src/astconv/generics.rs @@ -618,7 +618,7 @@ pub(crate) fn prohibit_explicit_late_bound_lifetimes( if position == GenericArgPosition::Value && args.num_lifetime_params() != param_counts.lifetimes { - let mut err = tcx.sess.struct_span_err(span, msg); + let mut err = struct_span_err!(tcx.sess, span, E0794, "{}", msg); err.span_note(span_late, note); err.emit(); } else { -- cgit 1.4.1-3-g733a5