gecko-dev/mfbt
Nika Layzell bb85d44899 Bug 1440207 - Part 5: Disable UniqueFileHandle for RUST_BINDGEN, r=emilio,glandium
Apparently rust bindgen uses a hack which assumes all specializations of
`UniquePtr` have the basic layout and use a pointer member with an empty
deleter.

This incorrect assumption unfortunately comes up for UniqueFileHandle,
which replaces the pointer type using the deleter with a file handle
helper type.

As this fails to build with RUST_BINDGEN, this patch takes the same
approach as bug 1802320, and just disables building these types when
building headers for bindgen.

This does not fix the general issue of bindgen making incorrect
assumptions about the layout of UniquePtr with non-default deleters.
Ideally, all non-default deleters should be made opaque.

Differential Revision: https://phabricator.services.mozilla.com/D223628
2024-10-01 22:21:52 +00:00
..
double-conversion Bug 1844554 - Vendor double-conversion using mach vendor r=RyanVM 2023-07-21 08:12:09 +00:00
tests Bug 1879444 - Add test r=smaug,dom-storage-reviewers,asuth 2024-09-18 15:25:24 +00:00
Algorithm.h
Alignment.h
AllocPolicy.h
AlreadyAddRefed.h Bug 1856746: Extend already_AddRefed documentation to mention a case where it makes sense as a function parameter. r=nika 2023-10-04 18:49:03 +00:00
Array.h Bug 1920003 - Make OptimizationLevelInfo constexpr compatible r=jandem 2024-09-30 09:56:01 +00:00
ArrayUtils.h Bug 1640839 - Add some helpers for enums to calculate the size and use it in EnumeratedArray. r=glandium,jgilbert,media-playback-reviewers,padenot 2024-03-02 07:50:19 +00:00
Assertions.cpp
Assertions.h Bug 1893567 - Add MOZ_NOMERGE to Window MOZ_REALLY_CRASH implementation. r=gsvelto 2024-04-26 12:40:46 +00:00
AtomicBitfields.h
Atomics.h Bug 1874022 - pt 9. Reduce the cost of updating sAllocDelay r=glandium 2024-06-26 02:06:39 +00:00
Attributes.h Bug 1919777 - Introduce MOZ_CONSTINIT as a C++17 - compatible alternative to C++20 constinit r=glandium 2024-09-27 06:25:22 +00:00
BinarySearch.h Bug 1843181 - Make EqualRange return a std::pair. r=sergesanspaille 2023-07-14 21:51:27 +00:00
BitSet.h
BloomFilter.h Bug 1828560 - Part 2: Rename BitBloomFilter::mCounters to mBits. r=dpalmeiro 2023-04-19 05:25:09 +00:00
Buffer.h Bug 1519636 - Reformat recent changes to the Google coding style r=emilio,necko-reviewers,geckoview-reviewers,application-update-reviewers,media-playback-reviewers,devtools-reviewers,anti-tracking-reviewers,profiler-reviewers,win-reviewers,migration-reviewers,padenot,mconley,nchevobbe,kershaw,gstoll,mstange,bytesized,m_kato 2024-07-17 11:15:31 +00:00
BufferList.h Bug 1595453 - Allow serializing zero-length ByteBufs. r=nika 2023-11-02 18:05:31 +00:00
Casting.h Bug 1909472 - Support unsigned long in T2S for wasm builds. r=jandem 2024-07-24 12:46:12 +00:00
ChaosMode.cpp
ChaosMode.h
Char16.h
CheckedInt.h
CompactPair.h
Compiler.h Bug 1519636 - Reformat recent changes to the Google coding style r=emilio,media-playback-reviewers,padenot 2023-12-04 10:09:36 +00:00
DbgMacro.h
DebugOnly.h
DefineEnum.h Bug 1865896 - Add ToString function to DefineEnum r=padenot 2024-07-31 00:09:52 +00:00
DoublyLinkedList.h
EndianUtils.h
EnumeratedArray.h Bug 1920003 - Make OptimizationLevelInfo constexpr compatible r=jandem 2024-09-30 09:56:01 +00:00
EnumeratedRange.h Bug 1812353 - Update GPUSupportedLimits in webgpu.webidl. r=webgpu-reviewers,webidl,saschanaz,jimb,emilio,smaug 2023-06-12 21:10:11 +00:00
EnumSet.h Bug 1919767 - Flag various EnumSet<...> globals as constexpr in js/src/gc/GC.cpp r=sfink 2024-09-20 05:54:01 +00:00
EnumTypeTraits.h Bug 1916311 - [css-view-transitions] Initial pass at DOM API internals. r=boris,webidl,smaug 2024-09-04 20:24:55 +00:00
fallible.h
FastBernoulliTrial.h
FloatingPoint.cpp Bug 1660405 - Move away from mozilla::IsFinite in favor of std::isfinite. r=sergesanspaille 2023-03-22 11:35:33 +00:00
FloatingPoint.h Bug 1918688 - Use standard headers for infinity, and float's max/min r=nbp,media-playback-reviewers,glandium,karlt 2024-09-19 12:22:43 +00:00
FStream.h
FunctionRef.h Bug 1519636 - Reformat recent changes to the Google coding style r=emilio,media-playback-reviewers,padenot 2024-04-22 16:00:09 +00:00
FunctionTypeTraits.h Bug 1277372 - Remove unused "mozilla/TypeTraits.h" r=sergesanspaille 2023-04-17 13:50:11 +00:00
Fuzzing.h Bug 1821008 - Add nyx abort macro and more debug messages. r=truber,glandium 2023-03-14 07:50:36 +00:00
HashFunctions.cpp
HashFunctions.h Bug 1718516 - Fix AddToHash of 64-bits numbers on 32-bits platforms. r=nika,anba 2024-01-09 01:48:31 +00:00
HashTable.h Bug 1860451 - Add documentation for the hash inequality in HashPolicy::match. r=mgaudet DONTBUILD 2023-10-31 20:41:17 +00:00
HelperMacros.h
InitializedOnce.h
IntegerRange.h
IntegerTypeTraits.h Bug 1277372 - Remove unused "mozilla/TypeTraits.h" r=sergesanspaille 2023-04-17 13:50:11 +00:00
JSONWriter.cpp
JSONWriter.h
JsRust.h
Latin1.h Bug 1276351 - Move away from mozilla::tuple to std::tuple. r=necko-reviewers,sergesanspaille 2023-03-27 07:20:25 +00:00
Likely.h
LinkedList.h
Literals.h Bug 1864828 - pt 1. Move operators to create literals with units into mfbt/ r=glandium 2023-12-11 11:01:33 +00:00
MacroArgs.h
MacroForEach.h
MathAlgorithms.h Bug 1821362 - Replace EuclidGCD by a binary gcd algorithm using intrinsics. r=media-playback-reviewers,alwu 2023-05-24 13:18:41 +00:00
Maybe.h Bug 1919778 - Flag EnumeratedArray variable from dom/media/ipc/RemoteDecoderManagerChild.cpp as MOZ_CONSTINIT r=media-playback-reviewers,padenot 2024-09-29 11:38:07 +00:00
MaybeOneOf.h
MaybeStorageBase.h Bug 1919778 - Flag EnumeratedArray variable from dom/media/ipc/RemoteDecoderManagerChild.cpp as MOZ_CONSTINIT r=media-playback-reviewers,padenot 2024-09-29 11:38:07 +00:00
MemoryChecking.h
MemoryReporting.h
MoveOnlyFunction.h
moz.build Bug 1917739 - Move Lz4 and mfbt/Compression* to mozglue/static. r=nika,frontend-codestyle-reviewers 2024-09-10 20:35:56 +00:00
MPSCQueue.h Bug 1894147 - Fix C++20 std::memory_order build errors in MPSCQueue.h. r=xpcom-reviewers,emilio 2024-04-30 15:37:35 +00:00
MruCache.h Bug 1815396 - Fix documentation of MruCache. r=lsalzman 2023-03-06 10:43:27 +00:00
NeverDestroyed.h Bug 1851045 - Part 4: Add a NeverDestroyed helper type to MFBT for static local members, r=glandium 2023-09-27 19:14:16 +00:00
NonDereferenceable.h
NotNull.h Bug 1607634 - Part 1: Improve the ergonomics of using NotNull with RefPtr and nsCOMPtr, r=glandium 2023-03-20 15:40:35 +00:00
Opaque.h
OperatorNewExtensions.h
PairHash.h
Path.h
PodOperations.h
Poison.cpp Bug 1860247 - Poison.cpp: do not use 'else' after 'return'. r=sylvestre 2024-01-31 12:19:32 +00:00
Poison.h
RandomNum.cpp Bug 1816953 - Stop hooking BCryptGenRandom. r=cmartin,handyman 2023-05-03 13:40:36 +00:00
RandomNum.h
Range.h Bug 1875252 - Add MOZ_ASSERT_DEBUG_OR_FUZZING and use for Range/RangedPtr. r=nika 2024-02-06 21:31:19 +00:00
RangedArray.h
RangedPtr.h Bug 1875252 - Add MOZ_ASSERT_DEBUG_OR_FUZZING and use for Range/RangedPtr. r=nika 2024-02-06 21:31:19 +00:00
ReentrancyGuard.h
RefCounted.cpp Bug 1903037 part 1 - Support leak checking in MFBT code when included in SpiderMonkey. r=mccr8,glandium 2024-06-26 11:03:16 +00:00
RefCounted.h Bug 1903037 part 1 - Support leak checking in MFBT code when included in SpiderMonkey. r=mccr8,glandium 2024-06-26 11:03:16 +00:00
RefCountType.h
RefPtr.h Bug 1880192 - [1/5] MozPromise.h: some C++17 modernizations r=xpcom-reviewers,emilio 2024-03-05 17:22:21 +00:00
Result.h Bug 1404972 - To Result add operator==. r=glandium 2024-05-06 19:54:00 +00:00
ResultExtensions.h
ResultVariant.h
ReverseIterator.h
RollingMean.h
Saturate.h
ScopeExit.h
SegmentedVector.h Bug 1869256 - Add move assignment operator for SegmentedVector r=mccr8 2023-12-11 17:06:08 +00:00
SHA1.cpp
SHA1.h
SharedLibrary.h
SmallPointerArray.h
Span.h Bug 1891497 - Add mozilla::Span constructor for EnumeratedArray. r=glandium 2024-04-15 21:17:51 +00:00
SplayTree.h
SPSCQueue.h Bug 1844181 - Add memory synchronization to SPSCQueue's thread id reset methods. r=decoder,padenot,handyman 2023-10-09 13:02:58 +00:00
StaticAnalysisFunctions.h
StringBuffer.h Bug 1915328 - Update mallocedBufferBytes for string buffers used by nursery strings. r=jonco 2024-09-04 10:49:51 +00:00
STYLE
TaggedAnonymousMemory.cpp Bug 1866606 - Remove MozTaggedMemoryIsSupported. r=jld 2023-12-23 03:36:53 +00:00
TaggedAnonymousMemory.h Bug 1866606 - Remove MozTaggedMemoryIsSupported. r=jld 2023-12-23 03:36:53 +00:00
Tainting.h Bug 1811645 - avoid an American English colloquialism meaning "nonsense" r=Gijs 2023-04-20 22:24:00 +00:00
TemplateLib.h Bug 1679492 - Remove parts that are unused from mfbt/TemplateLib. r=sergesanspaille 2023-04-18 12:42:13 +00:00
TextUtils.h Bug 1880008 - Add char8_t string overloads to MFBT string functions when compiling with -std=c++20. r=xpcom-reviewers,emilio 2024-02-14 01:33:31 +00:00
ThreadLocal.h Bug 1880420 - Move __thread detection to moz.configure r=glandium 2024-02-28 11:11:17 +00:00
ThreadSafety.h Bug 1854305 - Don't enable thread safety annotations before clang 11. r=nika 2023-09-21 20:42:33 +00:00
ThreadSafeWeakPtr.h Bug 1843568 - Part 3: Annotate nsIEventTarget as rust_sync, r=xpcom-reviewers,barret 2023-07-20 17:39:03 +00:00
ToString.h
Try.h Bug 1855134 - Move existing MOZ_TRY macros to a dedicated header file; r=glandium 2023-09-28 20:46:07 +00:00
TsanOptions.h Bug 1824768 - Add TSan suppressions for external libs. r=decoder 2023-07-07 10:12:54 +00:00
TypedEnumBits.h Bug 1519636 - Reformat recent changes to the Google coding style r=emilio,media-playback-reviewers,padenot 2023-12-04 10:09:36 +00:00
Types.h
UniquePtr.h Bug 1873769 - Add TempPtrToSetter(UniquePtr<T>*) -> T**-ish for safe out-ptr RAII. r=mccr8 2024-01-26 21:05:30 +00:00
UniquePtrExtensions.cpp Bug 1440207 - Part 2: Add a cross-platform DuplicateFileHandle method to MFBT, r=glandium 2024-10-01 22:21:47 +00:00
UniquePtrExtensions.h Bug 1440207 - Part 5: Disable UniqueFileHandle for RUST_BINDGEN, r=emilio,glandium 2024-10-01 22:21:52 +00:00
Unused.cpp
Unused.h
Utf8.cpp
Utf8.h Bug 1880008 - Add char8_t string overloads to MFBT string functions when compiling with -std=c++20. r=xpcom-reviewers,emilio 2024-02-14 01:33:31 +00:00
Variant.h
Vector.h Bug 1828784 - Work around VS 2019+ SDK issue. r=glandium 2023-04-19 22:51:46 +00:00
WasiAtomic.h Bug 1899160 part 1 - Add support for allocating JS strings with a refcounted StringBuffer. r=sfink 2024-06-24 07:41:48 +00:00
WeakPtr.h
WindowsVersion.h Bug 1777960 - Patch msctf.dll to prevent a crash with ZoneAlarm Anti-Keylogger. r=gstoll,win-reviewers 2023-10-03 15:24:47 +00:00
WrappingOperations.h Bug 1896414 - Move MOZ_ASAN checks from old.configure to moz.configure r=glandium,geckoview-reviewers,m_kato 2024-06-18 14:44:40 +00:00
XorShift128PlusRNG.h