Skip to content

Commit 4d9b59e

Browse files
committed
Auto merge of #156111 - JonathanBrouwer:rollup-8X18OBD, r=JonathanBrouwer
Rollup of 4 pull requests Successful merges: - rust-lang/rust#156073 ([rustdoc] Fix `doc_cfg` feature on reexports) - rust-lang/rust#152216 (Fix 'assign to data in an index of' collection suggestions) - rust-lang/rust#155433 (Rip out rustc_layout_scalar_valid_range_* attribute support) - rust-lang/rust#156098 (Hand-implement `impl Debug for NumBuffer` to avoid constraining `T` or printing MaybeUninit)
2 parents 5b60596 + 8dcbb2e commit 4d9b59e

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

src/unsafety-checking.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,8 @@ side of an assignment expression and allows union fields to directly appear
3030
there, while erroring in all other cases. Union field accesses can also occur
3131
in patterns, so those have to be walked as well.
3232

33-
The other complicated safety check is for writes to fields of layout constrained
34-
structs (such as [`NonNull`]). These are found by looking for the borrow or
35-
assignment expression and then visiting the subexpression being borrowed or
36-
assigned with a separate visitor.
37-
3833
[THIR]: ./thir.md
3934
[`check_unsafety`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir_build/check_unsafety/index.html
40-
[`NonNull`]: https://doc.rust-lang.org/std/ptr/struct.NonNull.html
4135

4236
## The unused_unsafe lint
4337

0 commit comments

Comments
 (0)