-
Notifications
You must be signed in to change notification settings - Fork 13.4k
document common enum fields #3338
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
Milestone
Comments
Wanted to document this but I have no idea what it's for or how you'd go about initializing x and y. Fwiw I searched all of src using: |
I think we've decided not to support these. |
Closing since we're not supporting them. |
oli-obk
pushed a commit
to oli-obk/rust
that referenced
this issue
May 2, 2020
The lint was changed to be more lenient than the documentation implies in PR rust-lang#3338. Related issue rust-lang#3313
oli-obk
pushed a commit
to oli-obk/rust
that referenced
this issue
May 2, 2020
…, r=phansch Update documentation for new_ret_no_self changelog: Update documentation for lint new_ret_no_self to reflect that the return type must only contain `Self`, not be `Self` The lint was changed to be more lenient than the documentation implies in PR rust-lang#3338 (Related issue rust-lang#3313)
bors
pushed a commit
to rust-lang-ci/rust
that referenced
this issue
May 15, 2021
RalfJung
pushed a commit
to RalfJung/rust
that referenced
this issue
Mar 3, 2024
…RalfJung print thread name in miri error backtraces; add option to track read/write accesses This came up while debugging rust-lang#121626. It didn't end up being useful there but still seems like good tools to have around.
jaisnan
pushed a commit
to jaisnan/rust-dev
that referenced
this issue
Jul 29, 2024
…t-lang#3338) This PR addresses another aspect of rust-lang#3324, where delayed UB could be caused by transmuting a mutable pointer into the one of incompatible padding. It also adds a check to error whenever transmuting between two types of incompatible padding. By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Commit 5c9c9a6 talks about something called common enum fields and includes the following wacky rust example:
Don't see this documented anywhere.
The text was updated successfully, but these errors were encountered: