-
Notifications
You must be signed in to change notification settings - Fork 13.3k
ice: effects: parent also has host effect param?
#113378
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Labels
C-bug
Category: This is a bug.
F-effects
`#![feature(effects)]`
glacier
ICE tracked in rust-lang/glacier.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
requires-nightly
This issue requires a nightly compiler in some way.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
Also hit this with... #![feature(const_trait_impl, effects, rustc_attrs)]
#[const_trait]
pub trait Stone {
type Recorded: Copy;
fn get_record<#[rustc_host] const host: bool = true>(&self) -> Self::Recorded;
}
pub struct Wall<T: Stone>(T::Recorded);
pub struct Brick;
impl const Stone for Brick {
type Recorded = i32;
fn get_record(&self) -> i32 {
0
}
}
impl<T: ~const Stone> Wall<T> {
const fn new(value: T) -> Self {
Self(value.get_record())
}
}
fn main() {
let _ = Wall::new(Brick);
} Error output...
Backtrace
|
fmease
added a commit
to fmease/rust
that referenced
this issue
Jan 2, 2024
…, r=fee1-dead Don't synthesize host effect params for trait associated functions marked const Fixes rust-lang#113378. r? fee1-dead or compiler
fmease
added a commit
to fmease/rust
that referenced
this issue
Jan 3, 2024
…, r=fee1-dead Don't synthesize host effect params for trait associated functions marked const Fixes rust-lang#113378. r? fee1-dead or compiler
fmease
added a commit
to fmease/rust
that referenced
this issue
Jan 3, 2024
…, r=fee1-dead Don't synthesize host effect params for trait associated functions marked const Fixes rust-lang#113378. r? fee1-dead or compiler
rust-timer
added a commit
to rust-lang-ci/rust
that referenced
this issue
Jan 3, 2024
Rollup merge of rust-lang#119505 - fmease:no-host-param-for-trait-fns, r=fee1-dead Don't synthesize host effect params for trait associated functions marked const Fixes rust-lang#113378. r? fee1-dead or compiler
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Labels
C-bug
Category: This is a bug.
F-effects
`#![feature(effects)]`
glacier
ICE tracked in rust-lang/glacier.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
requires-nightly
This issue requires a nightly compiler in some way.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Meta
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: