Bug 1257982 - [hazards] Inherit template attrs for plain HashMap/HashSet r=jonco
☠☠ backed out by eff691bb6cf8 ☠ ☠
authorSteve Fink <sfink@mozilla.com>
Mon, 18 Mar 2019 21:37:04 +0000
changeset 464938 13425f1eca221fe81b2a7c98fa8d2fab9f254233
parent 464937 74180861edb8d042bda3893d35594c8bfae51e97
child 464939 e73fdb7ff05d85aa0a9fb6bba46f27d25ad66041
push id112486
push useropoprus@mozilla.com
push dateTue, 19 Mar 2019 16:41:04 +0000
treeherdermozilla-inbound@ee866fb50236 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjonco
bugs1257982
milestone68.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1257982 - [hazards] Inherit template attrs for plain HashMap/HashSet r=jonco Differential Revision: https://phabricator.services.mozilla.com/D23619
mfbt/HashTable.h
--- a/mfbt/HashTable.h
+++ b/mfbt/HashTable.h
@@ -403,17 +403,17 @@ class HashMap {
   using ModIterator = typename Impl::ModIterator;
   ModIterator modIter() { return mImpl.modIter(); }
 
   // These are similar to Iterator/ModIterator/iter(), but use different
   // terminology.
   using Range = typename Impl::Range;
   using Enum = typename Impl::Enum;
   Range all() const { return mImpl.all(); }
-};
+} MOZ_INHERIT_TYPE_ANNOTATIONS_FROM_TEMPLATE_ARGS;
 
 //---------------------------------------------------------------------------
 // HashSet
 //---------------------------------------------------------------------------
 
 // HashSet is a fast hash-based set of values.
 //
 // Template parameter requirements:
@@ -694,17 +694,17 @@ class HashSet {
   using ModIterator = typename Impl::ModIterator;
   ModIterator modIter() { return mImpl.modIter(); }
 
   // These are similar to Iterator/ModIterator/iter(), but use different
   // terminology.
   using Range = typename Impl::Range;
   using Enum = typename Impl::Enum;
   Range all() const { return mImpl.all(); }
-};
+} MOZ_INHERIT_TYPE_ANNOTATIONS_FROM_TEMPLATE_ARGS;
 
 //---------------------------------------------------------------------------
 // Hash Policy
 //---------------------------------------------------------------------------
 
 // A hash policy |HP| for a hash table with key-type |Key| must provide:
 //
 //  - a type |HP::Lookup| to use to lookup table entries;