From 302305aad478bcb803940ac08bfeff034315c97b Mon Sep 17 00:00:00 2001 From: rustbot Date: Wed, 27 Jan 2021 12:25:54 +0000 Subject: [PATCH] ices/72113.rs: fixed with errors === stdout === === stderr === warning: constant is never used: `OTHER_UNIT` --> /home/runner/work/glacier/glacier/ices/72113.rs:3:1 | 3 | const OTHER_UNIT: &'static u8 = unsafe { &*(&&() as *const _ as *const u8) }; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(dead_code)]` on by default error[E0080]: it is undefined behavior to use this value --> /home/runner/work/glacier/glacier/ices/72113.rs:3:1 | 3 | const OTHER_UNIT: &'static u8 = unsafe { &*(&&() as *const _ as *const u8) }; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type validation failed: encountered read of part of a pointer at . | = note: The rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior. error: aborting due to previous error; 1 warning emitted For more information about this error, try `rustc --explain E0080`. ============== --- {ices => fixed}/72113.rs | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename {ices => fixed}/72113.rs (100%) diff --git a/ices/72113.rs b/fixed/72113.rs similarity index 100% rename from ices/72113.rs rename to fixed/72113.rs