Skip to content

Conversation

@geofft
Copy link
Collaborator

@geofft geofft commented Aug 31, 2025

This is from cargo 1.88, since 1.89 pulls in let-chains, and whatever version of Rust is in GitHub CI doesn't support them last time I tried. (We should upgrade it at some point, though, since our Rust usage is all internal.)

pub async fn bootstrap_llvm() -> Result<PathBuf> {
let url = &*LLVM_URL;
let filename = url.path_segments().unwrap().last().unwrap();
let filename = url.path_segments().unwrap().next_back().unwrap();
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

"warning: called Iterator::last on a DoubleEndedIterator; this will needlessly iterate the entire iterator"

https://rust-lang.github.io/rust-clippy/master/index.html#double_ended_iterator_last

This is from cargo 1.88, since 1.89 pulls in let-chains, and whatever
version of Rust is in GitHub CI doesn't support them last time I tried.
(We should upgrade it at some point, though, since our Rust usage is all
internal.)
@zanieb zanieb merged commit 0fa18ac into astral-sh:main Sep 3, 2025
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants