Rollup merge of #95817 - oconnor663:doc_comment2, r=yaahc

hide another #[allow] directive from a docs example

This is a repeat for Rc of e0e64a89304de2b34dbafbc6cb354d2be9e67835,
which cleaned up the same thing for Arc.
This commit is contained in:
Dylan DPC 2022-04-09 18:26:29 +02:00 committed by GitHub
commit 2464ea2510
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -393,7 +393,7 @@ impl<T> Rc<T> {
/// # Examples
///
/// ```
/// #![allow(dead_code)]
/// # #![allow(dead_code)]
/// use std::rc::{Rc, Weak};
///
/// struct Gadget {