Skip to content

Commit 4026c33

Browse files
authored
Unrolled build for #146243
Rollup merge of #146243 - matthiaskrgr:declone, r=lqd remove couple of redundant clones
2 parents 99317ef + 8104252 commit 4026c33

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

compiler/rustc_codegen_ssa/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ impl<M> ModuleCodegen<M> {
119119
});
120120

121121
CompiledModule {
122-
name: self.name.clone(),
122+
name: self.name,
123123
object,
124124
dwarf_object,
125125
bytecode,

compiler/rustc_mir_transform/src/coverage/expansion.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ impl ExpnNode {
8282
Self {
8383
expn_id,
8484

85-
expn_kind: expn_data.kind.clone(),
85+
expn_kind: expn_data.kind,
8686
call_site,
8787
call_site_expn_id,
8888

compiler/rustc_resolve/src/late/diagnostics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3099,7 +3099,7 @@ impl<'ast, 'ra, 'tcx> LateResolutionVisitor<'_, 'ast, 'ra, 'tcx> {
30993099
|err, _, span, message, suggestion, span_suggs| {
31003100
err.multipart_suggestion_verbose(
31013101
message,
3102-
std::iter::once((span, suggestion)).chain(span_suggs.clone()).collect(),
3102+
std::iter::once((span, suggestion)).chain(span_suggs).collect(),
31033103
Applicability::MaybeIncorrect,
31043104
);
31053105
true

compiler/rustc_trait_selection/src/error_reporting/infer/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ impl<'a, 'tcx> TypeErrCtxt<'a, 'tcx> {
318318
let (expected, found) = if expected_str == found_str {
319319
(join_path_syms(&expected_abs), join_path_syms(&found_abs))
320320
} else {
321-
(expected_str.clone(), found_str.clone())
321+
(expected_str, found_str)
322322
};
323323

324324
// We've displayed "expected `a::b`, found `a::b`". We add context to

0 commit comments

Comments
 (0)