Skip to content

Commit c2ffa2f

Browse files
committed
pacify the mercilous tidy
add licenses to shadow.rs
1 parent dadce25 commit c2ffa2f

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

src/librustc/dep_graph/shadow.rs

+10
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
// Copyright 2012-2015 The Rust Project Developers. See the COPYRIGHT
2+
// file at the top-level directory of this distribution and at
3+
// http://rust-lang.org/COPYRIGHT.
4+
//
5+
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6+
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8+
// option. This file may not be copied, modified, or distributed
9+
// except according to those terms.
10+
111
//! The "Shadow Graph" is maintained on the main thread and which
212
//! tracks each message relating to the dep-graph and applies some
313
//! sanity checks as they go by. If an error results, it means you get

src/librustc/middle/cstore.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,9 @@ impl<'tcx> CrateStore<'tcx> for DummyCrateStore {
430430

431431
// resolve
432432
fn def_key(&self, def: DefId) -> hir_map::DefKey { bug!("def_key") }
433-
fn relative_def_path(&self, def: DefId) -> Option<hir_map::DefPath> { bug!("relative_def_path") }
433+
fn relative_def_path(&self, def: DefId) -> Option<hir_map::DefPath> {
434+
bug!("relative_def_path")
435+
}
434436
fn variant_kind(&self, def_id: DefId) -> Option<VariantKind> { bug!("variant_kind") }
435437
fn struct_ctor_def_id(&self, struct_def_id: DefId) -> Option<DefId>
436438
{ bug!("struct_ctor_def_id") }

0 commit comments

Comments
 (0)