-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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 when using trivial_bounds
and an associated type
#125394
Labels
C-bug
Category: This is a bug.
F-trivial_bounds
`#![feature(trivial_bounds)]`
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
L-missing_copy_implementations
Lint: missing_copy_implementations
S-has-mcve
Status: A Minimal Complete and Verifiable Example has been found for this issue
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
CraftSpider
added
C-bug
Category: This is a bug.
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.
labels
May 22, 2024
rustbot
added
the
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
label
May 22, 2024
jieyouxu
added
S-has-mcve
Status: A Minimal Complete and Verifiable Example has been found for this issue
F-trivial_bounds
`#![feature(trivial_bounds)]`
L-missing_copy_implementations
Lint: missing_copy_implementations
and removed
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
labels
May 22, 2024
fmease
added a commit
to fmease/rust
that referenced
this issue
May 22, 2024
…copy, r=lcnr Use correct param-env in `MissingCopyImplementations` We shouldn't assume the param-env is empty for this lint, since although we check the struct has no parameters, there still may be trivial where-clauses. fixes rust-lang#125394
fmease
added a commit
to fmease/rust
that referenced
this issue
May 22, 2024
…copy, r=lcnr Use correct param-env in `MissingCopyImplementations` We shouldn't assume the param-env is empty for this lint, since although we check the struct has no parameters, there still may be trivial where-clauses. fixes rust-lang#125394
matthiaskrgr
added a commit
to matthiaskrgr/rust
that referenced
this issue
May 23, 2024
…copy, r=lcnr Use correct param-env in `MissingCopyImplementations` We shouldn't assume the param-env is empty for this lint, since although we check the struct has no parameters, there still may be trivial where-clauses. fixes rust-lang#125394
matthiaskrgr
added a commit
to matthiaskrgr/rust
that referenced
this issue
May 23, 2024
…copy, r=lcnr Use correct param-env in `MissingCopyImplementations` We shouldn't assume the param-env is empty for this lint, since although we check the struct has no parameters, there still may be trivial where-clauses. fixes rust-lang#125394
rust-timer
added a commit
to rust-lang-ci/rust
that referenced
this issue
May 23, 2024
Rollup merge of rust-lang#125416 - compiler-errors:param-env-missing-copy, r=lcnr Use correct param-env in `MissingCopyImplementations` We shouldn't assume the param-env is empty for this lint, since although we check the struct has no parameters, there still may be trivial where-clauses. fixes rust-lang#125394
Still crashes with |
@matthiaskrgr I would appreciate if you opened a new issue for that, and shared the backtrace, etc there instead. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
C-bug
Category: This is a bug.
F-trivial_bounds
`#![feature(trivial_bounds)]`
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
L-missing_copy_implementations
Lint: missing_copy_implementations
S-has-mcve
Status: A Minimal Complete and Verifiable Example has been found for this issue
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
This appears to be an issue in the
MissingCopyImplementations
lint, possibly it assumingstruct S(<Foo as Bar>::Assoc);
can be normalized, when due to the bound and the lack of implementationBar for Foo
, the type is effectivelystruct S(<Error>);
Code
playground
Meta
rustc --version --verbose
: locallyError output
Backtrace
The text was updated successfully, but these errors were encountered: