diff options
| author | bors <bors@rust-lang.org> | 2013-07-17 09:49:43 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-07-17 09:49:43 -0700 |
| commit | 9c1e530bde3a8123f4da645a92b8a2b12fd3ecab (patch) | |
| tree | e440e06f5647de72b7d7c8b44ab2b29eb47b1ea2 /src/libsyntax/parse/classify.rs | |
| parent | 93c270c63d158805a068b8e7ced660df1051c3ca (diff) | |
| parent | 0cc70743d2cf6edb782c1daa9b0f554484ed21eb (diff) | |
| download | rust-9c1e530bde3a8123f4da645a92b8a2b12fd3ecab.tar.gz rust-9c1e530bde3a8123f4da645a92b8a2b12fd3ecab.zip | |
auto merge of #7826 : michaelwoerister/rust/end_of_spanned, r=cmr
This is the first of a series of refactorings to get rid of the `codemap::spanned<T>` struct (see this thread for more information: https://mail.mozilla.org/pipermail/rust-dev/2013-July/004798.html). The changes in this PR should not change any semantics, just rename `ast::blk_` to `ast::blk` and add a span field to it. 95% of the changes were of the form `block.node.id` -> `block.id`. Only some transformations in `libsyntax::fold` where not entirely trivial.
Diffstat (limited to 'src/libsyntax/parse/classify.rs')
| -rw-r--r-- | src/libsyntax/parse/classify.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libsyntax/parse/classify.rs b/src/libsyntax/parse/classify.rs index 62b36b12f26..44497f72003 100644 --- a/src/libsyntax/parse/classify.rs +++ b/src/libsyntax/parse/classify.rs @@ -13,7 +13,6 @@ */ use ast; -use codemap; // does this expression require a semicolon to be treated // as a statement? The negation of this: 'can this expression @@ -40,8 +39,7 @@ pub fn expr_requires_semi_to_be_stmt(e: @ast::expr) -> bool { pub fn expr_is_simple_block(e: @ast::expr) -> bool { match e.node { ast::expr_block( - codemap::spanned { - node: ast::blk_ { rules: ast::default_blk, _ }, _ } + ast::blk { rules: ast::default_blk, _ } ) => true, _ => false } |
