We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a83379 commit 7f485fbCopy full SHA for 7f485fb
src/librustc_codegen_llvm/back/lto.rs
@@ -584,7 +584,7 @@ fn thin_lto(cgcx: &CodegenContext<LlvmCodegenBackend>,
584
fn equivalent_as_sets(a: &[String], b: &[String]) -> bool {
585
// cheap path: unequal lengths means cannot possibly be set equivalent.
586
if a.len() != b.len() { return false; }
587
- // fast path: before taking time to build up sorted clones, just see if the given inputs are equivant as is.
+ // fast path: before sorting, check if inputs are equivalent as is.
588
if a == b { return true; }
589
// slow path: compare sorted contents
590
let mut a: Vec<&str> = a.iter().map(|s| s.as_str()).collect();
0 commit comments