diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2021-08-23 22:21:21 +0000 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2021-08-23 22:21:21 +0000 |
| commit | ef2b9a406811fcfec34c8679099c409cc0a840b3 (patch) | |
| tree | be0ec2508867bed64ea0c2e849de6a15cef83d11 | |
| parent | e49323b07dd0a53318e2336f579fe9dd45c0741f (diff) | |
| download | rust-ef2b9a406811fcfec34c8679099c409cc0a840b3.tar.gz rust-ef2b9a406811fcfec34c8679099c409cc0a840b3.zip | |
x.py fmt
| -rw-r--r-- | compiler/rustc_typeck/src/check/_match.rs | 2 | ||||
| -rw-r--r-- | compiler/rustc_typeck/src/check/coercion.rs | 2 | ||||
| -rw-r--r-- | compiler/rustc_typeck/src/check/expr.rs | 8 |
3 files changed, 5 insertions, 7 deletions
diff --git a/compiler/rustc_typeck/src/check/_match.rs b/compiler/rustc_typeck/src/check/_match.rs index 0397021c291..01227cad334 100644 --- a/compiler/rustc_typeck/src/check/_match.rs +++ b/compiler/rustc_typeck/src/check/_match.rs @@ -14,7 +14,7 @@ use rustc_trait_selection::traits::{ }; impl<'a, 'tcx> FnCtxt<'a, 'tcx> { - #[instrument(skip(self), level="debug")] + #[instrument(skip(self), level = "debug")] pub fn check_match( &self, expr: &'tcx hir::Expr<'tcx>, diff --git a/compiler/rustc_typeck/src/check/coercion.rs b/compiler/rustc_typeck/src/check/coercion.rs index 040524df9c7..17a81486048 100644 --- a/compiler/rustc_typeck/src/check/coercion.rs +++ b/compiler/rustc_typeck/src/check/coercion.rs @@ -1328,7 +1328,7 @@ impl<'tcx, 'exprs, E: AsCoercionSite> CoerceMany<'tcx, 'exprs, E> { /// The inner coercion "engine". If `expression` is `None`, this /// is a forced-unit case, and hence `expression_ty` must be /// `Nil`. - #[instrument(skip(self,fcx,augment_error,label_expression_as_expected), level="debug")] + #[instrument(skip(self, fcx, augment_error, label_expression_as_expected), level = "debug")] crate fn coerce_inner<'a>( &mut self, fcx: &FnCtxt<'a, 'tcx>, diff --git a/compiler/rustc_typeck/src/check/expr.rs b/compiler/rustc_typeck/src/check/expr.rs index 7880369e6c2..eaf24552355 100644 --- a/compiler/rustc_typeck/src/check/expr.rs +++ b/compiler/rustc_typeck/src/check/expr.rs @@ -156,7 +156,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> { /// Note that inspecting a type's structure *directly* may expose the fact /// that there are actually multiple representations for `Error`, so avoid /// that when err needs to be handled differently. - #[instrument(skip(self), level="debug")] + #[instrument(skip(self), level = "debug")] pub(super) fn check_expr_with_expectation( &self, expr: &'tcx hir::Expr<'tcx>, @@ -176,7 +176,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> { } } } - } + } // True if `expr` is a `Try::from_ok(())` that is a result of desugaring a try block // without the final expr (e.g. `try { return; }`). We don't want to generate an @@ -1066,9 +1066,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> { Ok(cast_check) => { debug!( "check_expr_cast: deferring cast from {:?} to {:?}: {:?}", - t_cast, - t_expr, - cast_check, + t_cast, t_expr, cast_check, ); deferred_cast_checks.push(cast_check); t_cast |
