Rollup merge of #91504 - cynecx:used_retain, r=nikic
`#[used(linker)]` attribute See https://github.com/dtolnay/linkme/issues/41#issuecomment-927255631.
This commit is contained in:
commit
3f4aaf4f2e
16 changed files with 182 additions and 4 deletions
|
@ -324,7 +324,7 @@ pub const BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[
|
|||
ungated!(export_name, Normal, template!(NameValueStr: "name"), FutureWarnPreceding),
|
||||
ungated!(link_section, Normal, template!(NameValueStr: "name"), FutureWarnPreceding),
|
||||
ungated!(no_mangle, Normal, template!(Word), WarnFollowing),
|
||||
ungated!(used, Normal, template!(Word), WarnFollowing),
|
||||
ungated!(used, Normal, template!(Word, List: "compiler|linker"), WarnFollowing),
|
||||
|
||||
// Limits:
|
||||
ungated!(recursion_limit, CrateLevel, template!(NameValueStr: "N"), FutureWarnFollowing),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue