@@ -16,7 +16,10 @@ impl<S: Stage> SingleAttributeParser<S> for LinkNameParser {
1616 const PATH : & [ Symbol ] = & [ sym:: link_name] ;
1717 const ATTRIBUTE_ORDER : AttributeOrder = AttributeOrder :: KeepInnermost ;
1818 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+ ) ;
2023
2124 fn convert ( cx : & mut AcceptContext < ' _ , ' _ , S > , args : & ArgParser < ' _ > ) -> Option < AttributeKind > {
2225 let Some ( nv) = args. name_value ( ) else {
@@ -38,7 +41,10 @@ impl<S: Stage> SingleAttributeParser<S> for LinkSectionParser {
3841 const PATH : & [ Symbol ] = & [ sym:: link_section] ;
3942 const ATTRIBUTE_ORDER : AttributeOrder = AttributeOrder :: KeepInnermost ;
4043 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+ ) ;
4248
4349 fn convert ( cx : & mut AcceptContext < ' _ , ' _ , S > , args : & ArgParser < ' _ > ) -> Option < AttributeKind > {
4450 let Some ( nv) = args. name_value ( ) else {
@@ -94,7 +100,10 @@ impl<S: Stage> SingleAttributeParser<S> for LinkOrdinalParser {
94100 const PATH : & [ Symbol ] = & [ sym:: link_ordinal] ;
95101 const ATTRIBUTE_ORDER : AttributeOrder = AttributeOrder :: KeepOutermost ;
96102 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+ ) ;
98107
99108 fn convert ( cx : & mut AcceptContext < ' _ , ' _ , S > , args : & ArgParser < ' _ > ) -> Option < AttributeKind > {
100109 let ordinal = parse_single_integer ( cx, args) ?;
0 commit comments