about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAndrew Cann <shum@canndrew.org>2017-02-05 22:29:06 +0800
committerAndrew Cann <shum@canndrew.org>2017-02-05 22:29:06 +0800
commit7135d0ab944f0bfa5ef4cecfd1dfdd8a79647c53 (patch)
treec3d22355f7162ebf8a9ce87d4b786429b6279fc4 /src
parent0dbb1e4fee5218b338ed1c8307665342c2b99e4f (diff)
downloadrust-7135d0ab944f0bfa5ef4cecfd1dfdd8a79647c53.tar.gz
rust-7135d0ab944f0bfa5ef4cecfd1dfdd8a79647c53.zip
Fix make tidy
Diffstat (limited to 'src')
-rw-r--r--src/librustc_const_eval/check_match.rs5
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 => {