Skip to content

Commit aceb290

Browse files
committed
fix TyRptr changes
1 parent 909056b commit aceb290

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clippy_lints/src/lifetimes.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,9 @@ impl<'v, 't> RefVisitor<'v, 't> {
230230
if let Some(ref lt) = *lifetime {
231231
if &*lt.name.as_str() == "'static" {
232232
self.lts.push(RefLt::Static);
233+
} else if lt.name.as_u32() == 0 {
234+
// TODO: investigate
235+
self.lts.push(RefLt::Unnamed);
233236
} else {
234237
self.lts.push(RefLt::Named(lt.name));
235238
}
@@ -275,9 +278,6 @@ impl<'a, 'tcx> Visitor<'tcx> for RefVisitor<'a, 'tcx> {
275278

276279
fn visit_ty(&mut self, ty: &'tcx Ty) {
277280
match ty.node {
278-
TyRptr(None, _) => {
279-
self.record(&None);
280-
},
281281
TyPath(ref path) => {
282282
self.collect_anonymous_lifetimes(path, ty);
283283
},

0 commit comments

Comments
 (0)