From d72d5702be53982efaa95a08f227819f607c0ad7 Mon Sep 17 00:00:00 2001 From: rustbot Date: Wed, 27 Jan 2021 12:25:59 +0000 Subject: [PATCH] ices/79690.rs: fixed with errors === stdout === === stderr === warning: trait objects without an explicit `dyn` are deprecated --> /home/runner/work/glacier/glacier/ices/79690.rs:22:13 | 22 | const FOO: &Bar = &Foo { | ^^^ help: use `dyn`: `dyn Bar` | = note: `#[warn(bare_trait_objects)]` on by default warning: union is never used: `Transmute` --> /home/runner/work/glacier/glacier/ices/79690.rs:1:7 | 1 | union Transmute { | ^^^^^^^^^ | = note: `#[warn(dead_code)]` on by default warning: field is never read: `bar` --> /home/runner/work/glacier/glacier/ices/79690.rs:10:5 | 10 | bar: bool, | ^^^^^^^^^ warning: field is never read: `size` --> /home/runner/work/glacier/glacier/ices/79690.rs:20:5 | 20 | size: Foo, | ^^^^^^^^^ warning: constant is never used: `FOO` --> /home/runner/work/glacier/glacier/ices/79690.rs:22:1 | 22 | / const FOO: &Bar = &Foo { 23 | | foo: 128, 24 | | bar: false, 25 | | }; | |__^ warning: constant is never used: `G` --> /home/runner/work/glacier/glacier/ices/79690.rs:26:1 | 26 | const G: Fat = unsafe { Transmute { t: FOO }.u }; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error[E0080]: it is undefined behavior to use this value --> /home/runner/work/glacier/glacier/ices/79690.rs:26:1 | 26 | const G: Fat = unsafe { Transmute { t: FOO }.u }; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type validation failed: encountered read of part of a pointer at .1..size.foo | = 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; 6 warnings emitted For more information about this error, try `rustc --explain E0080`. ============== --- {ices => fixed}/79690.rs | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename {ices => fixed}/79690.rs (100%) diff --git a/ices/79690.rs b/fixed/79690.rs similarity index 100% rename from ices/79690.rs rename to fixed/79690.rs