Adapt librustdoc
to 2024 edition lifetieme capture rules
Get rid of the `Captures` hack
This commit is contained in:
parent
00523bf7c3
commit
6e86aa17ec
9 changed files with 270 additions and 429 deletions
|
@ -1,8 +0,0 @@
|
|||
/// "Signaling" trait used in impl trait to tag lifetimes that you may
|
||||
/// need to capture but don't really need for other reasons.
|
||||
/// Basically a workaround; see [this comment] for details.
|
||||
///
|
||||
/// [this comment]: https://github.com/rust-lang/rust/issues/34511#issuecomment-373423999
|
||||
pub trait Captures<'a> {}
|
||||
|
||||
impl<'a, T: ?Sized> Captures<'a> for T {}
|
|
@ -48,7 +48,6 @@ pub use rustc_index::static_assert_size;
|
|||
pub mod aligned;
|
||||
pub mod base_n;
|
||||
pub mod binary_search_util;
|
||||
pub mod captures;
|
||||
pub mod fingerprint;
|
||||
pub mod flat_map_in_place;
|
||||
pub mod flock;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue