Don't escape 'static

As it is a valid lifetime without escaping.

It does need to be escaped as a label, but we have no way to distinguish that.
This commit is contained in:
Chayim Refael Friedman 2025-04-26 21:20:43 +03:00
parent d781d02cf4
commit e6ebf0b8a1
2 changed files with 10 additions and 2 deletions

View file

@ -116,13 +116,13 @@ fn foo<'lifetime>(foo: &'a$0) {}
check(
r#"
struct Foo;
impl<'impl> Foo {
impl<'r#impl> Foo {
fn foo<'func>(&'a$0 self) {}
}
"#,
expect![[r#"
lt 'func
lt 'impl
lt 'r#impl
lt 'static
"#]],
);