]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_metadata/link_args.rs
Rename `Item.node` to `Item.kind`
[rust.git] / src / librustc_metadata / link_args.rs
index cd6270046faabe18094a583e097ff76cdb1d03b2..527d4421fca656d9a9a4250eba539713f707fe66 100644 (file)
@@ -4,7 +4,7 @@
 use rustc_target::spec::abi::Abi;
 use syntax::symbol::sym;
 
-pub fn collect<'tcx>(tcx: TyCtxt<'tcx>) -> Vec<String> {
+pub fn collect(tcx: TyCtxt<'_>) -> Vec<String> {
     let mut collector = Collector {
         args: Vec::new(),
     };
@@ -27,7 +27,7 @@ struct Collector {
 
 impl<'tcx> ItemLikeVisitor<'tcx> for Collector {
     fn visit_item(&mut self, it: &'tcx hir::Item) {
-        let fm = match it.node {
+        let fm = match it.kind {
             hir::ItemKind::ForeignMod(ref fm) => fm,
             _ => return,
         };