Last active
August 20, 2018 20:45
macro missing_docs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[package] | |
name = "a" | |
version = "0.1.0" | |
authors = ["Alex Burka <aburka@seas.upenn.edu>"] | |
[dependencies] | |
b = { path = "../b" } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#![deny(missing_docs)] | |
//! Docs | |
#[macro_use] extern crate b; | |
macro_rules! a { | |
($f:ident, $g:ident) => { | |
pub fn $f() {} | |
pub struct $g; | |
} | |
} | |
a!(bar, Bar); | |
b!(foo, Foo); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[package] | |
name = "b" | |
version = "0.1.0" | |
authors = ["Alex Burka <aburka@seas.upenn.edu>"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#[macro_export] | |
macro_rules! b { | |
($f:ident, $g:ident) => { | |
pub fn $f() {} | |
pub struct $g; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment