Skip to content

Commit

Permalink
Rollup merge of #86387 - JohnTitor:now-no-unused-lifetimes, r=Mark-Si…
Browse files Browse the repository at this point in the history
…mulacrum

Remove `#[allow(unused_lifetimes)]` which is now unnecessary

Seems FP has been fixed, it doesn't need `#[allow(unused_lifetimes)]` anymore.
  • Loading branch information
JohnTitor authored Jun 21, 2021
2 parents 4d73300 + 636170a commit d285235
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions compiler/rustc_data_structures/src/captures.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
/// Basically a workaround; see [this comment] for details.
///
/// [this comment]: https://github.com/rust-lang/rust/issues/34511#issuecomment-373423999
// FIXME(eddyb) false positive, the lifetime parameter is "phantom" but needed.
#[allow(unused_lifetimes)]
pub trait Captures<'a> {}

impl<'a, T: ?Sized> Captures<'a> for T {}

0 comments on commit d285235

Please sign in to comment.