Where can std::sync::LazyLock
be used already?
#1860
-
8e96ed3 (#1854) changed some occurrences of
Is it okay for the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Thanks for bringing this up. I kind of rushed this in yesterday and relied on auto-fixes as well to the point where I barely reviewed the result. My expectation is that the MSRV check would catch issues, and also that Maybe that's something to rethink though, as we have test-utilities on the one hand and the CLI on the other. Test-utilities are usually needed to run tests of crates with a lower MSRV, so using more recent features there would mean running tests needs a more recent compiler. What that in mind, maybe that LazyLock change should just be rolled back? |
Beta Was this translation helpful? Give feedback.
Thanks for bringing this up. I kind of rushed this in yesterday and relied on auto-fixes as well to the point where I barely reviewed the result.
My expectation is that the MSRV check would catch issues, and also that
clippy
respects the rust-version field in the Cargo manifest. Probably that's the reason it only replaced theLazy
occurrences where it did, places that aren't bound by the MSRV (to my mind).Maybe that's something to rethink though, as we have test-utilities on the one hand and the CLI on the other. Test-utilities are usually needed to run tests of crates with a lower MSRV, so using more recent features there would mean running tests needs a more recent compiler.
Using more…