rust/library/core/src
Jubilee fd78b671a8
Rollup merge of #131457 - kpreid:fnaddr, r=dtolnay
Expand `ptr::fn_addr_eq()` documentation.

* Describe more clearly what is (not) guaranteed, and de-emphasize the description of rustc implementation details.
* Explain what you *can* reliably use it for.

Tracking issue for `ptr_fn_addr_eq`: #129322

The motivation for this PR is that I just learned that `ptr::fn_addr_eq()` exists, read the documentation, and thought: “*I* know what this means, but someone not already familiar with how `rustc` works could be left wondering whether this is even good for anything.” Fixing that seems especially important if we’re going to recommend people use it instead of `==` (as per #118833).
2024-10-24 23:23:54 -07:00
..
alloc Fixing rustDoc for LayoutError. 2024-10-10 16:18:56 -04:00
array update bootstrap configs 2024-10-15 20:30:23 -07:00
ascii Add more precondition check tests 2024-10-09 19:34:27 -04:00
async_iter Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
cell Auto merge of #131767 - cuviper:bump-stage0, r=Mark-Simulacrum 2024-10-16 14:40:08 +00:00
char update bootstrap configs 2024-10-15 20:30:23 -07:00
clone CloneToUninit: use a private specialization trait 2024-07-29 20:44:43 +03:00
cmp Use generic NonZero everywhere in core. 2024-02-22 15:17:33 +01:00
convert Fix doc nits 2024-07-26 13:26:33 +01:00
ffi Use &raw in the standard library 2024-09-25 17:03:20 -07:00
fmt Rollup merge of #131697 - ShE3py:rt-arg-lifetimes, r=Amanieu 2024-10-21 20:32:01 -07:00
future Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
hash Reformat use declarations. 2024-07-29 08:26:52 +10:00
intrinsics grammar fix 2024-10-06 20:37:10 +03:00
io Fix doc nits 2024-07-26 13:26:33 +01:00
iter "innermost", "outermost", "leftmost", and "rightmost" don't need hyphens 2024-10-23 02:45:24 -07:00
macros Missing parenthesis 2024-10-18 01:04:01 +05:00
mem update bootstrap configs 2024-10-15 20:30:23 -07:00
net Document textual format of SocketAddrV{4,6} 2024-10-24 08:56:32 -04:00
num update bootstrap configs 2024-10-15 20:30:23 -07:00
ops Rename Receiver -> LegacyReceiver 2024-10-22 12:55:16 +00:00
panic Rename doctest attribute standalone-crate into standalone_crate for coherency 2024-09-29 13:01:41 +02:00
prelude Avoid comments that describe multiple use items. 2024-07-17 08:02:46 +10:00
ptr Rollup merge of #131457 - kpreid:fnaddr, r=dtolnay 2024-10-24 23:23:54 -07:00
range Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
slice Rollup merge of #130991 - LaihoE:vectorized_slice_contains, r=Noratrieb 2024-10-23 22:11:02 +02:00
str provide default impl for as_utf8_pattern 2024-10-24 19:19:38 +03:00
sync move strict provenance lints to new feature gate, remove old feature gates 2024-10-21 15:22:17 +01:00
task replace placeholder version 2024-10-15 20:13:55 -07:00
unicode switch unicode-data back to 'static' 2024-10-13 11:53:06 +02:00
any.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
arch.rs update bootstrap configs 2024-10-15 20:30:23 -07:00
ascii.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
asserting.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
bool.rs [Clippy] Swap filter_map_bool_then to use diagnostic item instead of path 2024-09-19 13:13:42 +01:00
borrow.rs Suggest borrowing on fn argument that is impl AsRef 2024-05-09 23:25:31 +00:00
cell.rs update bootstrap configs 2024-10-15 20:30:23 -07:00
clone.rs update cfgs 2024-09-05 17:24:01 +01:00
cmp.rs Remove duplicate section 2024-09-29 09:32:03 +02:00
default.rs update cfgs 2024-09-05 17:24:01 +01:00
error.md Mention core's PanicInfo in error.md. 2024-06-11 15:47:00 +02:00
error.rs Library: Rename "object safe" to "dyn compatible" 2024-10-09 18:48:29 +02:00
escape.rs Optimize escape_ascii 2024-10-09 17:17:50 -04:00
hint.rs add extra linebreaks so rustdoc can identify the first sentence 2024-09-01 14:22:50 -07:00
internal_macros.rs Fix doc nits 2024-07-26 13:26:33 +01:00
intrinsics.rs move strict provenance lints to new feature gate, remove old feature gates 2024-10-21 15:22:17 +01:00
lib.miri.rs add 'x.py miri', and make it work for 'library/{core,alloc,std}' 2024-04-03 20:27:20 +02:00
lib.rs move strict provenance lints to new feature gate, remove old feature gates 2024-10-21 15:22:17 +01:00
marker.rs Remove associated type based effects logic 2024-10-24 09:46:36 +00:00
option.rs update bootstrap configs 2024-10-15 20:30:23 -07:00
panic.rs simplify abort_unwind 2024-09-15 14:27:24 -04:00
panicking.rs Auto merge of #129491 - StackOverflowExcept1on:master, r=m-ou-se 2024-09-18 11:57:31 +00:00
pat.rs Add tracking issue to core-pattern-type 2024-08-07 20:43:05 -04:00
pin.rs Rename Receiver -> LegacyReceiver 2024-10-22 12:55:16 +00:00
primitive.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
primitive_docs.rs update ABI compatibility docs for new option-like rules 2024-10-21 16:25:32 +01:00
random.rs random: add tracking issue, address other comments 2024-09-23 10:36:16 +02:00
range.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
result.rs update bootstrap configs 2024-10-15 20:30:23 -07:00
time.rs replace placeholder version 2024-10-15 20:13:55 -07:00
tuple.rs update cfgs 2024-09-05 17:24:01 +01:00
ub_checks.rs Clean up is_aligned_and_not_null 2024-10-09 19:34:27 -04:00
unit.rs Import the 2021 prelude in the core crate 2024-03-25 13:12:06 -07:00