Skip to content

Commit

Permalink
Rollup merge of #64475 - guanqun:use-same-name, r=Centril
Browse files Browse the repository at this point in the history
simplify the initialization
  • Loading branch information
Centril authored Sep 15, 2019
2 parents 82927cf + 71d4549 commit 88bd564
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_typeck/check/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ pub struct UnsafetyState {

impl UnsafetyState {
pub fn function(unsafety: hir::Unsafety, def: hir::HirId) -> UnsafetyState {
UnsafetyState { def: def, unsafety: unsafety, unsafe_push_count: 0, from_fn: true }
UnsafetyState { def, unsafety, unsafe_push_count: 0, from_fn: true }
}

pub fn recurse(&mut self, blk: &hir::Block) -> UnsafetyState {
Expand Down

0 comments on commit 88bd564

Please sign in to comment.