Skip to content

Commit 2f1bf16

Browse files
Remove arg_matrix.rs, bless tests
1 parent b0793b3 commit 2f1bf16

File tree

161 files changed

+1497
-6754
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

161 files changed

+1497
-6754
lines changed

compiler/rustc_typeck/src/check/fn_ctxt/arg_matrix.rs

-351
This file was deleted.

compiler/rustc_typeck/src/check/fn_ctxt/checks.rs

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
use crate::astconv::AstConv;
22
use crate::check::coercion::CoerceMany;
3-
use crate::check::fn_ctxt::arg_matrix::{ArgMatrix, Compatibility, Error};
43
use crate::check::gather_locals::Declaration;
54
use crate::check::method::MethodCallee;
65
use crate::check::Expectation::*;
@@ -18,13 +17,9 @@ use rustc_hir as hir;
1817
use rustc_hir::def::{CtorOf, DefKind, Res};
1918
use rustc_hir::def_id::DefId;
2019
use rustc_hir::{ExprKind, Node, QPath};
21-
use rustc_infer::infer::error_reporting::{FailureCode, ObligationCauseExt};
22-
use rustc_infer::infer::InferOk;
23-
use rustc_infer::infer::TypeTrace;
2420
use rustc_middle::ty::adjustment::AllowTwoPhase;
25-
use rustc_middle::ty::error::TypeError;
2621
use rustc_middle::ty::fold::TypeFoldable;
27-
use rustc_middle::ty::{self, Ty, TyCtxt};
22+
use rustc_middle::ty::{self, Ty};
2823
use rustc_session::Session;
2924
use rustc_span::symbol::Ident;
3025
use rustc_span::{self, Span};

compiler/rustc_typeck/src/check/fn_ctxt/mod.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
mod _impl;
2-
mod arg_matrix;
32
mod checks;
43
mod suggestions;
54

src/test/ui/argument-suggestions/basic.rs

+5-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,11 @@ fn main() {
2020
invalid(1.0); //~ ERROR mismatched types
2121
extra(""); //~ ERROR this function takes
2222
missing(); //~ ERROR this function takes
23-
swapped("", 1); //~ ERROR arguments to this function are incorrect
24-
permuted(Y {}, Z {}, X {}); //~ ERROR arguments to this function are incorrect
23+
swapped("", 1); //~ ERROR mismatched types
24+
//~^ ERROR mismatched types
25+
permuted(Y {}, Z {}, X {}); //~ ERROR mismatched types
26+
//~^ ERROR mismatched types
27+
//~| ERROR mismatched types
2528

2629
let closure = |x| x;
2730
closure(); //~ ERROR this function takes

0 commit comments

Comments
 (0)