Skip to content
Merged
Changes from 2 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
19352e9
Add methods for converting bool to `Result<(), E>`
LimpSquid Jun 19, 2025
cda9bfe
Fix `x clean` with a fifo
ehuss Jul 1, 2025
ae0bef7
Remove fast path from codegen_select, since Sized has no methods
compiler-errors Jul 2, 2025
d3c0ef0
Use is_trivially_wf for ProvePredicate fast path
compiler-errors Jul 2, 2025
91c53c9
Consider polarity in sizedness fast path
compiler-errors Jul 2, 2025
9ce91f7
update coherence example
emmanuel-ferdman Jul 2, 2025
d9505f0
use unsigned_abs instead of `abs` on signed int to silence clippy
hkBst Jul 3, 2025
1c3454a
remove redundant #[must_use]
hkBst Jul 3, 2025
d3f2e2e
simplify receivers for some array method calls
hkBst Jul 3, 2025
3380bfd
Replace kw_span by full span.
cjgillot Jul 2, 2024
510e5d7
rustdoc: don't treat methods under const impls or traits as const
fee1-dead Jul 3, 2025
51857ad
Always use the pure Rust fallback instead of `llvm.{maximum,minimum}`
Urgau Jul 3, 2025
f5fbb2c
compiler: inline 1-2 query provide fn in hir_analysis and hir_typeck
workingjubilee Jul 3, 2025
3b7f9f9
compiler: document all provide fn in hir_analysis and hir_typeck
workingjubilee Jul 3, 2025
e080bc8
Rollup merge of #142749 - LimpSquid:bool_to_result, r=scottmcm
jhpratt Jul 4, 2025
826d4bc
Rollup merge of #143288 - ehuss:fix-clean-fifo, r=Kobzol
jhpratt Jul 4, 2025
9de211b
Rollup merge of #143307 - compiler-errors:fast-path-nitpicks, r=lcnr
jhpratt Jul 4, 2025
25eb325
Rollup merge of #143346 - emmanuel-ferdman:master, r=tshepang
jhpratt Jul 4, 2025
7c68a8d
Rollup merge of #143356 - hkBst:clippy-fix-2, r=scottmcm
jhpratt Jul 4, 2025
5adf3ef
Rollup merge of #143370 - hkBst:clippy-fix-4, r=tgross35
jhpratt Jul 4, 2025
e55514b
Rollup merge of #143378 - hkBst:clippy-fix-6, r=tgross35
jhpratt Jul 4, 2025
05f5690
Rollup merge of #143380 - cjgillot:kw_span, r=compiler-errors
jhpratt Jul 4, 2025
01fe1c0
Rollup merge of #143381 - fee1-dead-contrib:push-pzxuvlnymxpu, r=Guil…
jhpratt Jul 4, 2025
9852ace
Rollup merge of #143394 - workingjubilee:reorganize-hir-analysis-prov…
jhpratt Jul 4, 2025
e4e26d2
Rollup merge of #143395 - Urgau:llvm-fallback-minimum-maximum, r=tgro…
jhpratt Jul 4, 2025
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions library/core/src/array/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ impl<T, const N: usize> [T; N] {
)]
#[inline]
pub fn split_array_ref<const M: usize>(&self) -> (&[T; M], &[T]) {
(&self[..]).split_first_chunk::<M>().unwrap()
self.split_first_chunk::<M>().unwrap()
}

/// Divides one mutable array reference into two at an index.
Expand Down Expand Up @@ -740,7 +740,7 @@ impl<T, const N: usize> [T; N] {
)]
#[inline]
pub fn split_array_mut<const M: usize>(&mut self) -> (&mut [T; M], &mut [T]) {
(&mut self[..]).split_first_chunk_mut::<M>().unwrap()
self.split_first_chunk_mut::<M>().unwrap()
}

/// Divides one array reference into two at an index from the end.
Expand Down Expand Up @@ -785,7 +785,7 @@ impl<T, const N: usize> [T; N] {
)]
#[inline]
pub fn rsplit_array_ref<const M: usize>(&self) -> (&[T], &[T; M]) {
(&self[..]).split_last_chunk::<M>().unwrap()
self.split_last_chunk::<M>().unwrap()
}

/// Divides one mutable array reference into two at an index from the end.
Expand Down Expand Up @@ -818,7 +818,7 @@ impl<T, const N: usize> [T; N] {
)]
#[inline]
pub fn rsplit_array_mut<const M: usize>(&mut self) -> (&mut [T], &mut [T; M]) {
(&mut self[..]).split_last_chunk_mut::<M>().unwrap()
self.split_last_chunk_mut::<M>().unwrap()
}
}

Expand Down