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

ices/89765.rs: fixed with no errors #1015

Merged
merged 1 commit into from
Nov 17, 2021
Merged

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#89765

#![feature(const_discriminant)]
#![feature(const_raw_ptr_deref)]

pub enum Void { }

pub const C: () = {
    unsafe { std::mem::discriminant(&*(&() as *const () as *const Void)); };
};

pub fn main() {}
=== stdout ===
=== stderr ===
warning: the feature `const_raw_ptr_deref` has been stable since 1.58.0 and no longer requires an attribute to enable
 --> /home/runner/work/glacier/glacier/ices/89765.rs:2:12
  |
2 | #![feature(const_raw_ptr_deref)]
  |            ^^^^^^^^^^^^^^^^^^^
  |
  = note: `#[warn(stable_features)]` on by default

warning: 1 warning emitted

==============

=== stdout ===
=== stderr ===
warning: the feature `const_raw_ptr_deref` has been stable since 1.58.0 and no longer requires an attribute to enable
 --> /home/runner/work/glacier/glacier/ices/89765.rs:2:12
  |
2 | #![feature(const_raw_ptr_deref)]
  |            ^^^^^^^^^^^^^^^^^^^
  |
  = note: `#[warn(stable_features)]` on by default

warning: 1 warning emitted

==============
@Alexendoo Alexendoo merged commit 84328fc into master Nov 17, 2021
@Alexendoo Alexendoo deleted the autofix/ices/89765.rs branch November 17, 2021 13:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants