@@ -16,7 +16,10 @@ impl<S: Stage> SingleAttributeParser<S> for LinkNameParser {
16
16
const PATH : & [ Symbol ] = & [ sym:: link_name] ;
17
17
const ATTRIBUTE_ORDER : AttributeOrder = AttributeOrder :: KeepInnermost ;
18
18
const ON_DUPLICATE : OnDuplicate < S > = OnDuplicate :: WarnButFutureError ;
19
- const TEMPLATE : AttributeTemplate = template ! ( NameValueStr : "name" ) ;
19
+ const TEMPLATE : AttributeTemplate = template ! (
20
+ NameValueStr : "name" ,
21
+ "https://doc.rust-lang.org/reference/items/external-blocks.html#the-link_name-attribute"
22
+ ) ;
20
23
21
24
fn convert ( cx : & mut AcceptContext < ' _ , ' _ , S > , args : & ArgParser < ' _ > ) -> Option < AttributeKind > {
22
25
let Some ( nv) = args. name_value ( ) else {
@@ -38,7 +41,10 @@ impl<S: Stage> SingleAttributeParser<S> for LinkSectionParser {
38
41
const PATH : & [ Symbol ] = & [ sym:: link_section] ;
39
42
const ATTRIBUTE_ORDER : AttributeOrder = AttributeOrder :: KeepInnermost ;
40
43
const ON_DUPLICATE : OnDuplicate < S > = OnDuplicate :: WarnButFutureError ;
41
- const TEMPLATE : AttributeTemplate = template ! ( NameValueStr : "name" ) ;
44
+ const TEMPLATE : AttributeTemplate = template ! (
45
+ NameValueStr : "name" ,
46
+ "https://doc.rust-lang.org/reference/abi.html#the-link_section-attribute"
47
+ ) ;
42
48
43
49
fn convert ( cx : & mut AcceptContext < ' _ , ' _ , S > , args : & ArgParser < ' _ > ) -> Option < AttributeKind > {
44
50
let Some ( nv) = args. name_value ( ) else {
@@ -94,7 +100,10 @@ impl<S: Stage> SingleAttributeParser<S> for LinkOrdinalParser {
94
100
const PATH : & [ Symbol ] = & [ sym:: link_ordinal] ;
95
101
const ATTRIBUTE_ORDER : AttributeOrder = AttributeOrder :: KeepOutermost ;
96
102
const ON_DUPLICATE : OnDuplicate < S > = OnDuplicate :: Error ;
97
- const TEMPLATE : AttributeTemplate = template ! ( List : & [ "ordinal" ] ) ;
103
+ const TEMPLATE : AttributeTemplate = template ! (
104
+ List : & [ "ordinal" ] ,
105
+ "https://doc.rust-lang.org/reference/items/external-blocks.html#the-link_ordinal-attribute"
106
+ ) ;
98
107
99
108
fn convert ( cx : & mut AcceptContext < ' _ , ' _ , S > , args : & ArgParser < ' _ > ) -> Option < AttributeKind > {
100
109
let ordinal = parse_single_integer ( cx, args) ?;
0 commit comments