diff options
| author | Andrew Cann <shum@canndrew.org> | 2017-02-05 22:29:06 +0800 |
|---|---|---|
| committer | Andrew Cann <shum@canndrew.org> | 2017-02-05 22:29:06 +0800 |
| commit | 7135d0ab944f0bfa5ef4cecfd1dfdd8a79647c53 (patch) | |
| tree | c3d22355f7162ebf8a9ce87d4b786429b6279fc4 /src | |
| parent | 0dbb1e4fee5218b338ed1c8307665342c2b99e4f (diff) | |
| download | rust-7135d0ab944f0bfa5ef4cecfd1dfdd8a79647c53.tar.gz rust-7135d0ab944f0bfa5ef4cecfd1dfdd8a79647c53.zip | |
Fix make tidy
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc_const_eval/check_match.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/librustc_const_eval/check_match.rs b/src/librustc_const_eval/check_match.rs index f53d451152f..6f33b4fad76 100644 --- a/src/librustc_const_eval/check_match.rs +++ b/src/librustc_const_eval/check_match.rs @@ -310,8 +310,9 @@ fn check_arms<'a, 'tcx>(cx: &mut MatchCheckCtxt<'a, 'tcx>, let mut diagnostic = Diagnostic::new(Level::Warning, "unreachable pattern"); diagnostic.set_span(pat.span); - cx.tcx.sess.add_lint_diagnostic(lint::builtin::UNREACHABLE_PATTERNS, - hir_pat.id, diagnostic); + cx.tcx.sess.add_lint_diagnostic( + lint::builtin::UNREACHABLE_PATTERNS, + hir_pat.id, diagnostic); }, // The arm with the wildcard pattern. 1 => { |
