Skip to content

Commit

Permalink
Fix unjustified assumption of same lifetime
Browse files Browse the repository at this point in the history
  • Loading branch information
k0aki committed Sep 28, 2023
1 parent e8679cd commit 9d75025
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions crates/ir/src/function.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,18 +90,18 @@ impl Signature {
}
}

pub struct DisplaySignature<'a> {
pub struct DisplaySignature<'a, 'b> {
sig: &'a Signature,
dfg: &'a DataFlowGraph,
dfg: &'b DataFlowGraph,
}

impl<'a> DisplaySignature<'a> {
pub fn new(sig: &'a Signature, dfg: &'a DataFlowGraph) -> Self {
impl<'a, 'b> DisplaySignature<'a, 'b> {
pub fn new(sig: &'a Signature, dfg: &'b DataFlowGraph) -> Self {
Self { sig, dfg }
}
}

impl<'a> fmt::Display for DisplaySignature<'a> {
impl<'a, 'b> fmt::Display for DisplaySignature<'a, 'b> {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
let Self { sig, dfg } = *self;
let Signature {
Expand Down

0 comments on commit 9d75025

Please sign in to comment.