about summary refs log tree commit diff
path: root/compiler/rustc_hir_analysis
diff options
context:
space:
mode:
authorChristopher Acosta <chriz@live.dk>2023-01-27 22:23:01 +0100
committerChristopher Acossta <chriz@live.dk>2023-03-07 21:26:19 +0100
commit75563cd7253bb72876c5c97ff2f7813dd1485bc5 (patch)
tree30d6e5c3be45134c9afa6271dcd37d53b79f925f /compiler/rustc_hir_analysis
parent1a521db67e2935e5a46c7b95b511ab9a43be5770 (diff)
downloadrust-75563cd7253bb72876c5c97ff2f7813dd1485bc5.tar.gz
rust-75563cd7253bb72876c5c97ff2f7813dd1485bc5.zip
Error code E0794 for late-bound lifetime parameter error.
Diffstat (limited to 'compiler/rustc_hir_analysis')
-rw-r--r--compiler/rustc_hir_analysis/src/astconv/generics.rs2
1 files changed, 1 insertions, 1 deletions
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 {