@@ -40,7 +40,7 @@ use ast::{item_mac, item_mod, item_struct, item_trait, item_ty, lit, lit_};
40
40
use ast:: { lit_bool, lit_float, lit_float_unsuffixed, lit_int} ;
41
41
use ast:: { lit_int_unsuffixed, lit_nil, lit_str, lit_uint, local, m_const} ;
42
42
use ast:: { m_imm, m_mutbl, mac_, mac_invoc_tt, matcher, match_nonterminal} ;
43
- use ast:: { match_seq, match_tok, method, mode, module_ns , mt, mul, mutability} ;
43
+ use ast:: { match_seq, match_tok, method, mode, mt, mul, mutability} ;
44
44
use ast:: { named_field, neg, node_id, noreturn, not, pat, pat_box, pat_enum} ;
45
45
use ast:: { pat_ident, pat_lit, pat_range, pat_region, pat_struct} ;
46
46
use ast:: { pat_tup, pat_uniq, pat_wild, private} ;
@@ -54,7 +54,7 @@ use ast::{tt_nonterminal, tuple_variant_kind, Ty, ty_, ty_bot, ty_box};
54
54
use ast:: { ty_field, ty_fixed_length_vec, ty_closure, ty_bare_fn} ;
55
55
use ast:: { ty_infer, ty_method} ;
56
56
use ast:: { ty_nil, TyParam , TyParamBound , ty_path, ty_ptr, ty_rptr} ;
57
- use ast:: { ty_tup, ty_u32, ty_uniq, ty_vec, type_value_ns , uniq} ;
57
+ use ast:: { ty_tup, ty_u32, ty_uniq, ty_vec, uniq} ;
58
58
use ast:: { unnamed_field, unsafe_blk, unsafe_fn, view_item} ;
59
59
use ast:: { view_item_, view_item_extern_mod, view_item_use} ;
60
60
use ast:: { view_path, view_path_glob, view_path_list, view_path_simple} ;
@@ -4224,13 +4224,6 @@ pub impl Parser {
4224
4224
fn parse_view_path ( & self ) -> @view_path {
4225
4225
let lo = self . span . lo ;
4226
4226
4227
- let namespace;
4228
- if self . eat_keyword ( & ~"mod ") {
4229
- namespace = module_ns;
4230
- } else {
4231
- namespace = type_value_ns;
4232
- }
4233
-
4234
4227
let first_ident = self . parse_ident ( ) ;
4235
4228
let mut path = ~[ first_ident] ;
4236
4229
debug ! ( "parsed view_path: %s" , * self . id_to_str( first_ident) ) ;
@@ -4250,8 +4243,9 @@ pub impl Parser {
4250
4243
rp : None ,
4251
4244
types : ~[ ] } ;
4252
4245
return @spanned ( lo, self . span . hi ,
4253
- view_path_simple ( first_ident, path, namespace,
4254
- self . get_id ( ) ) ) ;
4246
+ view_path_simple ( first_ident,
4247
+ path,
4248
+ self . get_id ( ) ) ) ;
4255
4249
}
4256
4250
4257
4251
token:: MOD_SEP => {
@@ -4306,8 +4300,9 @@ pub impl Parser {
4306
4300
idents : path,
4307
4301
rp : None ,
4308
4302
types : ~[ ] } ;
4309
- return @spanned ( lo, self . span . hi ,
4310
- view_path_simple ( last, path, namespace, self . get_id ( ) ) ) ;
4303
+ return @spanned ( lo,
4304
+ self . span . hi ,
4305
+ view_path_simple ( last, path, self . get_id ( ) ) ) ;
4311
4306
}
4312
4307
4313
4308
// matches view_paths = view_path | view_path , view_paths
0 commit comments