Skip to content

Commit

Permalink
x.py fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
nikomatsakis committed Aug 23, 2021
1 parent e49323b commit ef2b9a4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion compiler/rustc_typeck/src/check/_match.rs
Expand Up @@ -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>,
Expand Down
2 changes: 1 addition & 1 deletion compiler/rustc_typeck/src/check/coercion.rs
Expand Up @@ -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>,
Expand Down
8 changes: 3 additions & 5 deletions compiler/rustc_typeck/src/check/expr.rs
Expand Up @@ -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>,
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ef2b9a4

Please sign in to comment.