about summary refs log tree commit diff
path: root/src/libsyntax/diagnostics/plugin.rs
diff options
context:
space:
mode:
authorZack M. Davis <code@zackmdavis.net>2017-08-06 22:54:09 -0700
committerZack M. Davis <code@zackmdavis.net>2017-08-15 15:29:17 -0700
commit1b6c9605e41b7c7dc23e0e6f633f05912d0463dd (patch)
tree2482313e8e0761fd8e3ecddc8baad7bf96689b07 /src/libsyntax/diagnostics/plugin.rs
parent82be83cf744611a016fb09ae1afbffc04b3ed2e1 (diff)
downloadrust-1b6c9605e41b7c7dc23e0e6f633f05912d0463dd.tar.gz
rust-1b6c9605e41b7c7dc23e0e6f633f05912d0463dd.zip
use field init shorthand EVERYWHERE
Like #43008 (f668999), but _much more aggressive_.
Diffstat (limited to 'src/libsyntax/diagnostics/plugin.rs')
-rw-r--r--src/libsyntax/diagnostics/plugin.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/diagnostics/plugin.rs b/src/libsyntax/diagnostics/plugin.rs
index 855f4cd3557..5224f52c496 100644
--- a/src/libsyntax/diagnostics/plugin.rs
+++ b/src/libsyntax/diagnostics/plugin.rs
@@ -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,
         })
     ]))