rust/library/core/src
Eric Huss d43c9ad5d3
Rollup merge of #92600 - asquared31415:float-must-use, r=joshtriplett
Add some missing `#[must_use]` to some `f{32,64}` operations

This PR adds `#[must_use]` to the following methods:
 - `f32::recip`
 - `f32::max`
 - `f32::min`
 - `f32::maximum`
 - `f32::minimum`
 and their equivalents in `f64`.
 These methods all produce a new value without modifying the original and so are pointless to call without using the result.
2022-01-07 20:21:00 -08:00
..
alloc Fix a bunch of typos 2021-12-14 16:40:43 +01:00
array Do array-slice equality via arrays, rather than always via slices 2021-12-14 13:15:15 -08:00
char Implement TryFrom<char> for u8 2022-01-07 12:28:47 -08:00
convert Revert "Auto merge of #89450 - usbalbin:const_try_revert, r=oli-obk" 2021-12-12 12:34:59 +08:00
fmt Touch up Debug example from PR 92322 2022-01-04 14:28:28 -08:00
future Rollup merge of #91721 - danielhenrymantilla:patch-1, r=joshtriplett 2021-12-11 17:35:27 +01:00
hash Apply suggestions from code review 2021-11-23 23:55:05 +01:00
iter Rollup merge of #91916 - steffahn:fix-typos, r=dtolnay 2021-12-15 10:57:02 +01:00
macros Make the documentation of builtin macro attributes accessible 2022-01-03 20:43:16 +01:00
mem Add note about non_exhaustive to variant_count 2022-01-04 21:58:36 -05:00
num add some missing must use to float ops 2022-01-06 00:20:58 -05:00
ops Rollup merge of #91587 - nrc:dispatchfromdyn-docs, r=yaahc 2022-01-04 21:23:05 +01:00
panic Rollup merge of #89897 - jkugelman:must-use-core, r=joshtriplett 2021-10-31 09:20:26 +01:00
prelude Make the documentation of builtin macro attributes accessible 2022-01-03 20:43:16 +01:00
ptr Rollup merge of #91823 - woppopo:const_ptr_as_ref, r=lcnr 2021-12-21 08:33:40 +01:00
slice Rollup merge of #92092 - saethlin:fix-sort-guards-sb, r=danielhenrymantilla 2022-01-05 15:05:44 +01:00
str Fix a bunch of typos 2021-12-14 16:40:43 +01:00
stream Remove P: Unpin bound on impl Stream for Pin 2021-12-17 11:14:02 +08:00
sync Make From impls of NonZero integer const. 2021-10-20 12:04:58 +09:00
task Rollup merge of #89897 - jkugelman:must-use-core, r=joshtriplett 2021-10-31 09:20:26 +01:00
unicode Regenerate tables for Unicode 14.0.0 2021-10-06 17:49:33 -07:00
any.rs Reverts #92135 because perf regression 2021-12-26 16:02:33 +03:00
ascii.rs Add #[must_use] to remaining core functions 2021-10-30 18:21:29 -04:00
bool.rs Constify bool::then{,_some} 2021-12-15 00:11:23 +08:00
borrow.rs Make Borrow and BorrowMut impls const 2021-12-04 21:57:39 +09:00
cell.rs Fix a bunch of typos 2021-12-14 16:40:43 +01:00
clone.rs Update Copy/Clone documentation WRT arrays 2021-11-08 13:11:59 -05:00
cmp.rs Mark defaulted PartialEq/PartialOrd methods as const 2021-12-16 21:35:25 -08:00
default.rs Add #[must_use] to remaining core functions 2021-10-30 18:21:29 -04:00
ffi.rs Use target_family = "wasm" 2021-11-10 08:35:42 -08:00
hint.rs Add is_riscv_feature_detected!; modify impl of hint::spin_loop 2022-01-05 15:44:52 +08:00
internal_macros.rs Added docs to internal_macro const 2021-10-22 10:07:35 +13:00
intrinsics.rs Constify core::intrinsics::black_box 2021-12-23 20:07:41 +09:00
lazy.rs Use UnsafeCell::get_mut() in core::lazy::OnceCell::get_mut() 2021-12-30 05:04:44 +02:00
lib.rs Constify core::intrinsics::black_box 2021-12-23 20:07:41 +09:00
marker.rs Update Copy/Clone documentation WRT arrays 2021-11-08 13:11:59 -05:00
option.rs Move contains method of Option and Result lower in docs 2022-01-03 10:46:15 -08:00
panic.rs Allow panic!("{}", computed_str) in const fn. 2021-09-15 21:56:43 +01:00
panicking.rs Permit const assertions in stdlib 2021-11-08 17:06:00 -05:00
pin.rs Add #[must_use] to remaining core functions 2021-10-30 18:21:29 -04:00
primitive.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
primitive_docs.rs Update docs. 2021-12-04 19:40:33 +01:00
result.rs Rollup merge of #92483 - ksqsf:master, r=dtolnay 2022-01-05 15:05:47 +01:00
time.rs Apply cfg-bootstrap switch 2021-11-30 10:51:42 -05:00
tuple.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
unit.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00