diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-12-30 07:42:46 +0100 |
|---|---|---|
| committer | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-12-30 13:50:20 +0100 |
| commit | e952377ddc7bdddfee03ee09f3530a1c025f1d99 (patch) | |
| tree | 4ef7b94f3ed3210f9b145e68b2e4f8a53b194dfa /src/librustc/infer | |
| parent | 960acb044bcefc46520cee263b6877160fd296ca (diff) | |
| download | rust-e952377ddc7bdddfee03ee09f3530a1c025f1d99.tar.gz rust-e952377ddc7bdddfee03ee09f3530a1c025f1d99.zip | |
MatchExpressionArmPattern -> Pattern
Current name is too specific for incoming changes.
Diffstat (limited to 'src/librustc/infer')
| -rw-r--r-- | src/librustc/infer/error_reporting/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc/infer/error_reporting/mod.rs b/src/librustc/infer/error_reporting/mod.rs index f0f0e2cdeb9..ae629adf8fb 100644 --- a/src/librustc/infer/error_reporting/mod.rs +++ b/src/librustc/infer/error_reporting/mod.rs @@ -581,7 +581,7 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> { exp_found: Option<ty::error::ExpectedFound<Ty<'tcx>>>, ) { match cause.code { - ObligationCauseCode::MatchExpressionArmPattern { span, ty } => { + ObligationCauseCode::Pattern { span, ty } => { if ty.is_suggestable() { // don't show type `_` err.span_label(span, format!("this expression has type `{}`", ty)); |
