rust/src/liballoc
Manish Goregaokar 55479de299
Rollup merge of #72709 - LeSeulArtichaut:unsafe-liballoc, r=nikomatsakis
`#[deny(unsafe_op_in_unsafe_fn)]` in liballoc

This PR proposes to make use of the new `unsafe_op_in_unsafe_fn` lint, i.e. no longer consider the body of an unsafe function as an unsafe block and require explicit unsafe block to perform unsafe operations.

This has been first (partly) suggested by @Mark-Simulacrum in https://github.com/rust-lang/rust/pull/69245#issuecomment-587817065

Tracking issue for the feature: #71668.
~~Blocked on #71862.~~
r? @Mark-Simulacrum cc @nikomatsakis can you confirm that those changes are desirable? Should I restrict it to only BTree for the moment?
2020-06-19 09:14:58 -07:00
..
alloc liballoc tests: Miri supports threads now 2020-05-01 11:16:38 +02:00
benches Introduce BTreeMap benches of iter itself 2020-04-25 00:05:10 +02:00
collections #[deny(unsafe_op_in_unsafe_fn)] in liballoc 2020-06-19 13:47:01 +02:00
prelude Format liballoc with rustfmt 2019-11-29 20:25:07 -08:00
raw_vec #[deny(unsafe_op_in_unsafe_fn)] in liballoc 2020-06-19 13:47:01 +02:00
rc Migrate to numeric associated consts 2020-06-10 01:35:47 +00:00
sync Migrate to numeric associated consts 2020-06-10 01:35:47 +00:00
tests Migrate to numeric associated consts 2020-06-10 01:35:47 +00:00
alloc.rs Apply suggestions from code review 2020-06-19 13:47:04 +02:00
borrow.rs Format the world 2019-12-22 17:42:47 -05:00
boxed.rs Rollup merge of #72709 - LeSeulArtichaut:unsafe-liballoc, r=nikomatsakis 2020-06-19 09:14:58 -07:00
Cargo.toml Ensure std benchmarks get tested. 2020-06-18 09:11:15 -07:00
fmt.rs grammar: dealing-with 2020-05-06 19:01:27 -04:00
lib.rs #[deny(unsafe_op_in_unsafe_fn)] in liballoc 2020-06-19 13:47:01 +02:00
macros.rs make vec![,] uncompilable 2020-04-14 10:27:55 +03:00
raw_vec.rs #[deny(unsafe_op_in_unsafe_fn)] in liballoc 2020-06-19 13:47:01 +02:00
rc.rs #[deny(unsafe_op_in_unsafe_fn)] in liballoc 2020-06-19 13:47:01 +02:00
slice.rs #[deny(unsafe_op_in_unsafe_fn)] in liballoc 2020-06-19 13:47:01 +02:00
str.rs #[deny(unsafe_op_in_unsafe_fn)] in liballoc 2020-06-19 13:47:01 +02:00
string.rs #[deny(unsafe_op_in_unsafe_fn)] in liballoc 2020-06-19 13:47:01 +02:00
sync.rs #[deny(unsafe_op_in_unsafe_fn)] in liballoc 2020-06-19 13:47:01 +02:00
task.rs #[deny(unsafe_op_in_unsafe_fn)] in liballoc 2020-06-19 13:47:01 +02:00
tests.rs Stop importing integer modules in liballoc 2020-04-05 11:22:01 +02:00
vec.rs Rollup merge of #72709 - LeSeulArtichaut:unsafe-liballoc, r=nikomatsakis 2020-06-19 09:14:58 -07:00