-
-
Notifications
You must be signed in to change notification settings - Fork 14.3k
compiler: Make Externally Implementable Item (eii) macros "semiopaque" #151046
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
base: main
Are you sure you want to change the base?
Conversation
Otherwise eiis defined by std will produce large amounts of `missing stability attribute` errors.
|
what does opaque/semiopaque exactly mean? like what effect does that have? Is there a nice reference somewhere? |
|
@rustbot author |
|
@jdonszelmann Hopefully the in-tree docs can help? rust/compiler/rustc_span/src/hygiene.rs Lines 182 to 200 in 3bdf45f
Also, this seems to be the most important place for where the difference of the variants matter (but I don't understand the code myself): rust/compiler/rustc_span/src/hygiene.rs Lines 605 to 619 in 3bdf45f
I personally find the discussion that starts here interesting. But for me it really boils down to:
|
Otherwise eiis defined by std will produce large amounts of
missing stability attributeerrors. This problem is not eii specific, as can be seen in #146993 and which is demonstrated in #151022.As can be seen with
it is very common for macros to use
"semiopaque".r? @jdonszelmann
Tracking issue: #125418
Needed for: #150588