mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +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, .. } =
|
||||
&obligation.cause.code
|
||||
{
|
||||
std::rc::Rc::clone(parent_code)
|
||||
parent_code.clone()
|
||||
} else {
|
||||
return;
|
||||
};
|
||||
@ -687,7 +687,7 @@ impl<'a, 'tcx> InferCtxtExt<'tcx> for InferCtxt<'a, 'tcx> {
|
||||
if let (ObligationCauseCode::FunctionArgumentObligation { parent_code, .. }, false) =
|
||||
(&obligation.cause.code, points_at_for_iter)
|
||||
{
|
||||
std::rc::Rc::clone(parent_code)
|
||||
parent_code.clone()
|
||||
} else {
|
||||
return false;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user