about summary refs log tree commit diff
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2019-12-01 17:33:31 +0100
committerCamille GILLOT <gillot.camille@gmail.com>2019-12-21 23:40:58 +0100
commitbaa49b2343b852d4bd4151f7c42e36a3351d0981 (patch)
treedd33f4e8b1e8d9141a164e6cd1345e52091b5480
parent5f5b6e7c67a58912e33a524706d76179ff729e77 (diff)
downloadrust-baa49b2343b852d4bd4151f7c42e36a3351d0981.tar.gz
rust-baa49b2343b852d4bd4151f7c42e36a3351d0981.zip
Nits.
-rw-r--r--src/librustc/arena.rs7
-rw-r--r--src/librustc/hir/print.rs2
2 files changed, 5 insertions, 4 deletions
diff --git a/src/librustc/arena.rs b/src/librustc/arena.rs
index 164e0e85c5a..3695607ff3c 100644
--- a/src/librustc/arena.rs
+++ b/src/librustc/arena.rs
@@ -122,14 +122,15 @@ macro_rules! arena_types {
             [few] crate_variances: rustc::ty::CrateVariancesMap<'tcx>,
             [few] inferred_outlives_crate: rustc::ty::CratePredicatesMap<'tcx>,
             [] upvars: rustc_data_structures::fx::FxIndexMap<rustc::hir::HirId, rustc::hir::Upvar>,
-            // HIR nodes arenas
+
+            // HIR types
             [few] hir_forest: rustc::hir::map::Forest<$tcx>,
             [] attribute: syntax::ast::Attribute,
-            [] global_asm: rustc::hir::GlobalAsm,
+            [few] global_asm: rustc::hir::GlobalAsm,
             [] fn_decl: rustc::hir::FnDecl,
             [] foreign_item: rustc::hir::ForeignItem<$tcx>,
             [] impl_item_ref: rustc::hir::ImplItemRef,
-            [] macro_def: rustc::hir::MacroDef<$tcx>,
+            [few] macro_def: rustc::hir::MacroDef<$tcx>,
             [] param: rustc::hir::Param,
             [] path: rustc::hir::Path,
             [] struct_field: rustc::hir::StructField<$tcx>,
diff --git a/src/librustc/hir/print.rs b/src/librustc/hir/print.rs
index f0499e5853f..85747cadbd7 100644
--- a/src/librustc/hir/print.rs
+++ b/src/librustc/hir/print.rs
@@ -107,7 +107,7 @@ pub const INDENT_UNIT: usize = 4;
 /// it can scan the input text for comments to copy forward.
 pub fn print_crate<'a>(cm: &'a SourceMap,
                        sess: &ParseSess,
-                       krate: &hir::Crate<'a>,
+                       krate: &hir::Crate<'_>,
                        filename: FileName,
                        input: String,
                        ann: &'a dyn PpAnn) -> String {