mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-17 01:13:11 +00:00
fix clone
call
This commit is contained in:
parent
22318f1a31
commit
f7c4a50f8a
@ -491,7 +491,7 @@ impl<'a, 'tcx> InferCtxtExt<'tcx> for InferCtxt<'a, 'tcx> {
|
|||||||
let code = if let ObligationCauseCode::FunctionArgumentObligation { parent_code, .. } =
|
let code = if let ObligationCauseCode::FunctionArgumentObligation { parent_code, .. } =
|
||||||
&obligation.cause.code
|
&obligation.cause.code
|
||||||
{
|
{
|
||||||
std::rc::Rc::clone(parent_code)
|
parent_code.clone()
|
||||||
} else {
|
} else {
|
||||||
return;
|
return;
|
||||||
};
|
};
|
||||||
@ -687,7 +687,7 @@ impl<'a, 'tcx> InferCtxtExt<'tcx> for InferCtxt<'a, 'tcx> {
|
|||||||
if let (ObligationCauseCode::FunctionArgumentObligation { parent_code, .. }, false) =
|
if let (ObligationCauseCode::FunctionArgumentObligation { parent_code, .. }, false) =
|
||||||
(&obligation.cause.code, points_at_for_iter)
|
(&obligation.cause.code, points_at_for_iter)
|
||||||
{
|
{
|
||||||
std::rc::Rc::clone(parent_code)
|
parent_code.clone()
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user