Skip to content
Permalink
Browse files

Propitiate tidy

  • Loading branch information...
varkor committed Mar 25, 2019
1 parent 3683f51 commit 58a04f06cb6522040af4d9352c3a25dd66547acc
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/librustc_typeck/check/mod.rs
@@ -3229,7 +3229,8 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
Some(ret) => ret,
None => return Vec::new()
};
let expect_args = self.fudge_inference_if_ok(&RegionVariableOrigin::Coercion(call_span), || {
let origin = RegionVariableOrigin::Coercion(call_span);
let expect_args = self.fudge_inference_if_ok(&origin, || {
// Attempt to apply a subtyping relationship between the formal
// return type (likely containing type variables if the function
// is polymorphic) and the expected return type.

0 comments on commit 58a04f0

Please sign in to comment.
You can’t perform that action at this time.