about summary refs log tree commit diff
path: root/library/core/src/slice/index.rs
AgeCommit message (Expand)AuthorLines
2025-09-10Rollup merge of #144765 - Qelxiros:range-inclusive-last, r=jhprattMatthias Krüger-0/+41
2025-09-08change end to lastJeremy Smart-0/+41
2025-09-06clean up some old const trait impl syntaxNathaniel McCallum-1/+1
2025-08-21Consolidate panicking functions in `slice/index.rs`Karl Meakin-97/+103
2025-08-06tidyBoxy-2/+2
2025-07-15constify `Index` trait and its slice implsOli Scherer-4/+6
2025-07-15constify `SliceIndex` traitOli Scherer-11/+24
2025-06-02Remove bootstrap cfgs from library/Josh Stone-53/+4
2025-05-30`slice.get(i)` should use a slice projection in MIR, like `slice[i]` doesScott McMurray-7/+49
2025-05-27Auto merge of #129658 - saethlin:spare-a-crumb, r=jhprattbors-0/+6
2025-05-21Add some track_caller info to precondition panicsBen Kimock-0/+6
2025-05-17Switch library rustc_unimplemented to use `Self` and `This`mejrs-1/+1
2024-11-05add const_eval_select macro to reduce redundancyRalf Jung-1/+1
2024-11-03add const_panic macro to make it easier to fall back to non-formatting panic ...Ralf Jung-49/+19
2024-10-25Re-do recursive const stability checksRalf Jung-1/+3
2024-09-08remove const_slice_index annotations, it never had a feature gate anywayRalf Jung-10/+0
2024-09-08add FIXME(const-hack)Ralf Jung-3/+6
2024-07-29Reformat `use` declarations.Nicholas Nethercote-2/+1
2024-07-26Fix doc nitsJohn Arundel-6/+9
2024-07-05add `new_range_api` for RFC 3550Peter Jaszkowiak-2/+122
2024-06-15Redo SliceIndex implementationsScott McMurray-32/+86
2024-05-23Add assert_unsafe_precondition to unchecked_{add,sub,neg,mul,shl,shr} methodsltdk-3/+2
2024-03-31doc: describe panic conditions for SliceIndex implementationsJani Mustonen-0/+11
2024-03-23move assert_unsafe_preconditions to its own fileRalf Jung-1/+1
2024-03-20step cfgsMark Rousskov-19/+3
2024-03-11Rollup merge of #121148 - clarfonthey:try-range, r=dtolnayJacob Pratt-4/+55
2024-03-10docs: Correct ptr/ref verbiage in SliceIndex docs.matt rice-4/+4
2024-03-08Distinguish between library and lang UB in assert_unsafe_preconditionBen Kimock-19/+33
2024-03-02const_eval_select: make it safe but be careful with what we expose on stable ...Ralf Jung-1/+6
2024-02-19Add more inline(always) to fix opt-level=z test on wasm32Ben Kimock-2/+2
2024-02-19Convert debug_assert_nounwind to intrinsics::debug_assertionsBen Kimock-8/+12
2024-02-15Add slice::try_rangeltdk-4/+55
2024-01-13libs: use `assert_unchecked` instead of intrinsicjoboet-1/+1
2023-12-04use `assume(idx < self.len())` in `[T]::get_unchecked`bendn-1/+4
2023-11-25Convert many `assert_unsafe_precondition` to `debug_assert_nounwind`Gary Guo-46/+29
2023-10-16Make `rustc_onunimplemented` export path agnosticNilstrieb-4/+1
2023-07-31impl SliceIndex<str> for (Bound<usize>, Bound<usize>)Matt Fellenz-3/+3
2023-06-27Make `rustc_on_unimplemented` std-agnosticRageking8-1/+4
2023-04-16rm const traits in libcoreDeadbeef-15/+12
2023-03-05Use `nuw` when calculating slice lengths from `Range`sScott McMurray-3/+6
2023-01-21debug assertions for `slice::split_at_unchecked`, `str::get_unchecked`Peter Jaszkowiak-3/+2
2022-11-29Adjust inlining attributes around panic_immediate_abortBen Kimock-10/+11
2022-10-26Print the precondition we violated, and visible through output captureBen Kimock-10/+26
2022-09-22Auto merge of #100982 - fee1-dead-contrib:const-impl-requires-const-trait, r=...bors-0/+1
2022-09-19Optimize `array::IntoIter`Scott McMurray-0/+75
2022-09-16Require `#[const_trait]` for `const` `impl`sDeadbeef-0/+1
2022-09-04Make `const_eval_select` a real intrinsicDeadbeef-4/+16
2022-05-24Fix a mistake in `SliceIndex`'s documentationwackbyte-1/+1
2022-04-04Mention implementers of unsatisfied traitEsteban Kuber-0/+1
2022-04-03Auto merge of #92686 - saethlin:unsafe-debug-asserts, r=Amanieubors-3/+15