Skip to content

Commit 54636ac

Browse files
committed
Fix warning with nightly rust:
``` warning: cannot find macro `self_test` in this scope --> lib.rs:44:10 | 44 | #![doc = self_test!(/** | ^^^^^^^^^ | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = note: for more information, see issue #124535 <rust-lang/rust#124535> = help: import `macro_rules` with `use` to make it callable above its definition = note: `#[warn(out_of_scope_macro_calls)]` on by default ```
1 parent 7c77558 commit 54636ac

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,8 @@ macro_rules! self_test {
511511
};
512512
}
513513

514+
use self_test;
515+
514516
// The following struct is inserted only during generation of the documentation in order to exploit doc-tests.
515517
// These doc-tests are used to check that invalid arguments to the `document_features!` macro cause a compile time error.
516518
// For a more principled way of testing compilation error, maybe investigate <https://docs.rs/trybuild>.

0 commit comments

Comments
 (0)