From 0d073c9174aa02c04a321c65f384958b67d43f46 Mon Sep 17 00:00:00 2001 From: Felix S Klock II Date: Fri, 21 May 2021 15:10:56 -0400 Subject: [PATCH] Apply suggestions from code review (removing confusing comment from my test, since the comment reflects the bad undesirable behavior that is being fixed here.) --- .../issue-85435-unsafe-op-in-let-under-unsafe-under-closure.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/test/ui/unsafe/issue-85435-unsafe-op-in-let-under-unsafe-under-closure.rs b/src/test/ui/unsafe/issue-85435-unsafe-op-in-let-under-unsafe-under-closure.rs index 9315edf882bf..b0d738855d73 100644 --- a/src/test/ui/unsafe/issue-85435-unsafe-op-in-let-under-unsafe-under-closure.rs +++ b/src/test/ui/unsafe/issue-85435-unsafe-op-in-let-under-unsafe-under-closure.rs @@ -15,9 +15,6 @@ fn main() { let u8_ptr: *const u8 = &val; let _closure = || { unsafe { - // Fails compilation with: - // error[E0133]: dereference of raw pointer is unsafe and - // requires unsafe function or block let tmp = *u8_ptr; tmp