Skip to content

Commit e30b419

Browse files
committed
Work around rustdoc bug
The multiple re-exports of the same item confuses rustdoc, and currently other items that try to link to subclass actually link to the deprecated is_subclass. I reported this bug to rustdoc[1], and a maintainer suggested swapping the re-export order as a workaround. [1] rust-lang/rust#136777
1 parent 0e49ab7 commit e30b419

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/subclass.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@ use std::{
1717

1818
use cxx::{memory::UniquePtrTarget, UniquePtr};
1919

20-
/// Deprecated - use [`subclass`] instead.
21-
#[deprecated]
22-
pub use autocxx_macro::subclass as is_subclass;
23-
2420
/// Declare a Rust subclass of a C++ class.
2521
/// You can use this in two ways:
2622
/// * As an attribute macro on a struct which is to be a subclass.
@@ -55,6 +51,10 @@ pub use autocxx_macro::subclass as is_subclass;
5551
/// subclasses of a C++ class.
5652
pub use autocxx_macro::subclass;
5753

54+
/// Deprecated - use [`subclass`] instead.
55+
#[deprecated]
56+
pub use autocxx_macro::subclass as is_subclass;
57+
5858
/// A prelude containing all the traits and macros required to create
5959
/// Rust subclasses of C++ classes. It's recommended that you:
6060
///

0 commit comments

Comments
 (0)