Skip to content

Commit a877758

Browse files
authored
Rollup merge of rust-lang#102506 - TaKO8Ki:specify-dyn-kind, r=lcnr
Specify `DynKind::Dyn` ref: rust-lang#101212 (comment)
2 parents 5dd4584 + 1ca3385 commit a877758

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_trait_selection/src/traits/error_reporting

1 file changed

+1
-1
lines changed

Diff for: compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1425,7 +1425,7 @@ impl<'a, 'tcx> InferCtxtExt<'tcx> for InferCtxt<'a, 'tcx> {
14251425
let mut spans_and_needs_box = vec![];
14261426

14271427
match liberated_sig.output().kind() {
1428-
ty::Dynamic(predicates, _, _) => {
1428+
ty::Dynamic(predicates, _, ty::Dyn) => {
14291429
let cause = ObligationCause::misc(ret_ty.span, fn_hir_id);
14301430
let param_env = ty::ParamEnv::empty();
14311431

0 commit comments

Comments
 (0)