diff options
| author | csmoe <35686186+csmoe@users.noreply.github.com> | 2018-02-18 11:07:52 +0800 |
|---|---|---|
| committer | csmoe <35686186+csmoe@users.noreply.github.com> | 2018-02-18 11:07:52 +0800 |
| commit | 4370a5877c6c606dec106d200ccb36d5d78082a5 (patch) | |
| tree | 042e367dd0a10015cceac2d379e08ee2c9369f84 | |
| parent | 2cf683edc0c0481906749517cbefe631f7ed79d9 (diff) | |
| download | rust-4370a5877c6c606dec106d200ccb36d5d78082a5.tar.gz rust-4370a5877c6c606dec106d200ccb36d5d78082a5.zip | |
fix tyvar_behind_raw_pointer error code
| -rw-r--r-- | src/librustc_typeck/check/method/probe.rs | 2 | ||||
| -rw-r--r-- | src/test/ui/inference-variable-behind-raw-pointer.stderr | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_typeck/check/method/probe.rs b/src/librustc_typeck/check/method/probe.rs index e8c3966f23f..9f3e44f56da 100644 --- a/src/librustc_typeck/check/method/probe.rs +++ b/src/librustc_typeck/check/method/probe.rs @@ -337,7 +337,7 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> { lint::builtin::TYVAR_BEHIND_RAW_POINTER, scope_expr_id, span, - &format!("the type of this value must be known in this context")); + &format!("type annotations needed")); } } else { let t = self.structurally_resolved_type(span, final_ty); diff --git a/src/test/ui/inference-variable-behind-raw-pointer.stderr b/src/test/ui/inference-variable-behind-raw-pointer.stderr index d0ee55c092b..bb1d921f1c6 100644 --- a/src/test/ui/inference-variable-behind-raw-pointer.stderr +++ b/src/test/ui/inference-variable-behind-raw-pointer.stderr @@ -1,4 +1,4 @@ -warning: the type of this value must be known in this context +warning: type annotations needed --> $DIR/inference-variable-behind-raw-pointer.rs:18:13 | 18 | if data.is_null() {} |
