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.)

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.)
@@ -628,7 +628,7 @@ static LLVM_URL: Lazy<Url> = Lazy::new(|| {
/// Returns the path to the top-level `llvm` directory.
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

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.

1 participant