stringify! on a ty macro value produces "an interpolated type" #8709

Closed
chris-morgan opened this Issue Aug 23, 2013 · 1 comment

Comments

Projects
None yet
2 participants
Member

chris-morgan commented Aug 23, 2013

Minimal test case:

macro_rules! sty(
    ($t:ty)=>(stringify!($t))
)
fn main() {
    println(sty!(~str));
}

Expected output:

~str

Actual output:

an interpolated type
Member

pnkfelix commented May 22, 2014

I think something similar happens for path macro values, where it then prints "an interpolated path" post-stringify.

@Sawyer47 Sawyer47 added a commit to Sawyer47/rust that referenced this issue Jul 19, 2014

@Sawyer47 Sawyer47 Correctly stringify! types and paths inside macros
Closes #8709
c1063e0

@Sawyer47 Sawyer47 added a commit to Sawyer47/rust that referenced this issue Jul 20, 2014

@Sawyer47 Sawyer47 Correctly stringify! types and paths inside macros
Closes #8709
20df4cc

bors closed this in #15805 Jul 20, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment