Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 962ac81

Browse files
committed
Remove impl_trait_in_bindings handling on inference error reporting
1 parent 4d2d903 commit 962ac81

File tree

4 files changed

+2
-120
lines changed

4 files changed

+2
-120
lines changed

compiler/rustc_infer/src/infer/error_reporting/need_type_info.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -491,11 +491,8 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
491491
span
492492
};
493493

494-
let is_named_and_not_impl_trait = |ty: Ty<'_>| {
495-
&ty.to_string() != "_" &&
496-
// FIXME: Remove this check after `impl_trait_in_bindings` is stabilized. #63527
497-
(!ty.is_impl_trait() || self.tcx.features().impl_trait_in_bindings)
498-
};
494+
let is_named_and_not_impl_trait =
495+
|ty: Ty<'_>| &ty.to_string() != "_" && !ty.is_impl_trait();
499496

500497
let ty_msg = match (local_visitor.found_node_ty, local_visitor.found_exact_method_call) {
501498
(_, Some(_)) => String::new(),

src/test/ui/impl-trait/bindings.stderr

Lines changed: 0 additions & 77 deletions
This file was deleted.

src/test/ui/inference/cannot-infer-async-enabled-impl-trait-bindings.rs

Lines changed: 0 additions & 17 deletions
This file was deleted.

src/test/ui/inference/cannot-infer-async-enabled-impl-trait-bindings.stderr

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)