mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
ZJIT: Fix mismatched_lifetime_syntaxes
, new in Rust 1.89.0
This commit is contained in:
parent
61fff8a92f
commit
5b956fbf60
3 changed files with 9 additions and 9 deletions
|
@ -549,13 +549,13 @@ pub enum Insn {
|
|||
impl Insn {
|
||||
/// Create an iterator that will yield a non-mutable reference to each
|
||||
/// operand in turn for this instruction.
|
||||
pub(super) fn opnd_iter(&self) -> InsnOpndIterator {
|
||||
pub(super) fn opnd_iter(&self) -> InsnOpndIterator<'_> {
|
||||
InsnOpndIterator::new(self)
|
||||
}
|
||||
|
||||
/// Create an iterator that will yield a mutable reference to each operand
|
||||
/// in turn for this instruction.
|
||||
pub(super) fn opnd_iter_mut(&mut self) -> InsnOpndMutIterator {
|
||||
pub(super) fn opnd_iter_mut(&mut self) -> InsnOpndMutIterator<'_> {
|
||||
InsnOpndMutIterator::new(self)
|
||||
}
|
||||
|
||||
|
|
|
@ -67,7 +67,7 @@ impl std::fmt::Display for VALUE {
|
|||
}
|
||||
|
||||
impl VALUE {
|
||||
pub fn print(self, ptr_map: &PtrPrintMap) -> VALUEPrinter {
|
||||
pub fn print(self, ptr_map: &PtrPrintMap) -> VALUEPrinter<'_> {
|
||||
VALUEPrinter { inner: self, ptr_map }
|
||||
}
|
||||
}
|
||||
|
@ -136,7 +136,7 @@ pub enum Invariant {
|
|||
}
|
||||
|
||||
impl Invariant {
|
||||
pub fn print(self, ptr_map: &PtrPrintMap) -> InvariantPrinter {
|
||||
pub fn print(self, ptr_map: &PtrPrintMap) -> InvariantPrinter<'_> {
|
||||
InvariantPrinter { inner: self, ptr_map }
|
||||
}
|
||||
}
|
||||
|
@ -810,12 +810,12 @@ pub struct Block {
|
|||
|
||||
impl Block {
|
||||
/// Return an iterator over params
|
||||
pub fn params(&self) -> Iter<InsnId> {
|
||||
pub fn params(&self) -> Iter<'_, InsnId> {
|
||||
self.params.iter()
|
||||
}
|
||||
|
||||
/// Return an iterator over insns
|
||||
pub fn insns(&self) -> Iter<InsnId> {
|
||||
pub fn insns(&self) -> Iter<'_, InsnId> {
|
||||
self.insns.iter()
|
||||
}
|
||||
}
|
||||
|
@ -2450,12 +2450,12 @@ impl FrameState {
|
|||
}
|
||||
|
||||
/// Iterate over all stack slots
|
||||
pub fn stack(&self) -> Iter<InsnId> {
|
||||
pub fn stack(&self) -> Iter<'_, InsnId> {
|
||||
self.stack.iter()
|
||||
}
|
||||
|
||||
/// Iterate over all local variables
|
||||
pub fn locals(&self) -> Iter<InsnId> {
|
||||
pub fn locals(&self) -> Iter<'_, InsnId> {
|
||||
self.locals.iter()
|
||||
}
|
||||
|
||||
|
|
|
@ -501,7 +501,7 @@ impl Type {
|
|||
self.is_subtype(types::Immediate)
|
||||
}
|
||||
|
||||
pub fn print(self, ptr_map: &PtrPrintMap) -> TypePrinter {
|
||||
pub fn print(self, ptr_map: &PtrPrintMap) -> TypePrinter<'_> {
|
||||
TypePrinter { inner: self, ptr_map }
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue