]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_save_analysis/sig.rs
Rename `Ty.node` to `Ty.kind`
[rust.git] / src / librustc_save_analysis / sig.rs
index b34506a4f1d371747b80dc2a48bd87786aa5b6ae..87417f577a1ae6ca911717fc442fd2fb4f7c26d0 100644 (file)
@@ -160,7 +160,7 @@ fn text_sig(text: String) -> Signature {
 impl Sig for ast::Ty {
     fn make(&self, offset: usize, _parent_id: Option<NodeId>, scx: &SaveContext<'_, '_>) -> Result {
         let id = Some(self.id);
-        match self.node {
+        match self.kind {
             ast::TyKind::Slice(ref ty) => {
                 let nested = ty.make(offset + 1, id, scx)?;
                 let text = format!("[{}]", nested.text);