Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 2 commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
3c56c2e
stabilize `const_slice_reverse`
fee1-dead Jul 3, 2025
229be21
Add ui test unnessary-error-issue-138401.rs
xizheyin Jun 24, 2025
132a47e
Correct which exploit mitigations are enabled by default
1c3t3a Jul 15, 2025
49ae52e
Fix encoding of `link_section` and `no_mangle` cross crate
JonathanBrouwer Jul 17, 2025
9f16db6
Regression test
JonathanBrouwer Jul 17, 2025
12eedaf
Report the range of uninit bytes in CTFE errors
oli-obk Jun 18, 2025
2ce0b66
HIR ty lowering: Simplify signature of `lower_poly_trait_ref`
fmease Jun 18, 2025
10d7e5f
HIR ty lowering: Validate relaxed bounds in trait object types
fmease Jun 18, 2025
9788f59
Update comment about `where Ty:`
fmease Jun 18, 2025
1df99f2
AST lowering: More robustly deal with relaxed bounds
fmease Jun 18, 2025
652ba27
Show the memory of uninit reads
oli-obk Jun 18, 2025
8e840f7
opt-dist: make llvm builds optional
ognevny Jul 18, 2025
84ed70b
Reword diagnostics about relaxed bounds in invalid contexts
fmease Jun 20, 2025
879f62b
Reword diagnostic about relaxing non-`Sized` bound
fmease Jun 19, 2025
cdc3d70
Don't reject *multiple* relaxed bounds, reject *duplicate* ones.
fmease Jul 18, 2025
82a02ae
HIR ty lowering: Validate `PointeeSized` bounds
fmease Jun 20, 2025
466d33c
inline CrateLoader inside of CStore
LorrensP-2158466 Jul 15, 2025
181c1bd
Deduplicate `unmatched_delims` in `rustc_parse` to reduce confusion
xizheyin Jul 10, 2025
c65d3ce
Generalize `unsize` and `unsize_into` destinations
oli-obk Jul 3, 2025
61285e2
Rollup merge of #138554 - xizheyin:issue-138401, r=chenyukang
matthiaskrgr Jul 18, 2025
b3827e4
Rollup merge of #142673 - oli-obk:uninit-read-mem, r=RalfJung
matthiaskrgr Jul 18, 2025
f38891e
Rollup merge of #142693 - fmease:unbound-bettering, r=compiler-errors
matthiaskrgr Jul 18, 2025
401aaf4
Rollup merge of #143382 - fee1-dead-contrib:push-trrymlzqmmoz, r=jhpratt
matthiaskrgr Jul 18, 2025
232bef3
Rollup merge of #143928 - ognevny:opt-dist-build-llvm, r=Kobzol
matthiaskrgr Jul 18, 2025
7902470
Rollup merge of #143961 - 1c3t3a:correct-exploit-mitigations, r=rcvalle
matthiaskrgr Jul 18, 2025
1b437d7
Rollup merge of #144050 - JonathanBrouwer:cross-crate-reexport, r=jdo…
matthiaskrgr Jul 18, 2025
3a3a411
Rollup merge of #144059 - LorrensP-2158466:remove-crate-loader, r=pet…
matthiaskrgr Jul 18, 2025
a59efc6
Rollup merge of #144123 - oli-obk:ctfe-unsize, r=RalfJung
matthiaskrgr Jul 18, 2025
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
3 changes: 2 additions & 1 deletion library/core/src/slice/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -971,7 +971,7 @@ impl<T> [T] {
/// assert!(v == [3, 2, 1]);
/// ```
#[stable(feature = "rust1", since = "1.0.0")]
#[rustc_const_unstable(feature = "const_slice_reverse", issue = "135120")]
#[rustc_const_stable(feature = "const_slice_reverse", since = "CURRENT_RUSTC_VERSION")]
#[inline]
pub const fn reverse(&mut self) {
let half_len = self.len() / 2;
Expand Down Expand Up @@ -1004,6 +1004,7 @@ impl<T> [T] {
// this check tells LLVM that the indexing below is
// in-bounds. Then after inlining -- once the actual
// lengths of the slices are known -- it's removed.
// FIXME(const_trait_impl) replace with let (a, b) = (&mut a[..n], &mut b[..n]);
let (a, _) = a.split_at_mut(n);
let (b, _) = b.split_at_mut(n);

Expand Down