about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2016-09-04 06:48:17 -0400
committerNiko Matsakis <niko@alum.mit.edu>2016-09-06 11:18:10 -0400
commitc2ffa2f938ec3171180b8e0d4dc20bf92b3a8cfd (patch)
tree97950de78064cbdd7ef3f25307e0aecfde8844de
parentdadce2521e332a6d8f8704ce440637b8a4df7c66 (diff)
downloadrust-c2ffa2f938ec3171180b8e0d4dc20bf92b3a8cfd.tar.gz
rust-c2ffa2f938ec3171180b8e0d4dc20bf92b3a8cfd.zip
pacify the mercilous tidy
add licenses to shadow.rs
-rw-r--r--src/librustc/dep_graph/shadow.rs10
-rw-r--r--src/librustc/middle/cstore.rs4
2 files changed, 13 insertions, 1 deletions
diff --git a/src/librustc/dep_graph/shadow.rs b/src/librustc/dep_graph/shadow.rs
index e038997e0ad..f9f75d00677 100644
--- a/src/librustc/dep_graph/shadow.rs
+++ b/src/librustc/dep_graph/shadow.rs
@@ -1,3 +1,13 @@
+// Copyright 2012-2015 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.
+
 //! The "Shadow Graph" is maintained on the main thread and which
 //! tracks each message relating to the dep-graph and applies some
 //! sanity checks as they go by. If an error results, it means you get
diff --git a/src/librustc/middle/cstore.rs b/src/librustc/middle/cstore.rs
index 52645883a8b..d1722ac6f2f 100644
--- a/src/librustc/middle/cstore.rs
+++ b/src/librustc/middle/cstore.rs
@@ -430,7 +430,9 @@ impl<'tcx> CrateStore<'tcx> for DummyCrateStore {
 
     // resolve
     fn def_key(&self, def: DefId) -> hir_map::DefKey { bug!("def_key") }
-    fn relative_def_path(&self, def: DefId) -> Option<hir_map::DefPath> { bug!("relative_def_path") }
+    fn relative_def_path(&self, def: DefId) -> Option<hir_map::DefPath> {
+        bug!("relative_def_path")
+    }
     fn variant_kind(&self, def_id: DefId) -> Option<VariantKind> { bug!("variant_kind") }
     fn struct_ctor_def_id(&self, struct_def_id: DefId) -> Option<DefId>
         { bug!("struct_ctor_def_id") }