Skip to content

Commit 753f61e

Browse files
committed
Perform manual fixups
1 parent 993e594 commit 753f61e

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/librustc/hir/map/mod.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ use dep_graph::{DepGraph, DepNode, DepKind, DepNodeIndex};
1919

2020
use hir::def_id::{CRATE_DEF_INDEX, DefId, LocalDefId, DefIndexAddressSpace};
2121

22+
use middle::cstore::CrateStore;
23+
2224
use syntax::abi::Abi;
2325
use syntax::ast::{self, Name, NodeId, CRATE_NODE_ID};
2426
use syntax::codemap::Spanned;
@@ -1136,8 +1138,9 @@ impl Named for StructField { fn name(&self) -> Name { self.name } }
11361138
impl Named for TraitItem { fn name(&self) -> Name { self.name } }
11371139
impl Named for ImplItem { fn name(&self) -> Name { self.name } }
11381140

1141+
11391142
pub fn map_crate<'hir>(sess: &::session::Session,
1140-
cstore: &dyn ::middle::cstore::CrateStore,
1143+
cstore: &dyn CrateStore,
11411144
forest: &'hir mut Forest,
11421145
definitions: &'hir Definitions)
11431146
-> Map<'hir> {

src/librustc/session/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ macro_rules! hash_option {
341341
($opt_name:ident, $opt_expr:expr, $sub_hashes:expr, [UNTRACKED]) => ({});
342342
($opt_name:ident, $opt_expr:expr, $sub_hashes:expr, [TRACKED]) => ({
343343
if $sub_hashes.insert(stringify!($opt_name),
344-
$opt_expr as &dyn dep_tracking::DepTrackingHashHashHashHashHashHashHashHashHashHashHashHashHashHashHashHashHashHashHashHashHashHashHashHashHashHashHashHashHashHashHashHashHashHashHashHashHashHashHashHashHashHashHashHashHashHashHashHashHashHashHashHashHashHashHashHashHashHashHashHashHashHashHashHashHashHashHashHashHashHashHashHashHashHash).is_some() {
344+
$opt_expr as &dyn dep_tracking::DepTrackingHash).is_some() {
345345
bug!("Duplicate key in CLI DepTrackingHash: {}", stringify!($opt_name))
346346
}
347347
});

0 commit comments

Comments
 (0)