-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Port the #[linkage]
attribute to the new attribute system
#145323
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: master
Are you sure you want to change the base?
Conversation
|
Some changes occurred in compiler/rustc_hir/src/attrs Some changes occurred in compiler/rustc_codegen_ssa Some changes occurred in compiler/rustc_passes/src/check_attr.rs Some changes occurred in compiler/rustc_attr_parsing |
This comment has been minimized.
This comment has been minimized.
4e42223
to
f51108d
Compare
This comment has been minimized.
This comment has been minimized.
f51108d
to
0e45ceb
Compare
AttributeKind::Linkage(linkage, _) => { | ||
let linkage = match linkage { | ||
LinkageArg::AvailableExternally => Linkage::AvailableExternally, | ||
LinkageArg::Common => Linkage::Common, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it looks like maybe the attribute can just contain a Linkage
directly since this looks like a one-to-one map
looks good otherwise |
@rustbot author |
Reminder, once the PR becomes ready for a review, use |
r? @jdonszelmann