Skip to content

Commit c56e9cf

Browse files
bend-nworkingjubilee
authored andcommitted
Revert "add more inline"
This reverts commit 99e141c.
1 parent 5644c30 commit c56e9cf

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

library/core/src/slice/memchr.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ const fn memchr_naive(x: u8, text: &[u8]) -> Option<usize> {
4848
}
4949

5050
#[rustc_allow_const_fn_unstable(const_eval_select)] // fallback impl has same behavior
51-
#[inline]
5251
const fn memchr_aligned(x: u8, text: &[u8]) -> Option<usize> {
5352
// The runtime version behaves the same as the compiletime version, it's
5453
// just more optimized.

library/core/src/str/iter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ impl<'a, P: Pattern> SplitInternal<'a, P> {
656656
None
657657
}
658658

659-
#[inline(always)]
659+
#[inline]
660660
fn next(&mut self) -> Option<&'a str> {
661661
if self.finished {
662662
return None;

0 commit comments

Comments
 (0)