Skip to content

Commit ca122c7

Browse files
committedJun 13, 2022
Auto merge of #98066 - matthiaskrgr:rollup-wb9gs92, r=matthiaskrgr
Rollup of 10 pull requests Successful merges: - #97709 (Normalize consts' tys when relating with `adt_const_params`) - #97875 (Remove the `infer_static_outlives_requirements` feature) - #97960 (interpret: unify offset_from check with offset check) - #97999 (Make `type_changing_struct_update` no longer an incomplete feature) - #98043 (Remove unnecessary `to_string` and `String::new`) - #98044 ([issues:97981] del unrelated comment) - #98049 (Document an edge case of `str::split_once`) - #98050 (Add some more regression tests for #67945) - #98054 (Fix error message for `download-ci-llvm`) - #98057 (Update miri) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2 parents 083721a + af1f614 commit ca122c7

File tree

119 files changed

+614
-577
lines changed

Some content is hidden

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

119 files changed

+614
-577
lines changed
 

‎compiler/rustc_ast_lowering/src/expr.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1168,7 +1168,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
11681168
.span_suggestion(
11691169
e.span,
11701170
"consider removing the trailing pattern",
1171-
String::new(),
1171+
"",
11721172
rustc_errors::Applicability::MachineApplicable,
11731173
)
11741174
.emit();

‎compiler/rustc_ast_lowering/src/pat.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
139139
.span_suggestion_verbose(
140140
sp,
141141
&format!("if you don't need to use the contents of {}, discard the tuple's remaining fields", ident),
142-
"..".to_string(),
142+
"..",
143143
Applicability::MaybeIncorrect,
144144
)
145145
.emit();

0 commit comments

Comments
 (0)
Please sign in to comment.