]> git.lizzy.rs Git - rust.git/commit
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)
commitaa9e6aa8ad96888eb63e391a9d40373283c189b2
tree28040712a10dd3dd2c2f85bede48b7409a6c8662
parent5e2655d27fdd523285856f8bdacbccdc07b4fc6c
parent5d59b4412e71298e6e44b55afbfaa9dd86aee590
Rollup merge of #87596 - jesyspa:issue-87318-hidden-whitespace, r=estebank

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.