]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_metadata/src/rmeta/decoder.rs
Provide copy-free access to raw Decoder bytes
[rust.git] / compiler / rustc_metadata / src / rmeta / decoder.rs
index 66968c9ba54ab77d9036b3efd031fc3cea8ba2db..b715f6c3f1fc97284277bb64c245f3a63151bcae 100644 (file)
@@ -316,7 +316,7 @@ fn read_lazy_with_meta<T: ?Sized + LazyMeta>(&mut self, meta: T::Meta) -> Lazy<T
     }
 
     #[inline]
-    pub fn read_raw_bytes(&mut self, len: usize) -> &'a [u8] {
+    pub fn read_raw_bytes(&mut self, len: usize) -> &[u8] {
         self.opaque.read_raw_bytes(len)
     }
 }