]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #45736 - oli-obk:rvalue_promotable_map, r=nikomatsakis
authorbors <bors@rust-lang.org>
Thu, 9 Nov 2017 04:14:28 +0000 (04:14 +0000)
committerbors <bors@rust-lang.org>
Thu, 9 Nov 2017 04:14:28 +0000 (04:14 +0000)
Use a `Set<T>` instead of a `Map<T, bool>`

r? @nikomatsakis

introduced in #44501

1  2 
src/librustc/ty/maps/mod.rs

index 7d8586741fb156557ea7bdd3de6a7afdb26c0b52,b65c511121aceff6bac2a5d9f78f63d389f867f2..e3fa1e59087d2c2c88f40ace3e118b690b155f91
@@@ -37,7 -37,7 +37,7 @@@ use ty::{self, CrateInherentImpls, Ty, 
  use ty::layout::{Layout, LayoutError};
  use ty::steal::Steal;
  use ty::subst::Substs;
- use util::nodemap::{DefIdSet, DefIdMap, ItemLocalMap};
+ use util::nodemap::{DefIdSet, DefIdMap, ItemLocalSet};
  use util::common::{profq_msg, ProfileQueriesMsg};
  
  use rustc_data_structures::indexed_set::IdxSetBuf;
@@@ -113,8 -113,8 +113,8 @@@ define_maps! { <'tcx
      /// True if this is a foreign item (i.e., linked via `extern { ... }`).
      [] fn is_foreign_item: IsForeignItem(DefId) -> bool,
  
 -    /// True if this is a default impl (aka impl Foo for ..)
 -    [] fn is_default_impl: IsDefaultImpl(DefId) -> bool,
 +    /// True if this is an auto impl (aka impl Foo for ..)
 +    [] fn is_auto_impl: IsAutoImpl(DefId) -> bool,
  
      /// Get a map with the variance of every item; use `item_variance`
      /// instead.
      [] fn is_exported_symbol: IsExportedSymbol(DefId) -> bool,
      [] fn item_body_nested_bodies: ItemBodyNestedBodies(DefId) -> ExternBodyNestedBodies,
      [] fn const_is_rvalue_promotable_to_static: ConstIsRvaluePromotableToStatic(DefId) -> bool,
-     [] fn rvalue_promotable_map: RvaluePromotableMap(DefId) -> Rc<ItemLocalMap<bool>>,
+     [] fn rvalue_promotable_map: RvaluePromotableMap(DefId) -> Rc<ItemLocalSet>,
      [] fn is_mir_available: IsMirAvailable(DefId) -> bool,
      [] fn vtable_methods: vtable_methods_node(ty::PolyTraitRef<'tcx>)
                            -> Rc<Vec<Option<(DefId, &'tcx Substs<'tcx>)>>>,