diff options
| author | Kevin Per <kevin.per@protonmail.com> | 2021-02-09 08:42:08 +0000 |
|---|---|---|
| committer | Kevin Per <kevin.per@protonmail.com> | 2021-02-09 08:42:08 +0000 |
| commit | 95be69dabb9ddd5fe32a33942b1cfe4914c79c38 (patch) | |
| tree | b85f3c79f890db824d852ff1268fce2c72d52e8e | |
| parent | 09d5d0766eaaf0dbf1c1773af79d26f73aa65073 (diff) | |
Fixing codestyle
| -rw-r--r-- | compiler/rustc_typeck/src/collect.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/compiler/rustc_typeck/src/collect.rs b/compiler/rustc_typeck/src/collect.rs index 3d0220bfd67..d26f3242048 100644 --- a/compiler/rustc_typeck/src/collect.rs +++ b/compiler/rustc_typeck/src/collect.rs @@ -172,7 +172,7 @@ crate fn placeholder_type_error( } let mut err = bad_placeholder_type(tcx, placeholder_types); - + // Suggest, but only if it is not a function if suggest && !is_fn { err.multipart_suggestion( @@ -202,11 +202,11 @@ fn reject_placeholder_type_signatures_in_item(tcx: TyCtxt<'tcx>, item: &'tcx hir visitor.visit_item(item); placeholder_type_error( - tcx, - Some(generics.span), - &generics.params[..], - visitor.0, - suggest, + tcx, + Some(generics.span), + &generics.params[..], + visitor.0, + suggest, false ); } |
