]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc/ty/context.rs
rustc: Remove the `used_unsafe` field on TyCtxt
[rust.git] / src / librustc / ty / context.rs
index 1fe53882c70d339ad15d1c7659b71b9c5d742458..a3d25df10be77a57fe3df6ceee12e14c21a632d8 100644 (file)
@@ -855,10 +855,6 @@ pub struct GlobalCtxt<'tcx> {
 
     pub lang_items: middle::lang_items::LanguageItems,
 
-    /// Set of used unsafe nodes (functions or blocks). Unsafe nodes not
-    /// present in this set can be warned about.
-    pub used_unsafe: RefCell<NodeSet>,
-
     /// Set of nodes which mark locals as mutable which end up getting used at
     /// some point. Local variable definitions not in this set can be warned
     /// about.
@@ -1091,7 +1087,6 @@ pub fn create_and_enter<F, R>(s: &'tcx Session,
             normalized_cache: RefCell::new(FxHashMap()),
             inhabitedness_cache: RefCell::new(FxHashMap()),
             lang_items,
-            used_unsafe: RefCell::new(NodeSet()),
             used_mut_nodes: RefCell::new(NodeSet()),
             stability: RefCell::new(stability),
             selection_cache: traits::SelectionCache::new(),