-
Notifications
You must be signed in to change notification settings - Fork 896
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
also patch cxx crate from https://github.com/brave/brave-core/commit/… (
#27185) also patch cxx crate from a22fc31 Change presubmit patch empty line to error to allow upstream patches that do not comply with Brave patching standards
- Loading branch information
Showing
2 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
patches/third_party-rust-chromium_crates_io-vendor-cxx-1.0.129-include-cxx.h.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
diff --git a/third_party/rust/chromium_crates_io/vendor/cxx-1.0.129/include/cxx.h b/third_party/rust/chromium_crates_io/vendor/cxx-1.0.129/include/cxx.h | ||
index 3414e4c8a5434f6d43b8bf7a76e634ac0c7d06a5..03fa9bf730156c0926aef35bcf3fc0a98c98a0db 100644 | ||
--- a/third_party/rust/chromium_crates_io/vendor/cxx-1.0.129/include/cxx.h | ||
+++ b/third_party/rust/chromium_crates_io/vendor/cxx-1.0.129/include/cxx.h | ||
@@ -2,6 +2,7 @@ | ||
#include <algorithm> | ||
#include <array> | ||
#include <cassert> | ||
+#include <concepts> | ||
#include <cstddef> | ||
#include <cstdint> | ||
#include <exception> | ||
@@ -244,6 +245,12 @@ public: | ||
bool operator>(const iterator &) const noexcept; | ||
bool operator>=(const iterator &) const noexcept; | ||
|
||
+ using iterator_concept = std::contiguous_iterator_tag; | ||
+ template <std::integral N> | ||
+ friend iterator operator+(N n, const iterator &it) noexcept { | ||
+ return it + n; | ||
+ } | ||
+ | ||
private: | ||
friend class Slice; | ||
void *pos; |