// this was related to the `x86_64` crate so I am providing a link to the corresponding lines:
// https://github.com/rust-osdev/x86_64/blob/master/src/structures/paging/frame.rs#L18
// https://github.com/rust-osdev/x86_64/blob/master/src/structures/paging/page.rs#L62
// https://github.com/rust-osdev/x86_64/blob/master/src/structures/paging/page.rs#L150
I expected to see this happen:
The compilation should be completed successfully without any errors being emitted by the compiler.
Instead, this happened:
The compilation failed with several errors mentioning about the "const_fn_trait_bounds" feature:
error[E0658]: trait bounds other than `Sized` on const fn parameters are unstable
--> <path redacted>\x86_64-0.14.0\src\structures\paging\frame.rs:18:6
|
18 | impl<S: PageSize> PhysFrame<S> {
| ^
|
= note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563> for more information
= help: add `#![feature(const_fn_trait_bound)]` to the crate attributes to enable
error[E0658]: trait bounds other than `Sized` on const fn parameters are unstable
--> <path redacted>\x86_64-0.14.0\src\structures\paging\page.rs:62:6
|
62 | impl<S: PageSize> Page<S> {
| ^
|
= note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563> for more information
= help: add `#![feature(const_fn_trait_bound)]` to the crate attributes to enable
error[E0658]: trait bounds other than `Sized` on const fn parameters are unstable
--> <path redacted>\x86_64-0.14.0\src\structures\paging\page.rs:150:6
|
150 | impl<S: NotGiantPageSize> Page<S> {
| ^
|
= note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563> for more information
= help: add `#![feature(const_fn_trait_bound)]` to the crate attributes to enable
error: aborting due to 3 previous errors
Version it worked on
It most recently worked on (taken from the x86_64 crate's GitHub CI):
Code
I tried this code:
I expected to see this happen:
The compilation should be completed successfully without any errors being emitted by the compiler.
Instead, this happened:
The compilation failed with several errors mentioning about the "const_fn_trait_bounds" feature:
Version it worked on
It most recently worked on (taken from the x86_64 crate's GitHub CI):
rustc --version --verbose
Version with regression
rustc --version --verbose
:Backtrace
Backtrace
``` None ```
@rustbot modify labels: +regression-from-nightly-to-nightly -regression-untriaged