Skip to content

Commit 2be6969

Browse files
committed
Remove impl const and ~const in the standard library
Otherwise it will fail to compile on nightly-2023-04-19 See rust-lang/rust#110395
1 parent 7253504 commit 2be6969

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: src/lib.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
//! [`std::io::ErrorKind`]: https://doc.rust-lang.org/std/io/enum.ErrorKind.html
1111
1212
#![no_std]
13-
#![feature(const_trait_impl)]
1413

1514
mod linux_errno {
1615
include!(concat!(env!("OUT_DIR"), "/linux_errno.rs"));
@@ -167,7 +166,7 @@ impl AxError {
167166
}
168167
}
169168

170-
impl const From<AxError> for LinuxError {
169+
impl From<AxError> for LinuxError {
171170
fn from(e: AxError) -> Self {
172171
use AxError::*;
173172
match e {

0 commit comments

Comments
 (0)