Skip to content

Commit 9908a87

Browse files
committed
Move to new crate rustc_ty.
1 parent 6d5170c commit 9908a87

File tree

6 files changed

+54
-2
lines changed

6 files changed

+54
-2
lines changed

Cargo.lock

+12
Original file line numberDiff line numberDiff line change
@@ -3642,6 +3642,7 @@ dependencies = [
36423642
"rustc_span",
36433643
"rustc_target",
36443644
"rustc_traits",
3645+
"rustc_ty",
36453646
"rustc_typeck",
36463647
"serialize",
36473648
"smallvec 1.0.0",
@@ -3918,6 +3919,17 @@ dependencies = [
39183919
"syntax",
39193920
]
39203921

3922+
[[package]]
3923+
name = "rustc_ty"
3924+
version = "0.0.0"
3925+
dependencies = [
3926+
"log",
3927+
"rustc",
3928+
"rustc_data_structures",
3929+
"rustc_hir",
3930+
"rustc_span",
3931+
]
3932+
39213933
[[package]]
39223934
name = "rustc_typeck"
39233935
version = "0.0.0"

src/librustc_interface/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ rustc_errors = { path = "../librustc_errors" }
3939
rustc_plugin_impl = { path = "../librustc_plugin_impl" }
4040
rustc_privacy = { path = "../librustc_privacy" }
4141
rustc_resolve = { path = "../librustc_resolve" }
42+
rustc_ty = { path = "../librustc_ty" }
4243
tempfile = "3.0.5"
4344
once_cell = "1"
4445

src/librustc_passes/lib.rs

-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ pub mod loops;
3131
mod reachable;
3232
mod region;
3333
pub mod stability;
34-
mod ty;
3534

3635
pub fn provide(providers: &mut Providers<'_>) {
3736
check_const::provide(providers);
@@ -44,5 +43,4 @@ pub fn provide(providers: &mut Providers<'_>) {
4443
reachable::provide(providers);
4544
region::provide(providers);
4645
stability::provide(providers);
47-
ty::provide(providers);
4846
}

src/librustc_ty/Cargo.toml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[package]
2+
authors = ["The Rust Project Developers"]
3+
name = "rustc_ty"
4+
version = "0.0.0"
5+
edition = "2018"
6+
7+
[lib]
8+
name = "rustc_ty"
9+
path = "lib.rs"
10+
11+
[dependencies]
12+
log = "0.4"
13+
rustc = { path = "../librustc" }
14+
rustc_data_structures = { path = "../librustc_data_structures" }
15+
rustc_hir = { path = "../librustc_hir" }
16+
rustc_span = { path = "../librustc_span" }

src/librustc_ty/lib.rs

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
//! Various checks
2+
//!
3+
//! # Note
4+
//!
5+
//! This API is completely unstable and subject to change.
6+
7+
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/")]
8+
#![feature(bool_to_option)]
9+
#![feature(in_band_lifetimes)]
10+
#![feature(nll)]
11+
#![feature(slice_patterns)]
12+
#![recursion_limit = "256"]
13+
14+
#[macro_use]
15+
extern crate rustc;
16+
#[macro_use]
17+
extern crate log;
18+
19+
use rustc::ty::query::Providers;
20+
21+
mod ty;
22+
23+
pub fn provide(providers: &mut Providers<'_>) {
24+
ty::provide(providers);
25+
}
File renamed without changes.

0 commit comments

Comments
 (0)