Skip to content

Commit baa49b2

Browse files
committed
Nits.
1 parent 5f5b6e7 commit baa49b2

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/librustc/arena.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -122,14 +122,15 @@ macro_rules! arena_types {
122122
[few] crate_variances: rustc::ty::CrateVariancesMap<'tcx>,
123123
[few] inferred_outlives_crate: rustc::ty::CratePredicatesMap<'tcx>,
124124
[] upvars: rustc_data_structures::fx::FxIndexMap<rustc::hir::HirId, rustc::hir::Upvar>,
125-
// HIR nodes arenas
125+
126+
// HIR types
126127
[few] hir_forest: rustc::hir::map::Forest<$tcx>,
127128
[] attribute: syntax::ast::Attribute,
128-
[] global_asm: rustc::hir::GlobalAsm,
129+
[few] global_asm: rustc::hir::GlobalAsm,
129130
[] fn_decl: rustc::hir::FnDecl,
130131
[] foreign_item: rustc::hir::ForeignItem<$tcx>,
131132
[] impl_item_ref: rustc::hir::ImplItemRef,
132-
[] macro_def: rustc::hir::MacroDef<$tcx>,
133+
[few] macro_def: rustc::hir::MacroDef<$tcx>,
133134
[] param: rustc::hir::Param,
134135
[] path: rustc::hir::Path,
135136
[] struct_field: rustc::hir::StructField<$tcx>,

src/librustc/hir/print.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ pub const INDENT_UNIT: usize = 4;
107107
/// it can scan the input text for comments to copy forward.
108108
pub fn print_crate<'a>(cm: &'a SourceMap,
109109
sess: &ParseSess,
110-
krate: &hir::Crate<'a>,
110+
krate: &hir::Crate<'_>,
111111
filename: FileName,
112112
input: String,
113113
ann: &'a dyn PpAnn) -> String {

0 commit comments

Comments
 (0)