mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-14 17:07:17 +00:00
parent
3c308b86c8
commit
e4636f3c39
3 changed files with 8 additions and 6 deletions
|
@ -720,7 +720,7 @@ fn never_loop_expr(expr: &Expr, main_loop_id: HirId) -> NeverLoopResult {
|
|||
ExprKind::Struct(_, _, None)
|
||||
| ExprKind::Yield(_, _)
|
||||
| ExprKind::Closure(_, _, _, _, _)
|
||||
| ExprKind::InlineAsm(_, _, _)
|
||||
| ExprKind::InlineAsm(_)
|
||||
| ExprKind::Path(_)
|
||||
| ExprKind::Lit(_)
|
||||
| ExprKind::Err => NeverLoopResult::Otherwise,
|
||||
|
|
|
@ -458,8 +458,8 @@ impl<'tcx> Visitor<'tcx> for PrintVisitor {
|
|||
println!("Ret(None) = {};", current);
|
||||
}
|
||||
},
|
||||
ExprKind::InlineAsm(_, ref _input, ref _output) => {
|
||||
println!("InlineAsm(_, ref input, ref output) = {};", current);
|
||||
ExprKind::InlineAsm(_) => {
|
||||
println!("InlineAsm(_) = {};", current);
|
||||
println!(" // unimplemented: `ExprKind::InlineAsm` is not further destructured at the moment");
|
||||
},
|
||||
ExprKind::Struct(ref path, ref fields, ref opt_base) => {
|
||||
|
|
|
@ -282,14 +282,16 @@ fn print_expr(cx: &LateContext<'_, '_>, expr: &hir::Expr, indent: usize) {
|
|||
print_expr(cx, e, indent + 1);
|
||||
}
|
||||
},
|
||||
hir::ExprKind::InlineAsm(_, ref input, ref output) => {
|
||||
hir::ExprKind::InlineAsm(ref asm) => {
|
||||
let inputs = &asm.inputs_exprs;
|
||||
let outputs = &asm.outputs_exprs;
|
||||
println!("{}InlineAsm", ind);
|
||||
println!("{}inputs:", ind);
|
||||
for e in input {
|
||||
for e in inputs.iter() {
|
||||
print_expr(cx, e, indent + 1);
|
||||
}
|
||||
println!("{}outputs:", ind);
|
||||
for e in output {
|
||||
for e in outputs.iter() {
|
||||
print_expr(cx, e, indent + 1);
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue