Skip to content

Commit 682483f

Browse files
Related issues; Cleanup
1 parent 9363153 commit 682483f

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -562,6 +562,8 @@ Sorted by importance (for `prudent`):
562562
## Side fruit
563563
- [rust-lang/rust#148599](https://github.com/rust-lang/rust/issues/148599) forward compatibility of
564564
`#![doc(test(attr(forbid(...))))]` for lint groups
565+
- [rust-lang/rust#149583](https://github.com/rust-lang/rust/issues/149583) Doctests should not
566+
inherit features
565567
- [rust-lang/nomicon#506](https://github.com/rust-lang/nomicon/issues/506) note that a macro in a
566568
`#![forbid(unsafe_code)]` library can emit `unsafe`
567569
- [Veykril/tlborm#114](https://github.com/Veykril/tlborm/issues/114) storing & (re)using variadic

src/frontend.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@
8484
/// unsafe_fn!( return_same_mut_ref => &mut marray )[0] = true;
8585
/// }
8686
/// ```
87-
#[doc(hidden)]
8887
#[macro_export]
8988
macro_rules! unsafe_fn {
9089
( $fn:expr => $( $arg:expr ),+ ) => {
@@ -309,7 +308,6 @@ macro_rules! unsafe_fn_internal_access_tuple_tree_field {
309308
//#[doc = include_str!("../violations_coverage/unsafe_method/fn_unused_unsafe/some_args.rs")]
310309
// ```
311310
#[macro_export]
312-
#[doc(hidden)]
313311
macro_rules! unsafe_method {
314312
(
315313
$self:expr =>@ $method:ident
@@ -525,7 +523,6 @@ macro_rules! unsafe_method_internal_build_accessors_check_args_call {
525523
/// }
526524
/// ```
527525
#[macro_export]
528-
#[doc(hidden)]
529526
macro_rules! unsafe_static_set {
530527
($static:path, $val:expr) => {{
531528
if false {
@@ -558,7 +555,6 @@ macro_rules! unsafe_static_set {
558555
/// reference based on the given pointer), and the given pointer is cast to `* const $type`. `$type`
559556
/// may start with `dyn`. `$type` may be a slice `[...]`.
560557
#[macro_export]
561-
#[doc(hidden)]
562558
macro_rules! unsafe_ref {
563559
($ptr:expr) => {{
564560
let ptr: *const _ = $ptr;
@@ -586,7 +582,6 @@ macro_rules! unsafe_ref {
586582
/// type (NOT the given pointer, NOT the target reference type) and the given pointer is cast to `*
587583
/// const $type`. `$type` may start with `dyn`. `$type` may be a slice `[...]`.
588584
#[macro_export]
589-
#[doc(hidden)]
590585
macro_rules! unsafe_mut {
591586
($ptr:expr) => {{
592587
let ptr: *mut _ = $ptr;
@@ -610,7 +605,6 @@ macro_rules! unsafe_mut {
610605

611606
/// Get a (copy of) value from where the pointer points. For [core::marker::Copy] types only.
612607
#[macro_export]
613-
#[doc(hidden)]
614608
macro_rules! unsafe_val {
615609
($ptr:expr) => {{
616610
let ptr: *const _ = $ptr;
@@ -654,7 +648,6 @@ macro_rules! unsafe_use {
654648
///
655649
/// `unsafe_set!( pt ) = false;`
656650
#[macro_export]
657-
#[doc(hidden)]
658651
macro_rules! unsafe_set {
659652
($ptr:expr, $value:expr) => {{
660653
if false {

0 commit comments

Comments
 (0)