Skip to content

Commit c8947c1

Browse files
committed
syntax: remove the unused Vstore enum.
Seems to have been replaced by ExprVstore.
1 parent ec4b456 commit c8947c1

File tree

2 files changed

+0
-22
lines changed

2 files changed

+0
-22
lines changed

src/libsyntax/ast.rs

-9
Original file line numberDiff line numberDiff line change
@@ -405,15 +405,6 @@ impl ToStr for Sigil {
405405
}
406406
}
407407

408-
#[deriving(Eq, Encodable, Decodable, IterBytes)]
409-
pub enum Vstore {
410-
// FIXME (#3469): Change uint to @expr (actually only constant exprs)
411-
VstoreFixed(Option<uint>), // [1,2,3,4]
412-
VstoreUniq, // ~[1,2,3,4]
413-
VstoreBox, // @[1,2,3,4]
414-
VstoreSlice(Option<Lifetime>) // &'foo? [1,2,3,4]
415-
}
416-
417408
#[deriving(Clone, Eq, Encodable, Decodable, IterBytes)]
418409
pub enum ExprVstore {
419410
ExprVstoreUniq, // ~[1,2,3,4]

src/libsyntax/print/pprust.rs

-13
Original file line numberDiff line numberDiff line change
@@ -1058,19 +1058,6 @@ pub fn print_mac(s: &mut State, m: &ast::Mac) {
10581058
}
10591059
}
10601060

1061-
pub fn print_vstore(s: &mut State, t: ast::Vstore) {
1062-
match t {
1063-
ast::VstoreFixed(Some(i)) => word(&mut s.s, format!("{}", i)),
1064-
ast::VstoreFixed(None) => word(&mut s.s, "_"),
1065-
ast::VstoreUniq => word(&mut s.s, "~"),
1066-
ast::VstoreBox => word(&mut s.s, "@"),
1067-
ast::VstoreSlice(ref r) => {
1068-
word(&mut s.s, "&");
1069-
print_opt_lifetime(s, r);
1070-
}
1071-
}
1072-
}
1073-
10741061
pub fn print_expr_vstore(s: &mut State, t: ast::ExprVstore) {
10751062
match t {
10761063
ast::ExprVstoreUniq => word(&mut s.s, "~"),

0 commit comments

Comments
 (0)