diff options
| author | David Wood <david.wood@huawei.com> | 2022-06-28 14:50:35 +0100 |
|---|---|---|
| committer | David Wood <david.wood@huawei.com> | 2022-06-30 08:59:22 +0100 |
| commit | 157cbbca04fa60b48bb5fec3221ff00d727a0abf (patch) | |
| tree | a9604e354adb6cf1ae28c4eb5756cb7e76d8fab7 | |
| parent | bd8fe82138ba24f1c9f27bb64bf4269aabf9d54a (diff) | |
| download | rust-157cbbca04fa60b48bb5fec3221ff00d727a0abf.tar.gz rust-157cbbca04fa60b48bb5fec3221ff00d727a0abf.zip | |
lint: add todo for invalid value diagnostics
Signed-off-by: David Wood <david.wood@huawei.com>
| -rw-r--r-- | compiler/rustc_lint/src/builtin.rs | 1 |
1 files changed, 1 insertions, 0 deletions
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 {}", |
