From 4d9d7bf312929ec55987b586f249c547b47140f9 Mon Sep 17 00:00:00 2001 From: est31 Date: Sat, 8 Oct 2022 15:55:15 +0200 Subject: [PATCH] Remove empty core::lazy and std::lazy PR #98165 with commits 7c360dc117d554a11f7193505da0835c4b890c6f and c1a2db3372a4d6896744919284f3287650a38ab7 has moved all of the components of these modules into different places, namely {std,core}::sync and {std,core}::cell. The empty modules remained. As they are unstable, we can simply remove them. --- library/core/src/lazy.rs | 1 - library/core/src/lib.rs | 2 -- library/std/src/lazy.rs | 1 - library/std/src/lib.rs | 3 --- 4 files changed, 7 deletions(-) delete mode 100644 library/core/src/lazy.rs delete mode 100644 library/std/src/lazy.rs diff --git a/library/core/src/lazy.rs b/library/core/src/lazy.rs deleted file mode 100644 index f8c06c3f9aedb..0000000000000 --- a/library/core/src/lazy.rs +++ /dev/null @@ -1 +0,0 @@ -//! Lazy values and one-time initialization of static data. diff --git a/library/core/src/lib.rs b/library/core/src/lib.rs index ca02ae90fdeb2..4c0a3049e75be 100644 --- a/library/core/src/lib.rs +++ b/library/core/src/lib.rs @@ -326,8 +326,6 @@ pub mod cell; pub mod char; pub mod ffi; pub mod iter; -#[unstable(feature = "once_cell", issue = "74465")] -pub mod lazy; pub mod option; pub mod panic; pub mod panicking; diff --git a/library/std/src/lazy.rs b/library/std/src/lazy.rs deleted file mode 100644 index f8c06c3f9aedb..0000000000000 --- a/library/std/src/lazy.rs +++ /dev/null @@ -1 +0,0 @@ -//! Lazy values and one-time initialization of static data. diff --git a/library/std/src/lib.rs b/library/std/src/lib.rs index a497acda4f60c..5484d9c332abd 100644 --- a/library/std/src/lib.rs +++ b/library/std/src/lib.rs @@ -529,9 +529,6 @@ pub mod process; pub mod sync; pub mod time; -#[unstable(feature = "once_cell", issue = "74465")] -pub mod lazy; - // Pull in `std_float` crate into libstd. The contents of // `std_float` are in a different repository: rust-lang/portable-simd. #[path = "../../portable-simd/crates/std_float/src/lib.rs"]