about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVirgil Palanciuc <virgilp@adobe.com>2017-10-28 22:38:15 +0300
committerVirgil Palanciuc <virgilp@adobe.com>2017-10-28 22:38:15 +0300
commitbb0049bcd21ca8c9707207de4669fadfd7362367 (patch)
tree7b21edd92772a0eaceac8f2030fec4d89d1dae66
parent304c8b1edabcd6758600a525b7aaa3505800511a (diff)
downloadrust-bb0049bcd21ca8c9707207de4669fadfd7362367.tar.gz
rust-bb0049bcd21ca8c9707207de4669fadfd7362367.zip
fixed tidy error
-rw-r--r--src/librustc/session/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc/session/mod.rs b/src/librustc/session/mod.rs
index 9254b2e3364..58e83faef90 100644
--- a/src/librustc/session/mod.rs
+++ b/src/librustc/session/mod.rs
@@ -367,8 +367,8 @@ impl Session {
                 do_method()
             },
             _ => {
-                let lint_id = lint::LintId::of(lint);
-                let id_span_message = (DiagnosticMessageId::LintId(lint_id), span, message.to_owned());
+                let lint_id = DiagnosticMessageId::LintId(lint::LintId::of(lint));
+                let id_span_message = (lint_id, span, message.to_owned());
                 let fresh = self.one_time_diagnostics.borrow_mut().insert(id_span_message);
                 if fresh {
                     do_method()