about summary refs log tree commit diff
path: root/library/core/src/ops/index.rs
AgeCommit message (Collapse)AuthorLines
2025-09-06clean up some old const trait impl syntaxNathaniel McCallum-4/+2
2025-08-06tidyBoxy-1/+1
2025-07-15constify `Index` trait and its slice implsOli Scherer-1/+5
2025-05-17Switch library rustc_unimplemented to use `Self` and `This`mejrs-3/+3
2025-05-12update cfg(bootstrap)Pietro Albini-2/+2
2025-04-20Add `#[rustc_no_implicit_autorefs]` and apply it to std methodsUrgau-0/+2
2024-01-05Replace some usage of `#[rustc_on_unimplemented]` withGeorg Semmler-1/+1
`#[diagnostic::on_unimplemented]` This commit replaces those `#[rustc_on_unimplemented]` attributes with their equivalent `#[diagnostic::on_unimplemented]` where this is supported (So no filter or any extended option)
2023-10-16Make `rustc_onunimplemented` export path agnosticNilstrieb-1/+1
This makes it so that all the matchers that match against paths use the definition path instead of the export path. This removes all duplication around `std`/`alloc`/`core`. This is not necessarily optimal because we now depend on internal implementation details like `core::ops::control_flow::ControlFlow`, which is not very nice and probably not acceptable for a stable `on_unimplemented`. An alternative would be to just string-replace normalize away `alloc`/`core` to `std` as a special case, keeping the export paths but making it so that we're still fully standard library flavor agnostic.
2023-06-27Make `rustc_on_unimplemented` std-agnosticRageking8-1/+1
2023-04-19Auto merge of #110393 - fee1-dead-contrib:rm-const-traits, r=oli-obkbors-3/+1
Rm const traits in libcore See [zulip thread](https://rust-lang.zulipchat.com/#narrow/stream/146212-t-compiler.2Fconst-eval/topic/.60const.20Trait.60.20removal.20or.20rework) * [x] Bless ui tests * [ ] Re constify some unstable functions with workarounds if they are needed
2023-04-18Use a diagnostic item instead of filtering for Index::OutputMichael Goulet-0/+1
2023-04-16rm const traits in libcoreDeadbeef-3/+1
2022-12-20Fix some `~const` usage in libcoreOli Scherer-1/+1
2022-11-06cfg-step codeMark Rousskov-2/+2
2022-09-16Add more `const_trait` annotationsDeadbeef-2/+2
2022-09-16Require `#[const_trait]` for `const` `impl`sDeadbeef-0/+2
2022-03-10Use implicit capture syntax in format_argsT-O-R-U-S-2/+2
This updates the standard library's documentation to use the new syntax. The documentation is worthwhile to update as it should be more idiomatic (particularly for features like this, which are nice for users to get acquainted with). The general codebase is likely more hassle than benefit to update: it'll hurt git blame, and generally updates can be done by folks updating the code if (and when) that makes things more readable with the new format. A few places in the compiler and library code are updated (mostly just due to already having been done when this commit was first authored).
2021-04-18Say that it "may panic"r00ster-2/+2
2021-04-18Document that `index` and `index_mut` can panicr00ster-0/+8
2020-11-21More consistently use spaces after commas in lists in docsCarol (Nichols || Goulding)-1/+1
2020-08-21Remove links that get imported from the preludeLeSeulArtichaut-1/+0
2020-08-21Use intra-doc-links in `core::ops::*`LeSeulArtichaut-5/+1
2020-07-27mv std libs to library/mark-0/+172