diff options
| author | Yuki Okushi <huyuumi.dev@gmail.com> | 2020-10-06 16:26:14 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-06 16:26:14 +0900 |
| commit | cc908f3b7005eb9762f81148e3668603edd92003 (patch) | |
| tree | a86e43aed454006d920707a213e974d77bd69dcb /compiler/rustc_codegen_llvm/src | |
| parent | cdaf8c5f7164b6ea940ebdb066833895719e09f1 (diff) | |
| parent | 35192ff574c3706646e2f4be16d5c22c4f8b60b1 (diff) | |
| download | rust-cc908f3b7005eb9762f81148e3668603edd92003.tar.gz rust-cc908f3b7005eb9762f81148e3668603edd92003.zip | |
Rollup merge of #77587 - ehuss:unicode-escape-span, r=ecstatic-morse
Fix span for unicode escape suggestion.
If a unicode escape is missing the curly braces, the suggested fix is to add the curly braces, but the span for the fix was incorrect. It was not covering the `\u`, but the suggested text includes the `\u`, causing the resulting fix to be `"\u\u{1234}"`. This changes it so that the span includes the `\u`. An alternate fix would be to remove `\u` from the suggested fix, but I think the error message reads better if the entire escape is included.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
