Skip to content

Commit

Permalink
Fix displaying placeholder lifetime
Browse files Browse the repository at this point in the history
Co-authored-by: bjorn3 <bjorn3@users.noreply.github.com>
  • Loading branch information
detrumi and bjorn3 committed Jul 4, 2020
1 parent d10bad9 commit e4d089f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chalk-solve/src/display/ty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ impl<I: Interner> RenderAsRust<I> for LifetimeData<I> {
LifetimeData::InferenceVar(_) => write!(f, "'_"),
// Note: placeholders should not occur in programs, but are currently used by
// rust-analyzer, because lifetimes are not implemented yet.
LifetimeData::Placeholder(ix) => write!(f, "_placeholder_{}_{}", ix.ui.counter, ix.idx),
LifetimeData::Placeholder(ix) => write!(f, "'_placeholder_{}_{}", ix.ui.counter, ix.idx),
// Matching the void ensures at compile time that this code is
// unreachable
LifetimeData::Phantom(void, _) => match *void {},
Expand Down

0 comments on commit e4d089f

Please sign in to comment.