1
Fork 0

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

@ -133,7 +133,7 @@ pub fn expand_register_diagnostic<'cx>(ecx: &'cx mut ExtCtxt,
// Add the error to the map.
with_registered_diagnostics(|diagnostics| {
let info = ErrorInfo {
description: description,
description,
use_site: None
};
if diagnostics.insert(code.name, info).is_some() {
@ -235,7 +235,7 @@ pub fn expand_build_diagnostic_array<'cx>(ecx: &'cx mut ExtCtxt,
expr,
),
vis: ast::Visibility::Public,
span: span,
span,
tokens: None,
})
]))