Skip to content

Commit

Permalink
Remove box syntax from rustc_typeck
Browse files Browse the repository at this point in the history
  • Loading branch information
est31 committed Aug 18, 2021
1 parent 15672dc commit 395e7df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions compiler/rustc_typeck/src/check/_match.rs
Expand Up @@ -108,7 +108,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
0 => (arm_span, ObligationCauseCode::BlockTailExpression(arm.body.hir_id)),
_ => (
expr.span,
ObligationCauseCode::MatchExpressionArm(box MatchExpressionArmCause {
ObligationCauseCode::MatchExpressionArm(Box::new(MatchExpressionArmCause {
arm_span,
scrut_span: scrut.span,
semi_span,
Expand All @@ -117,7 +117,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
last_ty: prior_arm_ty.unwrap(),
scrut_hir_id: scrut.hir_id,
opt_suggest_box_span,
}),
})),
),
};
let cause = self.cause(span, code);
Expand Down Expand Up @@ -397,13 +397,13 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
// Finally construct the cause:
self.cause(
error_sp,
ObligationCauseCode::IfExpression(box IfExpressionCause {
ObligationCauseCode::IfExpression(Box::new(IfExpressionCause {
then: then_sp,
else_sp: error_sp,
outer: outer_sp,
semicolon: remove_semicolon,
opt_suggest_box_span,
}),
})),
)
}

Expand Down
1 change: 0 additions & 1 deletion compiler/rustc_typeck/src/lib.rs
Expand Up @@ -58,7 +58,6 @@ This API is completely unstable and subject to change.
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
#![cfg_attr(bootstrap, feature(bindings_after_at))]
#![feature(bool_to_option)]
#![feature(box_syntax)]
#![feature(crate_visibility_modifier)]
#![feature(format_args_capture)]
#![feature(in_band_lifetimes)]
Expand Down

0 comments on commit 395e7df

Please sign in to comment.