Skip to content

Commit 28cc0b6

Browse files
committed
Auto merge of #127414 - workingjubilee:rollup-lcxw1eh, r=workingjubilee
Rollup of 5 pull requests Successful merges: - #125751 (Add `new_range_api` for RFC 3550) - #127098 (Migrate `output-type-permutations` `run-make` test to rmake) - #127369 (Match ergonomics 2024: align with RFC again) - #127383 (Use verbose style for argument removal suggestion) - #127392 (Use verbose suggestion for changing arg type) r? `@ghost` `@rustbot` modify labels: rollup
2 parents 51917e2 + 8531487 commit 28cc0b6

File tree

65 files changed

+2332
-547
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+2332
-547
lines changed

compiler/rustc_hir_analysis/src/check/compare_impl_item.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -981,7 +981,7 @@ fn report_trait_method_mismatch<'tcx>(
981981
.next()
982982
.unwrap_or(impl_err_span);
983983

984-
diag.span_suggestion(
984+
diag.span_suggestion_verbose(
985985
span,
986986
"change the self-receiver type to match the trait",
987987
sugg,
@@ -1005,12 +1005,12 @@ fn report_trait_method_mismatch<'tcx>(
10051005
}
10061006
hir::FnRetTy::Return(hir_ty) => {
10071007
let sugg = trait_sig.output();
1008-
diag.span_suggestion(hir_ty.span, msg, sugg, ap);
1008+
diag.span_suggestion_verbose(hir_ty.span, msg, sugg, ap);
10091009
}
10101010
};
10111011
};
10121012
} else if let Some(trait_ty) = trait_sig.inputs().get(*i) {
1013-
diag.span_suggestion(
1013+
diag.span_suggestion_verbose(
10141014
impl_err_span,
10151015
"change the parameter type to match the trait",
10161016
trait_ty,

compiler/rustc_hir_typeck/src/fn_ctxt/checks.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1384,7 +1384,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
13841384
Some(format!("provide the argument{}", if plural { "s" } else { "" }))
13851385
}
13861386
SuggestionText::Remove(plural) => {
1387-
err.multipart_suggestion(
1387+
err.multipart_suggestion_verbose(
13881388
format!("remove the extra argument{}", if plural { "s" } else { "" }),
13891389
suggestions,
13901390
Applicability::HasPlaceholders,

compiler/rustc_hir_typeck/src/pat.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2217,7 +2217,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
22172217
debug!("check_pat_ref: expected={:?}", expected);
22182218
match *expected.kind() {
22192219
ty::Ref(_, r_ty, r_mutbl)
2220-
if (new_match_ergonomics && r_mutbl >= pat_mutbl)
2220+
if (no_ref_mut_behind_and && r_mutbl >= pat_mutbl)
22212221
|| r_mutbl == pat_mutbl =>
22222222
{
22232223
if no_ref_mut_behind_and && r_mutbl == Mutability::Not {

library/core/src/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,8 @@ pub mod panicking;
395395
#[unstable(feature = "core_pattern_types", issue = "none")]
396396
pub mod pat;
397397
pub mod pin;
398+
#[unstable(feature = "new_range_api", issue = "125687")]
399+
pub mod range;
398400
pub mod result;
399401
pub mod sync;
400402

0 commit comments

Comments
 (0)