Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't rely on promotion of
PageTableEntry::new
inside a const fn
Hi! Rust compiler team member here. When the `const_fn` feature is enabled, the implementation of `PageTable::new` relies on a compiler bug to work. Specifically, `PageTableEntry::new` should not be eligible for promotion as part of an array initializer. See rust-lang/rust#75502 for more information. This bug may be fixed in the future, which will cause this crate to stop compiling.
- Loading branch information