diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-09-30 19:06:07 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-30 19:06:07 +0200 |
| commit | a8777580ee83c84a95d06f17439174a4e5913667 (patch) | |
| tree | f92857d25636ce99c6ccaec84dd304648d37d5e8 | |
| parent | 5dd4584d2e9c7f031f209b619984cc6f5b285fa9 (diff) | |
| parent | 1ca33851dfd530c11a942ea4b2e105549179e090 (diff) | |
| download | rust-a8777580ee83c84a95d06f17439174a4e5913667.tar.gz rust-a8777580ee83c84a95d06f17439174a4e5913667.zip | |
Rollup merge of #102506 - TaKO8Ki:specify-dyn-kind, r=lcnr
Specify `DynKind::Dyn` ref: https://github.com/rust-lang/rust/pull/101212#discussion_r958861297
| -rw-r--r-- | compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs b/compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs index fff26547be0..698fc81c587 100644 --- a/compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs +++ b/compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs @@ -1425,7 +1425,7 @@ impl<'a, 'tcx> InferCtxtExt<'tcx> for InferCtxt<'a, 'tcx> { let mut spans_and_needs_box = vec![]; match liberated_sig.output().kind() { - ty::Dynamic(predicates, _, _) => { + ty::Dynamic(predicates, _, ty::Dyn) => { let cause = ObligationCause::misc(ret_ty.span, fn_hir_id); let param_env = ty::ParamEnv::empty(); |
