Skip to content

Commit

Permalink
Auto merge of rust-lang#82634 - osa1:osa1/remove_old_fixme, r=Mark-Si…
Browse files Browse the repository at this point in the history
…mulacrum

Remove an old FIXME comment and inline attribute

Apparently rust-lang#35870 caused a problem in this code (which originally
returned an impl trait) and `#[inline]` was added as a workaround, in
ade79d7.

The issue is now fixed and the comment and `#[inline]` can now be
removed.
  • Loading branch information
bors committed Mar 2, 2021
2 parents ef0d592 + c4b90df commit edeee91
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion compiler/rustc_trait_selection/src/traits/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>,
Expand Down

0 comments on commit edeee91

Please sign in to comment.