rust/library/core/src
bors 83f08223a9 Auto merge of #87196 - oxalica:option-insert-must-use, r=joshtriplett
Mark `Option::insert` as must_use

Some people seems misled by the function name and use it in case where a simple assignment just works.
If the return value is not used, `option = Some(value);` should be preferred instead of `option.insert(value);`
2021-07-19 07:03:36 +00:00
..
alloc Use #[non_exhaustive] where appropriate 2021-06-24 04:16:11 -04:00
array Stabilize [T; N]::map() 2021-07-15 16:27:08 -07:00
char Use HTTPS links where possible 2021-06-23 16:26:46 -04:00
convert Added diagnostic items to structs and traits for Clippy 2021-07-15 23:57:02 +02:00
fmt Auto merge of #86048 - nbdd0121:no_floating_point, r=Amanieu 2021-07-04 14:18:57 +00:00
future remove cfg(bootstrap) 2021-05-24 11:07:48 -04:00
hash Add tracking issue and rename to hash_one 2021-06-24 01:30:48 -07:00
iter Rollup merge of #87170 - xFrednet:clippy-5393-add-diagnostic-items, r=Manishearth,oli-obk 2021-07-18 14:21:57 +09:00
macros i sweat to god 2021-07-16 13:25:11 -07:00
mem Rollup merge of #87170 - xFrednet:clippy-5393-add-diagnostic-items, r=Manishearth,oli-obk 2021-07-18 14:21:57 +09:00
num Auto merge of #86761 - Alexhuszagh:master, r=estebank 2021-07-17 12:56:22 +00:00
ops Fix typo in ops::Drop docs 2021-07-07 22:26:32 +03:00
prelude Stabilize {std, core}::prelude::rust_*. 2021-06-14 14:44:50 +00:00
ptr Add reference to tracking issue #86302 for const_ptr_write 2021-06-27 12:05:19 +02:00
slice Add safety comments in private core::slice::rotate::ptr_rotate function 2021-07-14 15:31:12 +02:00
str Rollup merge of #86852 - Amanieu:remove_doc_aliases, r=joshtriplett 2021-07-06 02:33:16 +09:00
stream Remove Stream::next 2021-01-23 16:54:56 +01:00
sync Fix typo in core::sync::atomic::compiler_fence example 2021-07-06 10:53:14 -03:00
task Auto merge of #86598 - yoshuawuyts:poll-method-docs, r=JohnTitor 2021-07-04 20:00:57 +00:00
unicode Use HTTPS links where possible 2021-06-23 16:26:46 -04:00
any.rs Added diagnostic items to structs and traits for Clippy 2021-07-15 23:57:02 +02:00
ascii.rs Replace all fmt.pad with debug_struct 2021-04-21 14:38:24 +02:00
bool.rs Fix tracking issue for bool_to_option 2021-07-10 18:43:52 -04:00
borrow.rs Fix borrow and deref 2021-03-03 11:23:29 +01:00
cell.rs Use #[non_exhaustive] where appropriate 2021-06-24 04:16:11 -04:00
clone.rs Updates Clone docs for Copy comparison. 2021-06-10 11:28:26 -04:00
cmp.rs Added diagnostic items to functions for Clippy 2021-07-15 23:47:03 +02:00
default.rs Add diagnostic item to Default trait 2021-03-04 10:14:48 -08:00
ffi.rs Replace all fmt.pad with debug_struct 2021-04-21 14:38:24 +02:00
hint.rs Auto merge of #84725 - sebpop:arm64-isb, r=joshtriplett 2021-05-02 04:54:31 +00:00
internal_macros.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
intrinsics.rs PR feedback 2021-07-08 14:55:57 -07:00
lazy.rs Capitalize safety comments 2020-09-08 22:26:44 -04:00
lib.rs rename assert_matches module 2021-07-16 09:18:14 -07:00
marker.rs Rename variable 2021-06-29 20:26:37 -04:00
option.rs Auto merge of #87196 - oxalica:option-insert-must-use, r=joshtriplett 2021-07-19 07:03:36 +00:00
panic.rs Implement new panic!() behaviour for Rust 2021. 2021-01-25 13:48:11 +01:00
panicking.rs Fix panic message of assert_failed_inner 2021-03-13 18:50:43 +08:00
pin.rs Fix overlength lines in core::pin. 2021-01-05 20:14:02 +01:00
primitive.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
result.rs Auto merge of #86211 - tlyu:option-result-overviews, r=joshtriplett 2021-07-14 05:10:57 +00:00
time.rs Added diagnostic items to structs and traits for Clippy 2021-07-15 23:57:02 +02: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