]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_hir_typeck/src/callee.rs
Rollup merge of #104483 - oli-obk:santa-clauses-make-goals, r=compiler-errors
[rust.git] / compiler / rustc_hir_typeck / src / callee.rs
index 2b019c8c9b7a581f09facce0ee0c90845c9ebe0c..302d512c71d13229bf0c97f2b97d4be60d1435a7 100644 (file)
@@ -380,6 +380,7 @@ fn confirm_builtin_call(
                         predicates.predicates.iter().zip(&predicates.spans)
                     {
                         let obligation = Obligation::new(
+                            self.tcx,
                             ObligationCause::dummy_with_span(callee_expr.span),
                             self.param_env,
                             *predicate,
@@ -504,7 +505,6 @@ fn suggest_call_as_method(
             // method lookup.
             let Ok(pick) = self
             .probe_for_name(
-                call_expr.span,
                 Mode::MethodCall,
                 segment.ident,
                 IsSuggestion(true),