rust/src/libsyntax_pos
bors 15ccaf7791 Auto merge of #60740 - petrochenkov:kw, r=nnethercote
Simplify use of keyword symbols

They mirror non-keyword symbols now (see https://github.com/rust-lang/rust/pull/60630).

`keywords::MyKeyword.name()` -> `kw::MyKeyword`
`keywords::MyKeyword.ident()` -> `Ident::with_empty_ctxt(kw::MyKeyword)` (not common)
`keywords::Invalid.ident()` -> `Ident::invalid()` (more common)

Keywords are simply `Symbol` constants now, the `Keyword` struct is eliminated.
This means `kw::MyKeyword` can now be used in `match` in particular.
2019-05-23 01:50:55 +00:00
..
analyze_source_file.rs rustc: doc comments 2019-02-10 23:42:32 +00:00
Cargo.toml Use a proc macro to declare preallocated symbols 2019-04-15 07:23:01 +02:00
edition.rs Move edition outside the hygiene lock and avoid accessing it 2019-05-21 18:17:05 +02:00
hygiene.rs Simplify use of keyword symbols 2019-05-22 19:48:56 +03:00
lib.rs Move edition outside the hygiene lock and avoid accessing it 2019-05-21 18:17:05 +02:00
span_encoding.rs Increase Span from 4 bytes to 8 bytes. 2019-04-05 12:26:09 +11:00
symbol.rs Auto merge of #60740 - petrochenkov:kw, r=nnethercote 2019-05-23 01:50:55 +00:00