Skip to content

Commit 4370a58

Browse files
committed
fix tyvar_behind_raw_pointer error code
1 parent 2cf683e commit 4370a58

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/librustc_typeck/check/method/probe.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
337337
lint::builtin::TYVAR_BEHIND_RAW_POINTER,
338338
scope_expr_id,
339339
span,
340-
&format!("the type of this value must be known in this context"));
340+
&format!("type annotations needed"));
341341
}
342342
} else {
343343
let t = self.structurally_resolved_type(span, final_ty);

src/test/ui/inference-variable-behind-raw-pointer.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
warning: the type of this value must be known in this context
1+
warning: type annotations needed
22
--> $DIR/inference-variable-behind-raw-pointer.rs:18:13
33
|
44
18 | if data.is_null() {}

0 commit comments

Comments
 (0)