From 157cbbca04fa60b48bb5fec3221ff00d727a0abf Mon Sep 17 00:00:00 2001 From: David Wood Date: Tue, 28 Jun 2022 14:50:35 +0100 Subject: [PATCH] lint: add todo for invalid value diagnostics Signed-off-by: David Wood --- compiler/rustc_lint/src/builtin.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/rustc_lint/src/builtin.rs b/compiler/rustc_lint/src/builtin.rs index 035cd358a91..2751c5d6e58 100644 --- a/compiler/rustc_lint/src/builtin.rs +++ b/compiler/rustc_lint/src/builtin.rs @@ -2595,6 +2595,7 @@ impl<'tcx> LateLintPass<'tcx> for InvalidValue { if let Some((msg, span)) = with_no_trimmed_paths!(ty_find_init_error(cx, conjured_ty, init)) { + // FIXME(davidtwco): make translatable cx.struct_span_lint(INVALID_VALUE, expr.span, |lint| { let mut err = lint.build(&format!( "the type `{}` does not permit {}",