aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/rust/typecheck/rust-hir-path-probe.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/gcc/rust/typecheck/rust-hir-path-probe.h b/gcc/rust/typecheck/rust-hir-path-probe.h
index 50d660c..3c1858c 100644
--- a/gcc/rust/typecheck/rust-hir-path-probe.h
+++ b/gcc/rust/typecheck/rust-hir-path-probe.h
@@ -364,10 +364,9 @@ protected:
PathProbeCandidate::TraitItemCandidate trait_item_candidate{trait_ref,
trait_item_ref,
impl};
- PathProbeCandidate candidate{candidate_type,
- trait_item_tyty,
- trait_ref->get_locus (),
- {trait_item_candidate}};
+
+ PathProbeCandidate candidate{candidate_type, trait_item_tyty,
+ trait_ref->get_locus (), trait_item_candidate};
candidates.push_back (std::move (candidate));
}
@@ -409,10 +408,9 @@ protected:
PathProbeCandidate::TraitItemCandidate trait_item_candidate{trait_ref,
trait_item_ref,
nullptr};
- PathProbeCandidate candidate{candidate_type,
- trait_item_tyty,
+ PathProbeCandidate candidate{candidate_type, trait_item_tyty,
trait_item_ref->get_locus (),
- {trait_item_candidate}};
+ trait_item_candidate};
candidates.push_back (std::move (candidate));
}