Make 'self lifetime illegal.
Also remove all instances of 'self within the codebase. This fixes #10889.
This commit is contained in:
parent
d441c54688
commit
5731ca3078
187 changed files with 1290 additions and 1277 deletions
|
@ -177,13 +177,13 @@ impl<T:Ord> PriorityQueue<T> {
|
|||
}
|
||||
|
||||
/// PriorityQueue iterator
|
||||
pub struct PriorityQueueIterator <'self, T> {
|
||||
priv iter: vec::VecIterator<'self, T>,
|
||||
pub struct PriorityQueueIterator <'a, T> {
|
||||
priv iter: vec::VecIterator<'a, T>,
|
||||
}
|
||||
|
||||
impl<'self, T> Iterator<&'self T> for PriorityQueueIterator<'self, T> {
|
||||
impl<'a, T> Iterator<&'a T> for PriorityQueueIterator<'a, T> {
|
||||
#[inline]
|
||||
fn next(&mut self) -> Option<(&'self T)> { self.iter.next() }
|
||||
fn next(&mut self) -> Option<(&'a T)> { self.iter.next() }
|
||||
|
||||
#[inline]
|
||||
fn size_hint(&self) -> (uint, Option<uint>) { self.iter.size_hint() }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue