about summary refs log tree commit diff
path: root/crates/syntax/src/validation.rs
AgeCommit message (Collapse)AuthorLines
2022-07-08Update remaining GitHub URLsJonas Schievink-2/+2
2022-05-13Revert "Auto merge of #12149 - jonas-schievink:literally-just-a-literal, ↵Jonas Schievink-9/+2
r=jonas-schievink" This reverts commit cc9ae2b89e01a30e441371b9fd3376c3d03a475f, reversing changes made to 7dfd1cb572d8d4fd951237361e43ecddd9c9a852.
2022-05-05Remove `ast::Literal::token`Jonas Schievink-2/+9
2022-05-05Lower values of char and byte literalsLaurențiu Nicola-2/+2
2022-04-27fix visibility token validation in trait impl with proc-macroharpsword-2/+4
2022-02-21Validate `let` expressionsChayim Refael Friedman-0/+31
Emit an error if they're found in an invalid position.
2021-12-14`match_ast!` takes a pattern to allow underscore usageLukas Wirth-1/+1
2021-11-16Remove validation of `super` in use pathsLaurențiu Nicola-39/+0
2021-10-21Migrate to edition 2021Lukas Wirth-2/+0
2021-10-03Add semicolons for consistencyAramis Razzaghipour-2/+2
`clippy::semicolon_if_nothing_returned`
2021-09-27Rename `*Owner` traits to `Has*`Lukas Wirth-1/+1
2021-09-26internal: fix and force-disable block validation ;-(Aleksey Kladov-3/+4
Originally we tried to maintain the invariant that `{}` always match. That is, that in the parse tree the pair of corresponding `{}` is always first and last tokens of some nodes. We had the code to validate that, but apparently it's been broken for **years** since we introduced tokens/nodes split. Fixing it now makes some tests fail. It's unclear if we want to keep this invariant: there's a strong motivation for breaking it in the following case: ``` use std::{ // unclosed paren fn main() { } } // don't actually want to pair up this with the one from `use` ``` So let's fix the code, but disable it for the time being
2021-09-25minor: align code with code-styleAleksey Kladov-33/+35
2021-09-19SimplifyLukas Wirth-7/+4
2021-07-20Restrict completions inside visibility modifiersLukas Wirth-0/+8
2021-03-21a lot of clippy::style fixesMatthias Krüger-2/+2
2021-01-24Add validation for mutable const itemsLukas Wirth-1/+15
2021-01-20.Aleksey Kladov-1/+1
2021-01-15Handle self/super/crate in PathSegment as NameRefLukas Wirth-1/+1
2021-01-10Merge #7218bors[bot]-1/+1
7218: Fix typos r=Veykril a=regexident Apart from the very last commit on this PR (which fixes a public type's name) all changes are non-breaking. Co-authored-by: Vincent Esche <regexident@gmail.com>
2021-01-10Fix typo, parentheses is pluralLaurențiu Nicola-2/+2
2021-01-09Fixed typos in code assertsVincent Esche-1/+1
2020-12-15Reject visibilities on `macro_rules!`Jonas Schievink-1/+13
2020-11-06Cleanup APIAleksey Kladov-28/+29
2020-11-06Kill RAW_ literalsAleksey Kladov-18/+23
Syntactically, they are indistinguishable from non-raw versions, so it doesn't make sense to separate then *at the syntax* level.
2020-10-06Add validation check for ambiguous trait objectsLukas Wirth-1/+44
2020-08-12Rename ra_syntax -> syntaxAleksey Kladov-0/+303