@@ -229,14 +229,6 @@ pub fn expand(
229
229
span,
230
230
} ;
231
231
232
- // Now update for d_fn
233
- rustc_ad_attr. item . args = rustc_ast:: AttrArgs :: Delimited ( rustc_ast:: DelimArgs {
234
- dspan : DelimSpan :: dummy ( ) ,
235
- delim : rustc_ast:: token:: Delimiter :: Parenthesis ,
236
- tokens : ts,
237
- } ) ;
238
- attr. kind = ast:: AttrKind :: Normal ( rustc_ad_attr) ;
239
-
240
232
// Don't add it multiple times:
241
233
let orig_annotatable: Annotatable = match item {
242
234
Annotatable :: Item ( ref mut iitem) => {
@@ -262,6 +254,14 @@ pub fn expand(
262
254
}
263
255
} ;
264
256
257
+ // Now update for d_fn
258
+ rustc_ad_attr. item . args = rustc_ast:: AttrArgs :: Delimited ( rustc_ast:: DelimArgs {
259
+ dspan : DelimSpan :: dummy ( ) ,
260
+ delim : rustc_ast:: token:: Delimiter :: Parenthesis ,
261
+ tokens : ts,
262
+ } ) ;
263
+ attr. kind = ast:: AttrKind :: Normal ( rustc_ad_attr) ;
264
+
265
265
let d_annotatable = if is_impl {
266
266
let assoc_item: AssocItemKind = ast:: AssocItemKind :: Fn ( asdf) ;
267
267
let d_fn = P ( ast:: AssocItem {
@@ -275,7 +275,7 @@ pub fn expand(
275
275
} ) ;
276
276
Annotatable :: ImplItem ( d_fn)
277
277
} else {
278
- let mut d_fn = ecx. item ( span, d_ident, thin_vec ! [ attr. clone( ) ] , ItemKind :: Fn ( asdf) ) ;
278
+ let mut d_fn = ecx. item ( span, d_ident, thin_vec ! [ attr. clone( ) , inline_never ] , ItemKind :: Fn ( asdf) ) ;
279
279
d_fn. vis = vis;
280
280
Annotatable :: Item ( d_fn)
281
281
} ;
0 commit comments