diff --git a/js/src/js-config.h.in b/js/src/js-config.h.in index 82296887fb..1c0a7ef58a 100644 --- a/js/src/js-config.h.in +++ b/js/src/js-config.h.in @@ -14,16 +14,12 @@ /* Define to 1 if SpiderMonkey is in debug mode. */ #undef JS_DEBUG -/* - * NB: We have a special case for rust-bindgen, which wants to be able to - * generate both debug and release bindings on a single objdir. - */ #ifdef JS_DEBUG -#if !defined(DEBUG) && !defined(RUST_BINDGEN) +# ifndef DEBUG # error "SpiderMonkey was configured with --enable-debug, so DEBUG must be defined when including this header" # endif #else -# if defined(DEBUG) && !defined(RUST_BINDGEN) +# ifdef DEBUG # error "SpiderMonkey was configured with --disable-debug, so DEBUG must be not defined when including this header" # endif #endif diff --git a/layout/style/nsStyleCoord.h b/layout/style/nsStyleCoord.h index 3489a75c8f..bda17bbf50 100644 --- a/layout/style/nsStyleCoord.h +++ b/layout/style/nsStyleCoord.h @@ -72,7 +72,6 @@ typedef union { * the unit is a must before asking for the value in any particular * form. */ - /**
*/ class nsStyleCoord { public: // Non-reference counted calc() value. See nsStyleStruct.h for some uses @@ -263,7 +262,6 @@ private: * This is commonly used to hold the widths of the borders, margins, * or paddings of a box. */ - /** */ class nsStyleSides { public: nsStyleSides(); @@ -342,7 +340,6 @@ protected: * nsStyleCoord pairs. This is used to hold the dimensions of the * corners of a box (for, e.g., border-radius and outline-radius). */ - /** */ class nsStyleCorners { public: nsStyleCorners(); diff --git a/layout/style/nsStyleStruct.h b/layout/style/nsStyleStruct.h index 5763edfd93..c28f2bca9e 100644 --- a/layout/style/nsStyleStruct.h +++ b/layout/style/nsStyleStruct.h @@ -3831,100 +3831,4 @@ struct MOZ_NEEDS_MEMMOVABLE_MEMBERS nsStyleEffects uint8_t mMixBlendMode; // [reset] see nsStyleConsts.h }; -#define STATIC_ASSERT_TYPE_LAYOUTS_MATCH(T1, T2) \ - static_assert(sizeof(T1) == sizeof(T2), \ - "Size mismatch between " #T1 " and " #T2); \ - static_assert(alignof(T1) == alignof(T2), \ - "Align mismatch between " #T1 " and " #T2); \ - -#define STATIC_ASSERT_FIELD_OFFSET_MATCHES(T1, T2, field) \ - static_assert(offsetof(T1, field) == offsetof(T2, field), \ - "Field offset mismatch of " #field " between " #T1 " and " #T2); \ - -/** - * These *_Simple types are used to map Gecko types to layout-equivalent but - * simpler Rust types, to aid Rust binding generation. - * - * If something in this types or the assertions below needs to change, ask - * bholley, heycam or emilio before! - * - *