diff options
| author | bors <bors@rust-lang.org> | 2015-12-15 01:18:01 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-12-15 01:18:01 +0000 |
| commit | 8f031bf96205ed4cb990c2c7aded84d5ac079254 (patch) | |
| tree | 0d8942d514c60919c8e6855926ed7252d2e227ad /src/libsyntax/ext/trace_macros.rs | |
| parent | 44d9601ad3b388df34b7e7b9a1a1bfed32b4bce9 (diff) | |
| parent | ec8ea22c7f59fd898670060bceb6810cef68ca0a (diff) | |
| download | rust-8f031bf96205ed4cb990c2c7aded84d5ac079254.tar.gz rust-8f031bf96205ed4cb990c2c7aded84d5ac079254.zip | |
Auto merge of #30105 - faineance:master, r=nrc
Issue: #30058
Updated for:
- Stmt
- BinOp_
- UnOp
- UintTy, IntTy and FloatTy
- Lit
- Generics
A possible inconsistancy?
The `Stmt` methods are on the spanned varient:
```rust
pub type Stmt = Spanned<Stmt_>;
impl Stmt {
pub fn id(s: &Stmt) -> Option<NodeId> {
match s.node {
StmtDecl(_, id) => Some(id),
StmtExpr(_, id) => Some(id),
StmtSemi(_, id) => Some(id),
StmtMac(..) => None,
}
}
}
```
Whilst the methods for BinOp are on the non spanned version.
````rust
impl BinOp_ {
pub fn to_string(op: BinOp_) -> &'static str { ... }
pub fn lazy(b: BinOp_) -> bool { ... }
pub fn is_shift(b: BinOp_) -> bool { ... }
pub fn is_comparison(b: BinOp_) -> bool { ... }
/// Returns `true` if the binary operator takes its arguments by value
pub fn is_by_value(b: BinOp_) -> bool { ... }
}
pub type BinOp = Spanned<BinOp_>;
````
r? @Manishearth
Diffstat (limited to 'src/libsyntax/ext/trace_macros.rs')
0 files changed, 0 insertions, 0 deletions
