diff options
| author | Yenlin Chen <3822365+hencrice@users.noreply.github.com> | 2020-12-23 19:10:59 +0000 |
|---|---|---|
| committer | Yenlin Chen <3822365+hencrice@users.noreply.github.com> | 2020-12-23 19:10:59 +0000 |
| commit | ecba49c1bd6e16235e13a076e03e31fcd8d7ffc8 (patch) | |
| tree | 9be3101d3ecb383f1b22d1c7ef62333de44f8474 | |
| parent | f459b0fea5723010bf1654d8073389fd0a0263d1 (diff) | |
| download | rust-ecba49c1bd6e16235e13a076e03e31fcd8d7ffc8.tar.gz rust-ecba49c1bd6e16235e13a076e03e31fcd8d7ffc8.zip | |
Fixed formatting
| -rw-r--r-- | compiler/rustc_mir/src/util/pretty.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/compiler/rustc_mir/src/util/pretty.rs b/compiler/rustc_mir/src/util/pretty.rs index 394eb833422..34ec16d9f29 100644 --- a/compiler/rustc_mir/src/util/pretty.rs +++ b/compiler/rustc_mir/src/util/pretty.rs @@ -413,9 +413,7 @@ fn use_verbose(ty: &&TyS<'tcx>) -> bool { ty::Int(_) | ty::Uint(_) | ty::Bool | ty::Char | ty::Float(_) => false, // Unit type ty::Tuple(g_args) if g_args.is_empty() => false, - ty::Tuple(g_args) => g_args.iter().any(|g_arg| { - use_verbose(&g_arg.expect_ty()) - }), + ty::Tuple(g_args) => g_args.iter().any(|g_arg| use_verbose(&g_arg.expect_ty())), ty::Array(ty, _) => use_verbose(ty), ty::FnDef(..) => false, _ => true, |
