Skip to content

Commit 0fdaaad

Browse files
committed
Remove the check_mod_intrinsics query
1 parent cb886cc commit 0fdaaad

File tree

6 files changed

+3
-17
lines changed

6 files changed

+3
-17
lines changed

compiler/rustc_interface/src/passes.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -937,7 +937,6 @@ fn analysis(tcx: TyCtxt<'_>, (): ()) -> Result<()> {
937937
//
938938
// maybe move the check to a MIR pass?
939939
tcx.ensure().check_mod_liveness(module);
940-
tcx.ensure().check_mod_intrinsics(module);
941940
});
942941
});
943942
}

compiler/rustc_middle/src/query/mod.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -804,10 +804,6 @@ rustc_queries! {
804804
desc { |tcx| "checking privacy in {}", describe_as_module(key, tcx) }
805805
}
806806

807-
query check_mod_intrinsics(key: LocalDefId) -> () {
808-
desc { |tcx| "checking intrinsics in {}", describe_as_module(key, tcx) }
809-
}
810-
811807
query check_mod_liveness(key: LocalDefId) -> () {
812808
desc { |tcx| "checking liveness of variables in {}", describe_as_module(key, tcx) }
813809
}

compiler/rustc_passes/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ mod diagnostic_items;
3030
pub mod entry;
3131
pub mod hir_id_validator;
3232
pub mod hir_stats;
33-
mod intrinsicck;
3433
mod lang_items;
3534
pub mod layout_test;
3635
mod lib_features;
@@ -54,7 +53,6 @@ pub fn provide(providers: &mut Providers) {
5453
loops::provide(providers);
5554
naked_functions::provide(providers);
5655
liveness::provide(providers);
57-
intrinsicck::provide(providers);
5856
reachable::provide(providers);
5957
stability::provide(providers);
6058
upvars::provide(providers);

compiler/rustc_typeck/src/check/intrinsicck.rs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,16 @@ use rustc_data_structures::stable_set::FxHashSet;
44
use rustc_errors::struct_span_err;
55
use rustc_hir as hir;
66
use rustc_hir::def::{DefKind, Res};
7-
use rustc_hir::def_id::{DefId, LocalDefId};
7+
use rustc_hir::def_id::DefId;
88
use rustc_hir::intravisit::{self, Visitor};
99
use rustc_index::vec::Idx;
1010
use rustc_middle::ty::layout::{LayoutError, SizeSkeleton};
11-
use rustc_middle::ty::query::Providers;
1211
use rustc_middle::ty::{self, FloatTy, IntTy, Ty, TyCtxt, UintTy};
1312
use rustc_session::lint;
1413
use rustc_span::{sym, Span, Symbol, DUMMY_SP};
1514
use rustc_target::abi::{Pointer, VariantIdx};
1615
use rustc_target::asm::{InlineAsmRegOrRegClass, InlineAsmType};
1716

18-
fn check_mod_intrinsics(tcx: TyCtxt<'_>, module_def_id: LocalDefId) {
19-
tcx.hir().deep_visit_item_likes_in_module(module_def_id, &mut ItemVisitor { tcx });
20-
}
21-
22-
pub fn provide(providers: &mut Providers) {
23-
*providers = Providers { check_mod_intrinsics, ..*providers };
24-
}
25-
2617
struct ItemVisitor<'tcx> {
2718
tcx: TyCtxt<'tcx>,
2819
}

compiler/rustc_typeck/src/check/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ mod gather_locals;
8181
mod generator_interior;
8282
mod inherited;
8383
pub mod intrinsic;
84+
mod intrinsicck;
8485
pub mod method;
8586
mod op;
8687
mod pat;

compiler/rustc_typeck/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ This API is completely unstable and subject to change.
6363
#![feature(hash_drain_filter)]
6464
#![feature(if_let_guard)]
6565
#![feature(is_sorted)]
66+
#![feature(iter_intersperse)]
6667
#![feature(label_break_value)]
6768
#![feature(let_chains)]
6869
#![feature(let_else)]

0 commit comments

Comments
 (0)