author | André Bargull <andre.bargull@gmail.com> |
Sat, 21 Mar 2020 14:17:31 +0000 | |
changeset 520004 | 477dab8b3324eb2939bacc0432b693199e1145c6 |
parent 520003 | eb49edf618494a8068af83f4cf4da7315a364182 |
child 520005 | ee8e9c99d479d97d96d46fa03aac6ab38cf8a8bf |
push id | 110801 |
push user | shindli@mozilla.com |
push date | Sat, 21 Mar 2020 15:31:45 +0000 |
treeherder | autoland@61a44ad12b15 [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | jwalden |
bugs | 1623957 |
milestone | 76.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
|
--- a/js/src/frontend/TokenStream.h +++ b/js/src/frontend/TokenStream.h @@ -186,25 +186,25 @@ #include "mozilla/Attributes.h" #include "mozilla/Casting.h" #include "mozilla/DebugOnly.h" #include "mozilla/Maybe.h" #include "mozilla/MemoryChecking.h" #include "mozilla/PodOperations.h" #include "mozilla/Span.h" #include "mozilla/TextUtils.h" -#include "mozilla/TypeTraits.h" #include "mozilla/Unused.h" #include "mozilla/Utf8.h" #include <algorithm> #include <stdarg.h> #include <stddef.h> #include <stdint.h> #include <stdio.h> +#include <type_traits> #include "jspubtd.h" #include "frontend/ErrorReporter.h" #include "frontend/Token.h" #include "frontend/TokenKind.h" #include "js/CompileOptions.h" #include "js/HashTable.h" // js::HashMap @@ -273,17 +273,17 @@ class TokenStreamShared { MOZ_ASSERT( modifier == nextToken.modifier || modifier == SlashIsInvalid, "This token was scanned with both SlashIsRegExp and SlashIsDiv, " "indicating the parser is confused about how to handle a slash here. " "See comment at Token::Modifier."); } }; -static_assert(mozilla::IsEmpty<TokenStreamShared>::value, +static_assert(std::is_empty_v<TokenStreamShared>, "TokenStreamShared shouldn't bloat classes that inherit from it"); template <typename Unit, class AnyCharsAccess> class TokenStreamSpecific; template <typename Unit> class MOZ_STACK_CLASS TokenStreamPosition final { public: