From cbe1cb337e9e2d67bef9143ae0716981d6e5f6ff Mon Sep 17 00:00:00 2001 From: Michael Hewson Date: Fri, 5 Jan 2018 21:01:33 -0500 Subject: [PATCH 1/2] Make tyvar_behind_raw_pointer an error in preparation for a crater run to determine its impact --- src/librustc/lint/builtin.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc/lint/builtin.rs b/src/librustc/lint/builtin.rs index 7410386c6f45b..bc8e5930e61d0 100644 --- a/src/librustc/lint/builtin.rs +++ b/src/librustc/lint/builtin.rs @@ -242,7 +242,7 @@ declare_lint! { declare_lint! { pub TYVAR_BEHIND_RAW_POINTER, - Warn, + Deny, "raw pointer to an inference variable" } From e4a93e44a5de02ee402ae30449c0297573d2ff96 Mon Sep 17 00:00:00 2001 From: Michael Hewson Date: Sat, 6 Jan 2018 00:14:14 -0500 Subject: [PATCH 2/2] Change `Deny` to `Forbid` --- src/librustc/lint/builtin.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc/lint/builtin.rs b/src/librustc/lint/builtin.rs index bc8e5930e61d0..4bba1d0c90a1c 100644 --- a/src/librustc/lint/builtin.rs +++ b/src/librustc/lint/builtin.rs @@ -242,7 +242,7 @@ declare_lint! { declare_lint! { pub TYVAR_BEHIND_RAW_POINTER, - Deny, + Forbid, "raw pointer to an inference variable" }