use field init shorthand EVERYWHERE
Like #43008 (f668999
), but _much more aggressive_.
This commit is contained in:
parent
82be83cf74
commit
1b6c9605e4
281 changed files with 1376 additions and 1376 deletions
|
@ -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,
|
||||
})
|
||||
]))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue