]> git.lizzy.rs Git - rust.git/blobdiff - src/libsyntax/show_span.rs
Rollup merge of #57699 - euclio:applicability-ify, r=petrochenkov
[rust.git] / src / libsyntax / show_span.rs
index 263a4f13c1b290b69d4ba0746b8a60493147174c..4228e0c87ce33a13c0b161af0e7b10960e36d8a2 100644 (file)
@@ -1,13 +1,3 @@
-// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
-// file at the top-level directory of this distribution and at
-// http://rust-lang.org/COPYRIGHT.
-//
-// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
-// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
-// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
-// option. This file may not be copied, modified, or distributed
-// except according to those terms.
-
 //! Span debugger
 //!
 //! This module shows spans for all expressions in the crate
@@ -79,8 +69,8 @@ pub fn run(span_diagnostic: &errors::Handler,
         None => return
     };
     let mut v = ShowSpanVisitor {
-        span_diagnostic: span_diagnostic,
-        mode: mode,
+        span_diagnostic,
+        mode,
     };
     visit::walk_crate(&mut v, krate);
 }