Skip to content

Commit 0144a97

Browse files
committed
Trim dependencies and features.
1 parent 1fcdc52 commit 0144a97

File tree

6 files changed

+4
-27
lines changed

6 files changed

+4
-27
lines changed

Cargo.lock

-7
Original file line numberDiff line numberDiff line change
@@ -3774,19 +3774,15 @@ dependencies = [
37743774
name = "rustc_infer"
37753775
version = "0.0.0"
37763776
dependencies = [
3777-
"fmt_macros",
37783777
"graphviz",
37793778
"log",
37803779
"rustc",
37813780
"rustc_ast",
3782-
"rustc_attr",
37833781
"rustc_data_structures",
3784-
"rustc_error_codes",
37853782
"rustc_errors",
37863783
"rustc_hir",
37873784
"rustc_index",
37883785
"rustc_macros",
3789-
"rustc_session",
37903786
"rustc_span",
37913787
"rustc_target",
37923788
"smallvec 1.0.0",
@@ -4044,7 +4040,6 @@ dependencies = [
40444040
"rustc_expand",
40454041
"rustc_feature",
40464042
"rustc_hir",
4047-
"rustc_infer",
40484043
"rustc_metadata",
40494044
"rustc_session",
40504045
"rustc_span",
@@ -4129,13 +4124,11 @@ name = "rustc_trait_selection"
41294124
version = "0.0.0"
41304125
dependencies = [
41314126
"fmt_macros",
4132-
"graphviz",
41334127
"log",
41344128
"rustc",
41354129
"rustc_ast",
41364130
"rustc_attr",
41374131
"rustc_data_structures",
4138-
"rustc_error_codes",
41394132
"rustc_errors",
41404133
"rustc_hir",
41414134
"rustc_index",

src/librustc_infer/Cargo.toml

-4
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,14 @@ path = "lib.rs"
1010
doctest = false
1111

1212
[dependencies]
13-
fmt_macros = { path = "../libfmt_macros" }
1413
graphviz = { path = "../libgraphviz" }
1514
log = { version = "0.4", features = ["release_max_level_info", "std"] }
16-
rustc_attr = { path = "../librustc_attr" }
1715
rustc = { path = "../librustc" }
1816
rustc_data_structures = { path = "../librustc_data_structures" }
1917
rustc_errors = { path = "../librustc_errors" }
20-
rustc_error_codes = { path = "../librustc_error_codes" }
2118
rustc_hir = { path = "../librustc_hir" }
2219
rustc_index = { path = "../librustc_index" }
2320
rustc_macros = { path = "../librustc_macros" }
24-
rustc_session = { path = "../librustc_session" }
2521
rustc_span = { path = "../librustc_span" }
2622
rustc_target = { path = "../librustc_target" }
2723
smallvec = { version = "1.0", features = ["union", "may_dangle"] }

src/librustc_infer/lib.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
//! This crates defines the trait resolution method and the type inference engine.
1+
//! This crates defines the type inference engine.
22
//!
3-
//! - **Traits.** Trait resolution is implemented in the `traits` module.
43
//! - **Type inference.** The type inference code can be found in the `infer` module;
54
//! this code handles low-level equality and subtyping operations. The
65
//! type check pass in the compiler is found in the `librustc_typeck` crate.
@@ -17,12 +16,11 @@
1716
#![feature(bool_to_option)]
1817
#![feature(box_patterns)]
1918
#![feature(box_syntax)]
20-
#![feature(drain_filter)]
2119
#![feature(never_type)]
2220
#![feature(range_is_empty)]
2321
#![feature(in_band_lifetimes)]
2422
#![feature(crate_visibility_modifier)]
25-
#![recursion_limit = "512"]
23+
#![recursion_limit = "512"] // For rustdoc
2624

2725
#[macro_use]
2826
extern crate rustc_macros;

src/librustc_resolve/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ rustc_errors = { path = "../librustc_errors" }
2424
rustc_expand = { path = "../librustc_expand" }
2525
rustc_feature = { path = "../librustc_feature" }
2626
rustc_hir = { path = "../librustc_hir" }
27-
rustc_infer = { path = "../librustc_infer" }
2827
rustc_metadata = { path = "../librustc_metadata" }
2928
rustc_session = { path = "../librustc_session" }
3029
rustc_span = { path = "../librustc_span" }

src/librustc_trait_selection/Cargo.toml

-2
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,12 @@ doctest = false
1111

1212
[dependencies]
1313
fmt_macros = { path = "../libfmt_macros" }
14-
graphviz = { path = "../libgraphviz" }
1514
log = { version = "0.4", features = ["release_max_level_info", "std"] }
1615
rustc_attr = { path = "../librustc_attr" }
1716
rustc = { path = "../librustc" }
1817
rustc_ast = { path = "../librustc_ast" }
1918
rustc_data_structures = { path = "../librustc_data_structures" }
2019
rustc_errors = { path = "../librustc_errors" }
21-
rustc_error_codes = { path = "../librustc_error_codes" }
2220
rustc_hir = { path = "../librustc_hir" }
2321
rustc_index = { path = "../librustc_index" }
2422
rustc_infer = { path = "../librustc_infer" }

src/librustc_trait_selection/lib.rs

+2-9
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1-
//! This crates defines the trait resolution method and the type inference engine.
1+
//! This crates defines the trait resolution method.
22
//!
33
//! - **Traits.** Trait resolution is implemented in the `traits` module.
4-
//! - **Type inference.** The type inference code can be found in the `infer` module;
5-
//! this code handles low-level equality and subtyping operations. The
6-
//! type check pass in the compiler is found in the `librustc_typeck` crate.
74
//!
85
//! For more information about how rustc works, see the [rustc guide].
96
//!
@@ -15,14 +12,10 @@
1512
1613
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/")]
1714
#![feature(bool_to_option)]
18-
#![feature(box_patterns)]
19-
#![feature(box_syntax)]
2015
#![feature(drain_filter)]
21-
#![feature(never_type)]
22-
#![feature(range_is_empty)]
2316
#![feature(in_band_lifetimes)]
2417
#![feature(crate_visibility_modifier)]
25-
#![recursion_limit = "512"]
18+
#![recursion_limit = "512"] // For rustdoc
2619

2720
#[macro_use]
2821
extern crate rustc_macros;

0 commit comments

Comments
 (0)