mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
10 lines
247 B
Rust
10 lines
247 B
Rust
extern crate proc_macro;
|
|
|
|
use proc_macro::TokenStream;
|
|
|
|
#[proc_macro_attribute]
|
|
pub fn vec_ice(_attr: TokenStream, input: TokenStream) -> TokenStream {
|
|
// This redundant convert is necessary to reproduce ICE.
|
|
input.into_iter().collect()
|
|
}
|