diff options
| author | Virgil Palanciuc <virgilp@adobe.com> | 2017-10-28 22:38:15 +0300 |
|---|---|---|
| committer | Virgil Palanciuc <virgilp@adobe.com> | 2017-10-28 22:38:15 +0300 |
| commit | bb0049bcd21ca8c9707207de4669fadfd7362367 (patch) | |
| tree | 7b21edd92772a0eaceac8f2030fec4d89d1dae66 | |
| parent | 304c8b1edabcd6758600a525b7aaa3505800511a (diff) | |
| download | rust-bb0049bcd21ca8c9707207de4669fadfd7362367.tar.gz rust-bb0049bcd21ca8c9707207de4669fadfd7362367.zip | |
fixed tidy error
| -rw-r--r-- | src/librustc/session/mod.rs | 4 |
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() |
