rust/src/libsyntax
bors 13f8d073fe Auto merge of #51480 - dtolnay:lifetime, r=kennytm
Enable fall through past $:lifetime matcher

```rust
macro_rules! is_lifetime {
    ($lifetime:lifetime) => { true };
    ($other:tt) => { false };
}

fn main() {
    println!("{}", is_lifetime!('lifetime));
    println!("{}", is_lifetime!(@));
}
```

Before this fix, the `is_lifetime!` invocation would fail to compile with:

```
error: expected a lifetime, found `@`
 --> src/main.rs:8:33
  |
8 |     println!("{}", is_lifetime!(@));
  |                                 ^
```

Fixes #50903.
Fixes #51477.

r? @kennytm
2018-06-11 10:43:20 +00:00
..
diagnostics Add Ident::as_str helper 2018-05-26 15:20:23 +03:00
ext Enable fall through past $:lifetime matcher 2018-06-10 14:39:16 -07:00
parse Auto merge of #50205 - topecongiro:include-parens-to-type-parameter, r=petrochenkov 2018-06-10 20:09:22 +00:00
print Auto merge of #51072 - petrochenkov:ifield, r=eddyb 2018-05-26 16:56:22 +00:00
util restore emplacement syntax (obsolete) 2018-05-24 18:49:58 -04:00
ast.rs Auto merge of #51052 - nikomatsakis:obsolete-arrow, r=petrochenkov 2018-05-26 14:30:30 +00:00
attr.rs Deny #[cfg] and #[cfg_attr] on generic parameters. 2018-06-02 05:11:33 +08:00
build.rs
Cargo.toml rustc_target: move in syntax::abi and flip dependency. 2018-04-26 17:49:16 +03:00
codemap.rs Satisfy tidy 2018-05-21 18:43:11 +02:00
config.rs Deny #[cfg] and #[cfg_attr] on generic parameters. 2018-06-02 05:11:33 +08:00
diagnostic_list.rs Auto merge of #50030 - flip1995:rfc2103, r=petrochenkov 2018-05-03 11:52:03 +00:00
entry.rs
feature_gate.rs Rollup merge of #51298 - Dylan-DPC:stabilise/termination-test, r=nikomatsakis 2018-06-08 17:20:59 -06:00
fold.rs syntax: remove overloading of fold_lifetime{,_def}{,s}. 2018-05-30 20:29:38 +03:00
json.rs Stabilize suggestion applicability field in json output 2018-05-21 10:48:12 -07:00
lib.rs Crate-ify and delete unused code in syntax::parse 2018-06-09 16:57:19 -06:00
ptr.rs
README.md
show_span.rs
std_inject.rs Add edition to expansion info 2018-05-17 23:13:08 +03:00
str.rs Inline char_at() and record_width. 2018-05-13 17:16:02 +10:00
test_snippet.rs
test.rs append unused variables with _ 2018-06-06 12:22:38 +05:30
tokenstream.rs Make Directory::path a Cow. 2018-05-18 22:20:33 +10:00
visit.rs rustc: don't visit lifetime parameters through visit_lifetime. 2018-05-30 20:29:38 +03:00

The syntax crate contains those things concerned purely with syntax that is, the AST ("abstract syntax tree"), parser, pretty-printer, lexer, macro expander, and utilities for traversing ASTs.

For more information about how these things work in rustc, see the rustc guide: