Elide elidable lifetime parameters.
This commit is contained in:
@@ -660,14 +660,14 @@ impl DataFlowGraph {
|
||||
impl Index<Inst> for DataFlowGraph {
|
||||
type Output = InstructionData;
|
||||
|
||||
fn index<'a>(&'a self, inst: Inst) -> &'a InstructionData {
|
||||
fn index(&self, inst: Inst) -> &InstructionData {
|
||||
&self.insts[inst]
|
||||
}
|
||||
}
|
||||
|
||||
/// Allow mutable access to instructions via indexing.
|
||||
impl IndexMut<Inst> for DataFlowGraph {
|
||||
fn index_mut<'a>(&'a mut self, inst: Inst) -> &'a mut InstructionData {
|
||||
fn index_mut(&mut self, inst: Inst) -> &mut InstructionData {
|
||||
&mut self.insts[inst]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -289,13 +289,13 @@ impl VariableArgs {
|
||||
impl Deref for VariableArgs {
|
||||
type Target = [Value];
|
||||
|
||||
fn deref<'a>(&'a self) -> &'a [Value] {
|
||||
fn deref(&self) -> &[Value] {
|
||||
&self.0
|
||||
}
|
||||
}
|
||||
|
||||
impl DerefMut for VariableArgs {
|
||||
fn deref_mut<'a>(&'a mut self) -> &'a mut [Value] {
|
||||
fn deref_mut(&mut self) -> &mut [Value] {
|
||||
&mut self.0
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user