We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79b11f0 commit a11f7e4Copy full SHA for a11f7e4
compiler/rustc_arena/src/lib.rs
@@ -715,10 +715,10 @@ pub macro declare_arena([$($a:tt $name:ident: $ty:ty,)*]) {
715
}
716
717
#[allow(clippy::mut_from_ref)]
718
- pub fn alloc_from_iter<'a, T: ArenaAllocatable<'tcx, C>, C>(
719
- &'a self,
+ pub fn alloc_from_iter<T: ArenaAllocatable<'tcx, C>, C>(
+ &self,
720
iter: impl ::std::iter::IntoIterator<Item = T>,
721
- ) -> &'a mut [T] {
+ ) -> &mut [T] {
722
T::allocate_from_iter(self, iter)
723
724
0 commit comments