Skip to content

Commit b2041a6

Browse files
authored
Remove lints section from manifests (#9)
1 parent 43132b6 commit b2041a6

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/main.rs

+13
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ fn main() {
3434
dir: "compiler/rustc_abi".to_owned(),
3535
in_tree_feature_name: "nightly".to_owned(),
3636
},
37+
RustcApCrate {
38+
name: "rustc_hashes".to_owned(),
39+
dir: "compiler/rustc_hashes".to_owned(),
40+
in_tree_feature_name: "".to_owned(),
41+
},
3742
RustcApCrate {
3843
name: "rustc_lexer".to_owned(),
3944
dir: "compiler/rustc_lexer".to_owned(),
@@ -54,6 +59,11 @@ fn main() {
5459
dir: "compiler/rustc_index".to_owned(),
5560
in_tree_feature_name: "nightly".to_owned(),
5661
},
62+
RustcApCrate {
63+
name: "rustc_index_macros".to_owned(),
64+
dir: "compiler/rustc_index_macros".to_owned(),
65+
in_tree_feature_name: "".to_owned(),
66+
},
5767
];
5868

5969
eprintln!("learning about the dependency graph");
@@ -167,6 +177,9 @@ fn get_rustc_packages(target_crates: &[RustcApCrate], dst: &Path) -> Vec<RustcPa
167177
let toml = std::fs::read_to_string(&path).unwrap();
168178
let mut toml = toml.parse::<toml_edit::Document>().unwrap();
169179

180+
// remove "lints.workspace = true" because we don't have a workspace
181+
toml.remove("lints");
182+
170183
(|| {
171184
let item = toml
172185
.get_mut("features")?

0 commit comments

Comments
 (0)