Skip to content

Commit cbc6e90

Browse files
committed
Introduce Print trait for displaying types
1 parent 9b0480b commit cbc6e90

File tree

2 files changed

+968
-803
lines changed

2 files changed

+968
-803
lines changed

src/librustc/ty/context.rs

-6
Original file line numberDiff line numberDiff line change
@@ -915,10 +915,6 @@ pub struct GlobalCtxt<'tcx> {
915915
/// Maps Expr NodeId's to `true` iff `&expr` can have 'static lifetime.
916916
pub rvalue_promotable_to_static: RefCell<NodeMap<bool>>,
917917

918-
pub display_used_late_bound_region_names: RefCell<Option<FxHashSet<Name>>>,
919-
920-
pub display_late_bound_region_index: Cell<usize>,
921-
922918
/// The definite name of the current crate after taking into account
923919
/// attributes, commandline parameters, etc.
924920
pub crate_name: Symbol,
@@ -1193,8 +1189,6 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
11931189
selection_cache: traits::SelectionCache::new(),
11941190
evaluation_cache: traits::EvaluationCache::new(),
11951191
rvalue_promotable_to_static: RefCell::new(NodeMap()),
1196-
display_used_late_bound_region_names: RefCell::new(None),
1197-
display_late_bound_region_index: Cell::new(0),
11981192
crate_name: Symbol::intern(crate_name),
11991193
data_layout,
12001194
layout_interner: RefCell::new(FxHashSet()),

0 commit comments

Comments
 (0)