Skip to content

Commit

Permalink
Ignore doctest for non-exported macro
Browse files Browse the repository at this point in the history
Rust 1.62 introduced a breaking change where doctests for non-exported
macros are now run by default. These don't compile because the macro
can't be imported in it.
See rust-lang/rust#97030 for more info.
  • Loading branch information
jjant committed Oct 11, 2022
1 parent 2cf21d1 commit e68dfb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aws/rust-runtime/aws-types/src/build_metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ pub enum OsFamily {
/// is set to a specific value. This macro simplifies checking the current OS family.
///
/// Usage:
/// ```rust
/// ```ignore
/// let os = get_os_family!(target_os: ("linux", OsFamily::Windows), ("android", OsFamily::Android));
/// ```
macro_rules! get_os_family {
Expand Down

0 comments on commit e68dfb7

Please sign in to comment.