-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ICE: type parameter impl .. out of range when substituting
#121063
Labels
-Zpolymorphize
Unstable option: Polymorphization.
A-mir-opt
Area: MIR optimizations
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
S-bug-has-test
Status: This bug is tracked inside the repo by a `known-bug` test.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
matthiaskrgr
added
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
C-bug
Category: This is a bug.
A-mir-opt
Area: MIR optimizations
labels
Feb 14, 2024
rustbot
added
the
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
label
Feb 14, 2024
sassy :P lol |
jieyouxu
removed
the
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
label
Feb 14, 2024
probably the same issue: use std::fmt;
pub enum TokenTree<S> {
Leaf(Leaf<S>),
Subtree(Subtree<S>),
}
pub enum Leaf<S> {
Literal(Literal<S>),
Ident(Ident<S>),
}
pub struct Subtree<S> {}
impl<S> fmt::Display for TokenTree<S> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
match self {
TokenTree::Leaf(it) => fmt::Display::fmt(it, f),
TokenTree::Subtree(it) => fmt::Display::fmt(it, f),
}
}
}
impl<S> fmt::Display for Subtree<S> {
fn fmt(text: impl Into<SmolStr>, span: S) -> fmt::Result {
Ok(())
}
}
impl<S> fmt::Display for Leaf<S> {} |
matthiaskrgr
added
the
S-bug-has-test
Status: This bug is tracked inside the repo by a `known-bug` test.
label
Apr 18, 2024
Backtrace update rustc 1.80.0-nightly (debd22d 2024-05-29) Backtrace
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
-Zpolymorphize
Unstable option: Polymorphization.
A-mir-opt
Area: MIR optimizations
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
S-bug-has-test
Status: This bug is tracked inside the repo by a `known-bug` test.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
It appears that generic crash exprs are not even required 🤯
snippet:
Version information
Command:
/home/matthias/.rustup/toolchains/master/bin/rustc -Zpolymorphize=on --edition=2021 -Zinline-mir=yes
Program output
The text was updated successfully, but these errors were encountered: