]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc/hir/print.rs
Refactor lifetime name into an enum
[rust.git] / src / librustc / hir / print.rs
index 41a253f7904f72e7b6b5b31e5c4b5780b1a141ed..ad31b2009a01dbefb56ca8757ae81cbba24fef93 100644 (file)
@@ -1975,7 +1975,7 @@ pub fn print_bounds(&mut self, prefix: &str, bounds: &[hir::TyParamBound]) -> io
     }
 
     pub fn print_lifetime(&mut self, lifetime: &hir::Lifetime) -> io::Result<()> {
-        self.print_name(lifetime.name)
+        self.print_name(lifetime.name.name())
     }
 
     pub fn print_lifetime_def(&mut self, lifetime: &hir::LifetimeDef) -> io::Result<()> {