-
-
Notifications
You must be signed in to change notification settings - Fork 370
Bump Rust Edition to 2024 and MSRV to 1.85 #1785
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: clux <[email protected]>
Signed-off-by: clux <[email protected]>
Signed-off-by: clux <[email protected]>
Signed-off-by: clux <[email protected]>
Signed-off-by: clux <[email protected]>
Signed-off-by: clux <[email protected]>
Signed-off-by: clux <[email protected]>
Signed-off-by: clux <[email protected]>
Signed-off-by: clux <[email protected]>
Signed-off-by: clux <[email protected]>
fixes example builds. Signed-off-by: clux <[email protected]>
possibly new version of tarpaulin passing on more flags to its build Signed-off-by: clux <[email protected]>
Signed-off-by: clux <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1785 +/- ##
=======================================
- Coverage 76.6% 75.1% -1.4%
=======================================
Files 84 84
Lines 7909 7789 -120
=======================================
- Hits 6052 5849 -203
- Misses 1857 1940 +83
🚀 New features to boost your workflow:
|
|
actually green! lint is intentional for now (k8s-openapi pinned to git ref). Updated post above. |
Signed-off-by: clux <[email protected]>
nightkr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
I went through the drop order warnings you mention, and none of them should be relevant to us; they're just plain old data that happen to contain heap-allocated stuff.
Updates to Edition 2024 and bumps MSRV to 1.85 (minimum for Edition 2024).
✔️ Disambiguate
IntoFutureStarted complaining in 2024 due to new addition to the prelude, we basically got this error;
compiler output
Have pinned to the old trait for now.
✔️ Impl Trait
This requires fixing the return-position
impl Traitissue in Rust 2024 in oneversion.rswhere weimpl Ordfrom a fn. It is documented in more detail on the edition guide/RPIT. Possibly it is interacting with tail expression temporary scope.compiler output
Added
use<>thingy on this fn and the other fn and a similar case in remote_command. Had to also add this to fns used by only examples such as the more esoteric streaming logs/websocket stuff.Small ❓ uncertainty here; there may be more cases as many of these did not show up until i built examples. It's possible we have some untested things that will be affected by this. Might need to do a PSA for it pre-release.
❓ Drop Order Warnings
Warnings that applies to 5 things;
self.queue.poll_expired(cx)in scheduler.rs:119 and scheduler.rs:137self.ready_tx.take()in store.rs:133step_trampolined(api, config, state).awaitin watcher.rs:666while let Some(event) = stream.next().awaitin reflector/mod.rs:124 and :123store.get(&request.obj_ref)in controller/mod.rs:388Not sure if this is serious. Maybe this requires extra testing. You only get this output if you try to do
cargo fix --editionnot if you manually bump. Getting this type of output basically:compiler output
✔️ Watcher Lifetime Conflicts
Some confusing lifetime conflicts seemingly on a simple &str..
compiler output
Actually turned out to be another RPIT issue in disguise as a result of us doing return
impl Streamin a bunch of places. Fixed in client with some help from nat.✔️ Reserved
genAfter being unblocked by schemars 1.0 (which removed the
genexport) it was only2 variables used in internal functions using the newly reserved keyword - fixed in runtime tests
✔️ Tarpaulin
Also trying to unpin tarpaulin since the upstream bug via #1657 seems fixed.
Have unpinned the rust version and bumped tarpaulin
Follow-up fixes from the bump has been to make sure the trybuild tests in derive allow missing docs (which needed an output update).
7 lines down but within what to expect from 4 breaking versions of tarpaulin imo.