@@ -612,14 +612,14 @@ pub enum token_tree {
612612 tt_tok( Span , :: parse:: token:: Token ) ,
613613 // a delimited sequence (the delimiters appear as the first
614614 // and last elements of the vector)
615- tt_delim( @mut ~[ token_tree ] ) ,
615+ tt_delim( @~[ token_tree ] ) ,
616616
617617 // These only make sense for right-hand-sides of MBE macros:
618618
619619 // a kleene-style repetition sequence with a span, a tt_forest,
620620 // an optional separator, and a boolean where true indicates
621621 // zero or more (*), and false indicates one or more (+).
622- tt_seq( Span , @mut ~[ token_tree ] , Option < :: parse:: token:: Token > , bool ) ,
622+ tt_seq( Span , @~[ token_tree ] , Option < :: parse:: token:: Token > , bool ) ,
623623
624624 // a syntactic variable that will be filled in by macro expansion.
625625 tt_nonterminal( Span , Ident )
@@ -1180,6 +1180,18 @@ pub enum inlined_item {
11801180 ii_foreign( @foreign_item ) ,
11811181}
11821182
1183+ #[ cfg( test) ]
1184+ mod test {
1185+ use super :: * ;
1186+
1187+ fn is_freeze < T : Freeze > ( ) { }
1188+
1189+ // Assert that the AST remains Freeze (#10693).
1190+ #[ test] fn ast_is_freeze ( ) {
1191+ is_freeze :: < item > ( ) ;
1192+ }
1193+ }
1194+
11831195/* hold off on tests ... they appear in a later merge.
11841196#[cfg(test)]
11851197mod test {
0 commit comments