-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Default method ICE when (unused) parameter is unnamed. #8417
Labels
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Comments
Part of #2794 |
ghost
assigned pnkfelix
Aug 14, 2013
This probably ought to be just disallowed. It's not allowed for regular function defs. Closely related to #8468. |
I may just fix the crash, though, to close this part, and leave the decision about whether to disallow it as part of #8468. |
flip1995
pushed a commit
to flip1995/rust
that referenced
this issue
Feb 24, 2022
…, r=llogiq Downgrade transmute_undefined_repr to nursery Reason: rust-lang#8417. I am skeptical of this lint but maybe there is a narrower subset of types on which it is useful, so keeping it for now but moving to nursery for further development. --- *Please write a short comment explaining your change (or "none" for internal only changes)* changelog: Remove [`transmute_undefined_repr`] from default set of enabled lints
flip1995
pushed a commit
to flip1995/rust
that referenced
this issue
Feb 24, 2022
Fix `transmute_undefined_repr` with single field `#[repr(C)]` structs Fixes: rust-lang#8417 The description has also been made more precise. changelog: Fix `transmute_undefined_repr` with single field `#[repr(C)]` structs changelog: Move `transmute_undefined_repr` back to `correctness`
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
tic.rs:
(an easy work-around is to put a name on the second parameter above. But it would be better to either support this, or issue a proper error message for the erroneous input.)
The text was updated successfully, but these errors were encountered: