@@ -281,8 +281,9 @@ fn print_expr(cx: &LateContext<'_>, expr: &hir::Expr<'_>, indent: usize) {
281
281
for ( op, _op_sp) in asm. operands {
282
282
match op {
283
283
hir:: InlineAsmOperand :: In { expr, .. }
284
- | hir:: InlineAsmOperand :: InOut { expr, .. }
285
- | hir:: InlineAsmOperand :: Sym { expr } => print_expr ( cx, expr, indent + 1 ) ,
284
+ | hir:: InlineAsmOperand :: InOut { expr, .. } => {
285
+ print_expr ( cx, expr, indent + 1 ) ;
286
+ }
286
287
hir:: InlineAsmOperand :: Out { expr, .. } => {
287
288
if let Some ( expr) = expr {
288
289
print_expr ( cx, expr, indent + 1 ) ;
@@ -294,10 +295,26 @@ fn print_expr(cx: &LateContext<'_>, expr: &hir::Expr<'_>, indent: usize) {
294
295
print_expr ( cx, out_expr, indent + 1 ) ;
295
296
}
296
297
} ,
297
- hir:: InlineAsmOperand :: Const { anon_const } => {
298
+ hir:: InlineAsmOperand :: Const { anon_const }
299
+ | hir:: InlineAsmOperand :: SymFn { anon_const } => {
298
300
println ! ( "{}anon_const:" , ind) ;
299
301
print_expr ( cx, & cx. tcx . hir ( ) . body ( anon_const. body ) . value , indent + 1 ) ;
300
302
} ,
303
+ hir:: InlineAsmOperand :: SymStatic { path, .. } => {
304
+ match path {
305
+ hir:: QPath :: Resolved ( ref ty, path) => {
306
+ println ! ( "{}Resolved Path, {:?}" , ind, ty) ;
307
+ println ! ( "{}path: {:?}" , ind, path) ;
308
+ } ,
309
+ hir:: QPath :: TypeRelative ( ty, seg) => {
310
+ println ! ( "{}Relative Path, {:?}" , ind, ty) ;
311
+ println ! ( "{}seg: {:?}" , ind, seg) ;
312
+ } ,
313
+ hir:: QPath :: LangItem ( lang_item, ..) => {
314
+ println ! ( "{}Lang Item Path, {:?}" , ind, lang_item. name( ) ) ;
315
+ } ,
316
+ }
317
+ }
301
318
}
302
319
}
303
320
} ,
0 commit comments