summary refs log tree commit diff
path: root/src/libsyntax_pos/symbol.rs
AgeCommit message (Collapse)AuthorLines
2018-03-23Rollup merge of #49030 - Zoxc:misc, r=michaelwoeristerAlex Crichton-1/+5
Misc changes from my parallel rustc branch r? @michaelwoerister
2018-03-17Make Span and Symbol implement Send and SyncJohn Kåre Alsaker-1/+5
2018-03-17syntax: Make `_` an identifierVadim Petrochenkov-61/+65
2018-03-14Remove syntax and syntax_pos thread localsJohn Kåre Alsaker-9/+10
2017-12-07Auto merge of #46497 - AgustinCB:issue-46311, r=petrochenkovbors-0/+10
Modify message for keyword as identifier name This is a temporary solution to #46311. The message is generic enough to cover both cases and is probably a fine enough solution to the specific problem described in the task. However, the underlying reason for this to be wrong is that `next_token_inner` returns `Lifetime` even if the token is a label. That's not simple, as the syntax for both can be quite similar and it may need to take a look to the next token to make a decision. I'm not sure I have enough knowledge about the project to be able to solve that (yet!), so I thought I'll fix the immediate problem first.
2017-12-07don't print self symbol's internal index unless gensymedNiko Matsakis-1/+10
It's just not useful. It also makes it hard to have tests that probe internal state, since the interning number is very sensitive. Dumping the number in the case of gensym is not ideal but will do for now.
2017-12-07remove unused testAgustin Chiappe Berrini-20/+0
2017-12-07remove unnecessary functionAgustin Chiappe Berrini-5/+1
2017-12-07address commentsAgustin Chiappe Berrini-18/+0
2017-12-06and refactor to just move the checkingAgustin Chiappe Berrini-0/+52
2017-11-13Fix style in interner testJohn-John Tedro-1/+1
2017-11-03add `auto` keyword, parse `auto trait`, lower to HIRleonardo.yvens-5/+6
Adds an `IsAuto` field to `ItemTrait` which flags if the trait was declared as an `auto trait`. Auto traits cannot have generics nor super traits.
2017-10-14Implement `dyn Trait` syntaxVadim Petrochenkov-4/+5
2017-08-31Implement From<&str> for Symbol.Eduard-Mihai Burtescu-0/+6
2017-07-30resolve: Fix instability in import suggestionsVadim Petrochenkov-1/+1
2017-06-29Change some terminology around keywords and reserved identifierspetrochenkov-64/+63
2017-06-29Make `$crate` a keywordVadim Petrochenkov-51/+52
2017-06-05syntax_pos::Symbol should not implement SyncWesley Wiser-0/+1
Fixes #42407
2017-05-25Improve intercrate hygiene.Jeffrey Seyfried-2/+13
2017-05-25Improve efficiency.Jeffrey Seyfried-10/+32
2017-05-25Hygienize `librustc_resolve`.Jeffrey Seyfried-2/+2
2017-03-29Merge `ExpnId` and `SyntaxContext`.Jeffrey Seyfried-0/+389