From b656384d8398ec03ce5c40056252f818d6c44761 Mon Sep 17 00:00:00 2001 From: Lucas Kent Date: Fri, 17 Dec 2021 20:08:36 +1100 Subject: Update stdlib to the 2021 edition --- src/tools/tidy/src/edition.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/tools') diff --git a/src/tools/tidy/src/edition.rs b/src/tools/tidy/src/edition.rs index 3f59fefd041..f610dbd806a 100644 --- a/src/tools/tidy/src/edition.rs +++ b/src/tools/tidy/src/edition.rs @@ -23,8 +23,10 @@ pub fn check(path: &Path, bad: &mut bool) { return; } - // Library crates are not yet ready to migrate to 2021. - if path.components().any(|c| c.as_os_str() == "library") { + // Not all library crates are ready to migrate to 2021. + if file.components().any(|c| c.as_os_str() == "library") + && file.components().all(|c| c.as_os_str() != "std") + { let has = contents.lines().any(is_edition_2018); if !has { tidy_error!( -- cgit 1.4.1-3-g733a5