@@ -869,7 +869,7 @@ mod test {
869869 use parse:: token;
870870 use print:: pprust;
871871 use super :: * ;
872-
872+
873873 // this version doesn't care about getting comments or docstrings in.
874874 fn fake_print_crate ( s : @pprust:: ps , crate : & ast:: Crate ) {
875875 pprust:: print_mod ( s, & crate . module, crate . attrs) ;
@@ -879,7 +879,7 @@ mod test {
879879 struct ToZzIdentFolder ;
880880
881881 impl ast_fold for ToZzIdentFolder {
882- fn fold_ident ( & self , _: ident ) -> ident {
882+ fn fold_ident ( & self , _: ast :: Ident ) -> ast :: Ident {
883883 token:: str_to_ident ( "zz" )
884884 }
885885 }
@@ -921,16 +921,5 @@ mod test {
921921 token::get_ident_interner()),
922922 ~" zz!zz( ( zz$zz: zz$( zz $zz: zz) zz+=>( zz$( zz$zz$zz) +) ) ) " ) ;
923923 }
924-
925- // and in cast expressions... this appears to be an existing bug.
926- #[test] fn ident_transformation_in_types () {
927- let zz_fold = ToZzIdentFolder;
928- let ast = string_to_crate(@" fn a( ) { let z = 13 as int; } ");
929- assert_pred!(matches_codepattern,
930- " matches_codepattern",
931- pprust::to_str(&zz_fold.fold_crate(ast),fake_print_crate,
932- token::get_ident_interner()),
933- ~" fn zz( ) { let zz=13 as zz; } " ) ;
934- }
935924}
936925
0 commit comments