about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2018-10-10 16:54:17 -0700
committerEsteban Küber <esteban@kuber.com.ar>2018-10-10 16:54:17 -0700
commitc77a0cf5881e8e894d6fc15403cca002b9781d15 (patch)
tree41d96ec097480772c8c802da3dee05bdf4fa5906 /src/rustllvm/RustWrapper.cpp
parente1041c6cd1a027ab3ada3e8538620d2e1d7067fe (diff)
downloadrust-c77a0cf5881e8e894d6fc15403cca002b9781d15.tar.gz
rust-c77a0cf5881e8e894d6fc15403cca002b9781d15.zip
Accept `Option<Box<$t:ty>>` in macro argument
Given the following code, compile successfuly:

```
macro_rules! test {
    (
        fn fun() -> Option<Box<$t:ty>>;
    ) => {
        fn fun(x: $t) -> Option<Box<$t>>
        { Some(Box::new(x)) }
    }
}

test! {
    fn fun() -> Option<Box<i32>>;
}
```
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions