mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
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
@ -2595,6 +2595,7 @@ impl<'tcx> LateLintPass<'tcx> for InvalidValue {
|
|||||||
if let Some((msg, span)) =
|
if let Some((msg, span)) =
|
||||||
with_no_trimmed_paths!(ty_find_init_error(cx, conjured_ty, init))
|
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| {
|
cx.struct_span_lint(INVALID_VALUE, expr.span, |lint| {
|
||||||
let mut err = lint.build(&format!(
|
let mut err = lint.build(&format!(
|
||||||
"the type `{}` does not permit {}",
|
"the type `{}` does not permit {}",
|
||||||
|
Loading…
Reference in New Issue
Block a user