Rollup merge of #64475 - guanqun:use-same-name, r=Centril

simplify the initialization
This commit is contained in:
Mazdak Farrokhzad 2019-09-15 02:29:49 +02:00 committed by GitHub
commit 88bd5646f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {