Skip to content

Rollup of 9 pull requests #114481

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

Merged
merged 20 commits into from
Aug 4, 2023
Merged
Changes from 2 commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
f74eee2
[rustc_span][perf] Remove unnecessary string joins and allocs.
ttsugriy Aug 1, 2023
383b715
bump parking_lot 0.11 to 0.12
klensy Aug 3, 2023
3635b48
Fix wrong span for trait selection failure error reporting
chenyukang Jul 22, 2023
cde8f06
enable suggest convert to slice for binary operation
chenyukang Aug 3, 2023
5706be1
Improve spans for indexing expressions
Noratrieb Aug 3, 2023
97aa4ba
Fix unwrap on None
sebastiantoh Aug 4, 2023
3345077
interpret: add mplace_to_ref helper method
RalfJung Aug 4, 2023
e370095
replace few explicit use of parking_lot with rustc_data_structures::s…
klensy Aug 3, 2023
553508c
Reword confusable idents lint
estebank Aug 4, 2023
3d25b5c
Fix ICE failed to get layout for ReferencesError
chenyukang Aug 4, 2023
edc3e26
Account for `Rc` and `Arc` when suggesting to clone
estebank Aug 4, 2023
5054e41
Rollup merge of #113945 - chenyukang:yukang-fix-113447-slice-2, r=cjg…
matthiaskrgr Aug 4, 2023
23e86f6
Rollup merge of #114351 - ttsugriy:sort-by-words, r=fee1-dead
matthiaskrgr Aug 4, 2023
4669905
Rollup merge of #114418 - klensy:parking_lot, r=oli-obk
matthiaskrgr Aug 4, 2023
99e4127
Rollup merge of #114434 - Nilstrieb:indexing-spans, r=est31
matthiaskrgr Aug 4, 2023
a0fd747
Rollup merge of #114450 - chenyukang:yukang-fix-114435, r=compiler-er…
matthiaskrgr Aug 4, 2023
b7bfffd
Rollup merge of #114461 - sebastiantoh:issue-114423, r=estebank
matthiaskrgr Aug 4, 2023
5e42a22
Rollup merge of #114462 - RalfJung:mplace_to_ref, r=oli-obk
matthiaskrgr Aug 4, 2023
cd5317a
Rollup merge of #114472 - estebank:issue-76140, r=compiler-errors
matthiaskrgr Aug 4, 2023
35b2713
Rollup merge of #114477 - estebank:arc-clone, r=compiler-errors
matthiaskrgr Aug 4, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions compiler/rustc_span/src/edit_distance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,9 @@ fn find_match_by_sorted_words(iter_names: &[Symbol], lookup: &str) -> Option<Sym
})
}

fn sort_by_words(name: &str) -> String {
fn sort_by_words(name: &str) -> Vec<&str> {
let mut split_words: Vec<&str> = name.split('_').collect();
// We are sorting primitive &strs and can use unstable sort here.
split_words.sort_unstable();
split_words.join("_")
split_words
}