mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-27 07:55:03 +00:00
libsyntax: Remove duplicate methods.
This commit is contained in:
parent
47772bcb73
commit
aa9a992f3e
@ -722,11 +722,6 @@ impl FnCtxt {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn expr_to_str(&self, expr: @ast::expr) -> ~str {
|
||||
fmt!("expr(%?:%s)", expr.id,
|
||||
pprust::expr_to_str(expr, self.tcx().sess.intr()))
|
||||
}
|
||||
|
||||
pub fn block_region(&self) -> ty::Region {
|
||||
ty::re_scope(self.region_lb)
|
||||
}
|
||||
|
@ -1063,13 +1063,6 @@ impl Parser {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn token_is_lifetime(&self, tok: &token::Token) -> bool {
|
||||
match *tok {
|
||||
token::LIFETIME(_) => true,
|
||||
_ => false
|
||||
}
|
||||
}
|
||||
|
||||
/// Parses a single lifetime
|
||||
// matches lifetime = ( LIFETIME ) | ( IDENT / )
|
||||
pub fn parse_lifetime(&self) -> ast::Lifetime {
|
||||
|
Loading…
Reference in New Issue
Block a user