]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_metadata/encoder.rs
cleanup: rename node_id_to_type(_opt)
[rust.git] / src / librustc_metadata / encoder.rs
index d68ab9750b9701c207c481f07b8f97d1b5799c87..ec49ef3f6e04673e3e920d7738d8714ceba3e911 100644 (file)
@@ -1338,7 +1338,7 @@ fn encode_info_for_closure(&mut self, def_id: DefId) -> Entry<'tcx> {
         let tables = self.tcx.typeck_tables_of(def_id);
         let node_id = self.tcx.hir().as_local_node_id(def_id).unwrap();
         let hir_id = self.tcx.hir().node_to_hir_id(node_id);
-        let kind = match tables.node_id_to_type(hir_id).sty {
+        let kind = match tables.node_type(hir_id).sty {
             ty::Generator(def_id, ..) => {
                 let layout = self.tcx.generator_layout(def_id);
                 let data = GeneratorData {