aboutsummaryrefslogtreecommitdiff
path: root/crates/mbe/src/tests
Commit message (Collapse)AuthorAgeFilesLines
* Escape characters in doc comments in macros correctlyChayim Refael Friedman2021-04-181-2/+22
| | | | | | | | | Previously they were escaped twice, both by `.escape_default()` and the debug view of strings (`{:?}`). This leads to things like newlines or tabs in documentation comments being `\\n`, but we unescape literals only once, ending up with `\n`. This was hard to spot because CMark unescaped them (at least for `'` and `"`), but it did not do so in code blocks. This also was the root cause of #7781. This issue was solved by using `.escape_debug()` instead of `.escape_default()`, but the real issue remained. We can bring the `.escape_default()` back by now, however I didn't do it because it is probably slower than `.escape_debug()` (more work to do), and also in order to change the code the least.
* clippy::complexity simplifications related to IteratorsMatthias Krüger2021-03-211-2/+1
|
* Fix and test edge cases of `_` as identKevin Mehall2021-03-201-0/+4
|
* Make bare underscore token an Ident rather than Punct in proc-macroKevin Mehall2021-03-201-0/+6
|
* Reorganize mbe testsEdwin Cheng2021-03-182-0/+1917