Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
cbe428d
use `confstr(_CS_DARWIN_USER_TEMP_DIR, ...)` as a `TMPDIR` fallback o…
thomcc Aug 19, 2022
6d075dc
Prefer `target_vendor = "apple"` on confstr
madsmtm Oct 10, 2024
b62ee10
Use with_capacity(0) because we're reading the capacity later on
madsmtm Oct 10, 2024
204b228
Allow disabling ASan instrumentation for globals
BertalanD Jul 8, 2024
d318878
Reduce integer `Display` implementation size
GuillaumeGomez Nov 20, 2024
5d30436
Re-delay a resolve `bug`
jieyouxu Nov 21, 2024
9a30362
Update TRPL to latest, including new Chapter 17: Async and Await
chriskrycho Oct 17, 2024
34b4518
Update messages which reference book chs. 17-20
chriskrycho Oct 17, 2024
85c582c
Add support for `--library-path` to `rustbook test`
chriskrycho Oct 18, 2024
e0d7cf0
Update bootstrap tests to support book dependencies
chriskrycho Oct 18, 2024
99832cb
rustbook: fix two small typos
chriskrycho Oct 18, 2024
21dd59f
Update tests for new TRPL chapter order
chriskrycho Oct 30, 2024
30f9f60
Vendor `trpl` crate so The Book tests work offline
chriskrycho Nov 20, 2024
f98d9dd
Don't try to use confstr in Miri
madsmtm Oct 10, 2024
c85a742
Mark '<[T; N]>::as_mut_slice' as 'const';
bjoernager Nov 22, 2024
30c7df6
Improve code by using `unsigned_abs`
GuillaumeGomez Nov 20, 2024
38bf073
Rollup merge of #127483 - BertalanD:no_sanitize-global-var, r=rcvalle
compiler-errors Nov 23, 2024
d9d0d29
Rollup merge of #131505 - madsmtm:darwin_user_temp_dir, r=dtolnay
compiler-errors Nov 23, 2024
ed6e729
Rollup merge of #131859 - chriskrycho:update-trpl, r=onur-ozkan
compiler-errors Nov 23, 2024
1f950f6
Rollup merge of #133247 - GuillaumeGomez:reduce-integer-display-impl,…
compiler-errors Nov 23, 2024
be5815d
Rollup merge of #133286 - jieyouxu:bug-ourselves, r=compiler-errors
compiler-errors Nov 23, 2024
e8bafa3
Rollup merge of #133332 - bjoernager:const-array-as-mut-slice, r=jhpratt
compiler-errors Nov 23, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Mark '<[T; N]>::as_mut_slice' as 'const';
  • Loading branch information
bjoernager committed Nov 22, 2024
commit c85a742cb12491b1f138c5d208f9c0cc5434dd77
3 changes: 2 additions & 1 deletion library/core/src/array/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,8 @@ impl<T, const N: usize> [T; N] {
/// Returns a mutable slice containing the entire array. Equivalent to
/// `&mut s[..]`.
#[stable(feature = "array_as_slice", since = "1.57.0")]
pub fn as_mut_slice(&mut self) -> &mut [T] {
#[rustc_const_unstable(feature = "const_array_as_mut_slice", issue = "133333")]
pub const fn as_mut_slice(&mut self) -> &mut [T] {
self
}

Expand Down
Loading