diff options
| author | varkor <github@varkor.com> | 2020-12-30 15:34:53 +0000 |
|---|---|---|
| committer | kadmin <julianknodt@gmail.com> | 2021-03-23 17:16:20 +0000 |
| commit | 8ef81388e2def7b12d3b527705bf32402c8d7c8a (patch) | |
| tree | c9aa6da68f23fcf67e738005809e476de4887eba /compiler/rustc_infer | |
| parent | e4e5db4e4207e21c38c07640d44005dab022f1b8 (diff) | |
| download | rust-8ef81388e2def7b12d3b527705bf32402c8d7c8a.tar.gz rust-8ef81388e2def7b12d3b527705bf32402c8d7c8a.zip | |
Some refactoring
Diffstat (limited to 'compiler/rustc_infer')
| -rw-r--r-- | compiler/rustc_infer/src/infer/error_reporting/mod.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/compiler/rustc_infer/src/infer/error_reporting/mod.rs b/compiler/rustc_infer/src/infer/error_reporting/mod.rs index d614f186106..7df80b2b5b9 100644 --- a/compiler/rustc_infer/src/infer/error_reporting/mod.rs +++ b/compiler/rustc_infer/src/infer/error_reporting/mod.rs @@ -963,9 +963,8 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> { .rev() .filter_map(|param| match param.kind { ty::GenericParamDefKind::Lifetime => None, - - ty::GenericParamDefKind::Type { has_default, .. } - | ty::GenericParamDefKind::Const { has_default } => { + ty::GenericParamDefKind::Const { has_default } + | ty::GenericParamDefKind::Type { has_default, .. } => { Some((param.def_id, has_default)) } }) |
