Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

Commit

Permalink
ices/86132.rs: fixed with errors
Browse files Browse the repository at this point in the history
=== stdout ===
=== stderr ===
warning: trait objects without an explicit `dyn` are deprecated
 --> /home/runner/work/glacier/glacier/ices/86132.rs:4:36
  |
4 | const TRAIT_OBJ_UNALIGNED_VTABLE: &Trait =
  |                                    ^^^^^ help: use `dyn`: `dyn Trait`
  |
  = note: `#[warn(bare_trait_objects)]` on by default
  = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2021 edition!
  = note: for more information, see issue #80165 <rust-lang/rust#80165>

warning: constant is never used: `TRAIT_OBJ_UNALIGNED_VTABLE`
 --> /home/runner/work/glacier/glacier/ices/86132.rs:4:1
  |
4 | / const TRAIT_OBJ_UNALIGNED_VTABLE: &Trait =
5 | |     unsafe { mem::transmute((&92u8, &[0b_______001_11i128; 128])) };
  | |____________________________________________________________________^
  |
  = note: `#[warn(dead_code)]` on by default

error: any use of this value will cause an error
 --> /home/runner/work/glacier/glacier/ices/86132.rs:5:14
  |
4 | / const TRAIT_OBJ_UNALIGNED_VTABLE: &Trait =
5 | |     unsafe { mem::transmute((&92u8, &[0b_______001_11i128; 128])) };
  | |______________^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^__-
  |                |
  |                invalid vtable: alignment `7` is not a power of 2
  |
  = note: `#[deny(const_err)]` on by default
  = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
  = note: for more information, see issue #71800 <rust-lang/rust#71800>

error: aborting due to previous error; 2 warnings emitted

==============
  • Loading branch information
rustbot committed Jun 13, 2021
1 parent 8c90296 commit 92facca
Showing 1 changed file with 0 additions and 0 deletions.
File renamed without changes.

0 comments on commit 92facca

Please sign in to comment.