Skip to content

Commit f410bc7

Browse files
committed
tidy: Remove submodules from edition exception list
Both style-check and date-check are now on the 2021 edition, and this commit also updates their repositories' submodules.
1 parent 00d5e42 commit f410bc7

File tree

3 files changed

+3
-11
lines changed

3 files changed

+3
-11
lines changed

src/tools/tidy/src/edition.rs

+1-9
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,13 @@ pub fn check(path: &Path, bad: &mut bool) {
1818
&mut |path| super::filter_dirs(path) || path.ends_with("src/test"),
1919
&mut |entry, contents| {
2020
let file = entry.path();
21-
let filestr = file.to_string_lossy().replace("\\", "/");
2221
let filename = file.file_name().unwrap();
2322
if filename != "Cargo.toml" {
2423
return;
2524
}
2625

2726
// Library crates are not yet ready to migrate to 2021.
28-
//
29-
// The reference and rustc-dev-guide are submodules, so are left at
30-
// 2018 for now. They should be removed from this exception list
31-
// when bumped.
32-
if path.components().any(|c| c.as_os_str() == "library")
33-
|| filestr.contains("src/doc/reference/style-check/Cargo.toml")
34-
|| filestr.contains("src/doc/rustc-dev-guide/ci/date-check/Cargo.toml")
35-
{
27+
if path.components().any(|c| c.as_os_str() == "library") {
3628
let has = contents.lines().any(is_edition_2018);
3729
if !has {
3830
tidy_error!(

0 commit comments

Comments
 (0)