From c4b90dfdc53882e139a2ca18ecc0cbadf56a1e40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96mer=20Sinan=20A=C4=9Facan?= Date: Sun, 28 Feb 2021 20:43:34 +0300 Subject: [PATCH] Remove an old FIXME comment and inline attribute Apparently #35870 caused a problem in this code (which originally returned an impl trait) and `#[inline]` was added as a workaround, in ade79d76090. The issue is now fixed and the comment and `#[inline]` can now be removed. --- compiler/rustc_trait_selection/src/traits/mod.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/compiler/rustc_trait_selection/src/traits/mod.rs b/compiler/rustc_trait_selection/src/traits/mod.rs index 0a81b6e105dff..5a8c53a0c4bd4 100644 --- a/compiler/rustc_trait_selection/src/traits/mod.rs +++ b/compiler/rustc_trait_selection/src/traits/mod.rs @@ -455,7 +455,6 @@ fn subst_and_check_impossible_predicates<'tcx>( /// Given a trait `trait_ref`, iterates the vtable entries /// that come from `trait_ref`, including its supertraits. -#[inline] // FIXME(#35870): avoid closures being unexported due to `impl Trait`. fn vtable_methods<'tcx>( tcx: TyCtxt<'tcx>, trait_ref: ty::PolyTraitRef<'tcx>,