-
Notifications
You must be signed in to change notification settings - Fork 13.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make double ended searchers use dependent fingers #47208
Conversation
src/libcore/str/pattern.rs
Outdated
@@ -304,7 +304,7 @@ unsafe impl<'a> Searcher<'a> for CharSearcher<'a> { | |||
fn next_match(&mut self) -> Option<(usize, usize)> { | |||
loop { | |||
// get the haystack after the last character found | |||
let bytes = if let Some(slice) = self.haystack.as_bytes().get(self.finger..) { | |||
let bytes = if let Some(slice) = self.haystack.as_bytes().get(self.finger..self.finger_back) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[00:03:59] tidy error: /checkout/src/libcore/str/pattern.rs:307: line longer than 100 chars
4c99f48
to
1760240
Compare
Please revert the clippy submodule update.
|
done. |
1760240
to
85aab3f
Compare
src/libcore/str/pattern.rs
Outdated
@@ -304,7 +304,8 @@ unsafe impl<'a> Searcher<'a> for CharSearcher<'a> { | |||
fn next_match(&mut self) -> Option<(usize, usize)> { | |||
loop { | |||
// get the haystack after the last character found | |||
let bytes = if let Some(slice) = self.haystack.as_bytes().get(self.finger..) { | |||
let bytes = if let Some(slice) =self.haystack.as_bytes() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: missing space after the =
in if let Some(slice) =self.haystack.as_bytes()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
85aab3f
to
a50b2f1
Compare
@bors r+ |
📌 Commit a50b2f1 has been approved by |
@bors r- A new test failed.
|
This is weird, the tests worked fine locally. Perhaps something changed with the merge commit? |
lol so it turns out if you write a crate using Found the bug though. |
a50b2f1
to
9066219
Compare
Should work now, I forgot to add |
r? @pnkfelix |
Tests pass. |
@bors r+ |
📌 Commit 9066219 has been approved by |
@bors p=2 |
Make double ended searchers use dependent fingers (fixes #47175) r? @BurntSushi @alexcrichton needs uplift to beta
☀️ Test successful - status-appveyor, status-travis |
needs uplift |
(nominating just to ensure libs team looks at the beta-nomination.) |
Tagging as accepted since this fixes a regression |
(fixes #47175)
r? @BurntSushi @alexcrichton
needs uplift to beta