Skip to content

Commit

Permalink
Remove impl const and ~const in the standard library
Browse files Browse the repository at this point in the history
Otherwise it will fail to compile on nightly-2023-04-19

See rust-lang/rust#110395
  • Loading branch information
equation314 committed Apr 20, 2023
1 parent 7253504 commit 2be6969
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
//! [`std::io::ErrorKind`]: https://doc.rust-lang.org/std/io/enum.ErrorKind.html

#![no_std]
#![feature(const_trait_impl)]

mod linux_errno {
include!(concat!(env!("OUT_DIR"), "/linux_errno.rs"));
Expand Down Expand Up @@ -167,7 +166,7 @@ impl AxError {
}
}

impl const From<AxError> for LinuxError {
impl From<AxError> for LinuxError {
fn from(e: AxError) -> Self {
use AxError::*;
match e {
Expand Down

0 comments on commit 2be6969

Please sign in to comment.