Skip to content

Commit 8f707c3

Browse files
committed
Remove krate!.
1 parent 90c456e commit 8f707c3

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/librustc/ty/query/plumbing.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1202,10 +1202,6 @@ pub fn force_from_dep_node(tcx: TyCtxt<'_>, dep_node: &DepNode) -> bool {
12021202
}
12031203
};
12041204

1205-
macro_rules! krate {
1206-
() => { (def_id!()).krate }
1207-
};
1208-
12091205
macro_rules! force_ex {
12101206
($tcx:expr, $query:ident, $key:expr) => {
12111207
{
@@ -1236,7 +1232,7 @@ pub fn force_from_dep_node(tcx: TyCtxt<'_>, dep_node: &DepNode) -> bool {
12361232
bug!("force_from_dep_node: encountered {:?}", dep_node)
12371233
}
12381234

1239-
DepKind::Analysis => { force_ex!(tcx, analysis, krate!()); }
1235+
DepKind::Analysis => { force_ex!(tcx, analysis, def_id!().krate); }
12401236
);
12411237

12421238
true

0 commit comments

Comments
 (0)