use field init shorthand EVERYWHERE

Like #43008 (f668999), but _much more aggressive_.
This commit is contained in:
Zack M. Davis 2017-08-06 22:54:09 -07:00
parent 82be83cf74
commit 1b6c9605e4
281 changed files with 1376 additions and 1376 deletions

View file

@ -42,7 +42,7 @@ impl JsonEmitter {
code_map: Rc<CodeMap>) -> JsonEmitter {
JsonEmitter {
dst: Box::new(io::stderr()),
registry: registry,
registry,
cm: code_map,
}
}
@ -56,8 +56,8 @@ impl JsonEmitter {
registry: Option<Registry>,
code_map: Rc<CodeMap>) -> JsonEmitter {
JsonEmitter {
dst: dst,
registry: registry,
dst,
registry,
cm: code_map,
}
}
@ -251,7 +251,7 @@ impl DiagnosticSpan {
Box::new(DiagnosticSpanMacroExpansion {
span: call_site,
macro_decl_name: bt.macro_decl_name,
def_site_span: def_site_span,
def_site_span,
})
});
DiagnosticSpan {
@ -262,11 +262,11 @@ impl DiagnosticSpan {
line_end: end.line,
column_start: start.col.0 + 1,
column_end: end.col.0 + 1,
is_primary: is_primary,
is_primary,
text: DiagnosticSpanLine::from_span(span, je),
suggested_replacement: suggestion.cloned(),
expansion: backtrace_step,
label: label,
label,
}
}
@ -351,7 +351,7 @@ impl DiagnosticCode {
DiagnosticCode {
code: s,
explanation: explanation,
explanation,
}
})
}