]> git.lizzy.rs Git - rust.git/blobdiff - src/libsyntax/ext/concat_idents.rs
libsyntax: Mechanically change `~[T]` to `Vec<T>`
[rust.git] / src / libsyntax / ext / concat_idents.rs
index 85cfd4f61e414fc6f53a7ec23343d9c7769f32da..2552586939811515626d2bacec8c141ba35cf3a1 100644 (file)
@@ -48,13 +48,13 @@ pub fn expand_syntax_ext(cx: &mut ExtCtxt, sp: Span, tts: &[ast::TokenTree])
             ast::Path {
                  span: sp,
                  global: false,
-                 segments: ~[
+                 segments: vec!(
                     ast::PathSegment {
                         identifier: res,
                         lifetimes: opt_vec::Empty,
                         types: opt_vec::Empty,
                     }
-                ]
+                )
             }
         ),
         span: sp,