Skip to content

Commit

Permalink
Let rustdoc see std crate
Browse files Browse the repository at this point in the history
    warning: unresolved link to `std::clone::Clone`
      --> src/lib.rs:12:7
       |
    12 | //! [`std::clone::Clone`] trait are automatically usable by a `DynClone` trait
       |       ^^^^^^^^^^^^^^^^^ no item named `std` in scope
       |
       = note: `#[warn(rustdoc::broken_intra_doc_links)]` on by default

    warning: unresolved link to `std::clone::Clone`
       --> src/lib.rs:121:61
        |
    121 | /// This trait is implemented by any type that implements [`std::clone::Clone`].
        |                                                             ^^^^^^^^^^^^^^^^^ no item named `std` in scope
  • Loading branch information
dtolnay committed Nov 3, 2023
1 parent 8bd3355 commit 4bcfc07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
//! ```

#![doc(html_root_url = "https://docs.rs/dyn_clone/1.0.14")]
#![no_std]
#![cfg_attr(not(doc), no_std)]
#![allow(
clippy::missing_panics_doc,
clippy::needless_doctest_main,
Expand Down

0 comments on commit 4bcfc07

Please sign in to comment.