]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #87596 - jesyspa:issue-87318-hidden-whitespace, r=estebank
authorYuki Okushi <jtitor@2k36.org>
Fri, 30 Jul 2021 19:09:31 +0000 (04:09 +0900)
committerGitHub <noreply@github.com>
Fri, 30 Jul 2021 19:09:31 +0000 (04:09 +0900)
Add warning when whitespace is not skipped after an escaped newline

Fixes issue #87318, also simplifies issue #87319.

* Add support to the lexer to emit warnings as well as errors.
* Emit a warning when a string literal contains an escaped newline, but when (some of) the whitespace on the next line is not skipped due to it being non-ASCII.


Trivial merge