rust-lang-nursery / lazy-static.rs

A small macro for defining lazy evaluated static variables in Rust.
Apache License 2.0
1.9k stars 108 forks source link

Replace `Option<T>` with `MaybeUninit<T>` #192

Closed Kixunil closed 2 years ago

Kixunil commented 2 years ago

This avoids unneeded tag in Option and addresses FIXME comment.

hniksic commented 2 years ago

Perhaps this should bump the minimally supported version from 1.27.2 to 1.36.0:

diff --git a/.travis.yml b/.travis.yml
index ae60bd2..67b5787 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,7 +1,7 @@
 language: rust
 matrix:
   include:
-    - rust: 1.27.2
+    - rust: 1.36.0
       script:
         - cargo test --tests
     - rust: stable
diff --git a/README.md b/README.md
index 5729f4e..7f43e8c 100644
--- a/README.md
+++ b/README.md
@@ -15,7 +15,7 @@ as well as anything that requires non-const function calls to be computed.

 ## Minimum supported `rustc`

-`1.27.2+`
+`1.36.0+`

 This version is explicitly tested in CI and may only be bumped in new minor versions. Any changes to the supported minimum version will be called out in the release notes.
Kixunil commented 2 years ago

Oh, I'm not sure why I didn't notice that. Perhaps "stable since 1.36" confused me?