Skip to content
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

Rollup of 10 pull requests #121003

Merged
merged 24 commits into from
Feb 13, 2024
Merged
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
0c1b273
Provide more suggestions on invalid equality where bounds
estebank Feb 7, 2024
535c643
Do not leave stray commas after applying suggestion
estebank Feb 8, 2024
2d73597
Bail out of drop elaboration when encountering error types
oli-obk Feb 8, 2024
730560b
docs: mention round-to-even in precision formatting
tristan-f-r Feb 12, 2024
718b304
llvm-wrapper: adapt for LLVM API change: Add support for EXPORTAS nam…
zmodem Feb 12, 2024
30f6665
style: fmt
tristan-f-r Feb 12, 2024
142ab9e
iterator.rs: remove "Basic usage" text
tshepang Feb 12, 2024
37d2ea2
Properly handle `async` blocks and `fn`s in `if` exprs without `else`
estebank Feb 6, 2024
d07195f
Remove visitor use
estebank Feb 6, 2024
c51b9ff
remove redundant logic
tshepang Feb 12, 2024
882396c
fix comment
tshepang Feb 12, 2024
6fe4d66
allow static_mut_ref in some tests that specifically test mutable sta…
RalfJung Feb 12, 2024
9d1bd2e
PassWrapper: adapt for llvm/llvm-project@93cdd1b5cfa3735c599949b77e24…
durin42 Feb 13, 2024
0f53e72
docs: use correct link, use secondary example
tristan-f-r Feb 13, 2024
020e846
Rollup merge of #120696 - estebank:issue-115405, r=oli-obk
matthiaskrgr Feb 13, 2024
1b39691
Rollup merge of #120751 - estebank:issue-68982, r=nnethercote
matthiaskrgr Feb 13, 2024
30057f0
Rollup merge of #120802 - oli-obk:drop_elab_ice, r=compiler-errors
matthiaskrgr Feb 13, 2024
134de26
Rollup merge of #120967 - LeoDog896:master, r=cuviper
matthiaskrgr Feb 13, 2024
d95f000
Rollup merge of #120973 - RalfJung:static_mut_ref, r=compiler-errors
matthiaskrgr Feb 13, 2024
fa3ec02
Rollup merge of #120974 - zmodem:exportas, r=durin42
matthiaskrgr Feb 13, 2024
5d1e919
Rollup merge of #120986 - tshepang:extraneous, r=cuviper
matthiaskrgr Feb 13, 2024
7427460
Rollup merge of #120987 - tshepang:redundant, r=compiler-errors
matthiaskrgr Feb 13, 2024
21d8fb2
Rollup merge of #120988 - tshepang:fix-comment, r=cjgillot
matthiaskrgr Feb 13, 2024
70ea26d
Rollup merge of #120995 - durin42:llvm-19-pgo-coldfuncopt, r=cuviper
matthiaskrgr Feb 13, 2024
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
Prev Previous commit
Next Next commit
fix comment
tshepang committed Feb 12, 2024
commit 882396cbd0835491204d574f769f4d16763e8b95
2 changes: 1 addition & 1 deletion compiler/rustc_hir_typeck/src/method/suggest.rs
Original file line number Diff line number Diff line change
@@ -1092,7 +1092,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
inherent_impls_candidate.sort();
inherent_impls_candidate.dedup();

// number of type to shows at most.
// number of types to show at most
let limit = if inherent_impls_candidate.len() == 5 { 5 } else { 4 };
let type_candidates = inherent_impls_candidate
.iter()