lint: add todo for invalid value diagnostics
Signed-off-by: David Wood <david.wood@huawei.com>
This commit is contained in:
parent
bd8fe82138
commit
157cbbca04
1 changed files with 1 additions and 0 deletions
|
@ -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 {}",
|
||||
|
|
Loading…
Add table
Reference in a new issue