Add warning when whitespace is not skipped after an escaped newline by jesyspa · Pull Request #87596 · rust-lang/rust

estebank

@jesyspa

@bors bors added S-waiting-on-bors

Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

and removed S-waiting-on-review

Status: Awaiting review from the assignee but also interested parties.

labels

Jul 30, 2021

JohnTitor added a commit to JohnTitor/rust that referenced this pull request

Jul 30, 2021
…ce, r=estebank

Add warning when whitespace is not skipped after an escaped newline

Fixes issue rust-lang#87318, also simplifies issue rust-lang#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.

This was referenced

Jul 30, 2021

bors added a commit to rust-lang-ci/rust that referenced this pull request

Jul 30, 2021
Rollup of 9 pull requests

Successful merges:

 - rust-lang#86072 (Cross compiling rustc_llvm on Darwin requires zlib.)
 - rust-lang#87385 (Make `SEMICOLON_IN_EXPRESSIONS_FROM_MACROS` warn by default)
 - rust-lang#87547 (Add missing examples for NonNull)
 - rust-lang#87557 (Fix issue with autofix for ambiguous associated function from Rust 2021 prelude when struct is generic)
 - rust-lang#87559 (Tweak borrowing suggestion in `for` loop)
 - rust-lang#87596 (Add warning when whitespace is not skipped after an escaped newline)
 - rust-lang#87606 (Add some TAIT-related regression tests)
 - rust-lang#87609 (Add docs about performance and `Iterator::map` to `[T; N]::map`)
 - rust-lang#87616 (Fix missing word in rustdoc book)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup

JohnTitor added a commit to JohnTitor/rust that referenced this pull request

Aug 3, 2021
…whitespace, r=estebank"

This reverts commit aa9e6aa, reversing
changes made to 5e2655d.

@jesyspa jesyspa deleted the issue-87318-hidden-whitespace branch

August 20, 2021 09:39