Skip to content

Conversation

bolinfest
Copy link
Collaborator

@bolinfest bolinfest commented Aug 19, 2025

Codex created this PR from the following prompt:

upgrade this entire repo to Rust 1.89. Note that this requires updating codex-rs/rust-toolchain.toml as well as the workflows in .github/. Make sure that things are "clippy clean" as this change will likely uncover new Clippy errors. just fmt and cargo clippy --tests are sufficient to check for correctness

Note this modifies a lot of lines because it folds nested if statements using &&.


Stack created with Sapling. Best reviewed with ReviewStack.

out.extend_from_slice(&commands[idx + 1..]);
return Some(out);
}
}) && commands
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm in favor of standardization but some of these feel a bit complicated

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Understood, though it is a losing battle against Clippy (unless we choose to disable this rule?). I think, in general, avoiding the nested ifs is for the best.

@@ -309,7 +309,7 @@ where
}

/// Get a Frame object which provides a consistent view into the terminal state for rendering.
pub fn get_frame(&mut self) -> Frame {
pub fn get_frame(&mut self) -> Frame<'_> {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unrelated lifetime change? Or is this newly required to be explicit?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bolinfest added a commit that referenced this pull request Aug 19, 2025
)

The `ubuntu-24.04 - x86_64-unknown-linux-gnu` build is failing with `No
space left on device` on #2465, so let's get this in first, which should
help.

Note that `cargo check` should be faster and use less disk than `cargo
build` because it does not write out the object files.
@bolinfest bolinfest merged commit 50c48e8 into main Aug 19, 2025
25 of 27 checks passed
@bolinfest bolinfest deleted the pr2465 branch August 19, 2025 20:22
@github-actions github-actions bot locked and limited conversation to collaborators Aug 19, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants