about summary refs log tree commit diff
path: root/compiler/rustc_codegen_cranelift/example/alloc_example.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2021-10-16 08:02:24 +0200
committerGitHub <noreply@github.com>2021-10-16 08:02:24 +0200
commit27a7ced29f952fc73adb25231f52c8b2d9535497 (patch)
tree7c36a1691bbc0eda28710b83043f4a0b376e7b1f /compiler/rustc_codegen_cranelift/example/alloc_example.rs
parente98669a51a1e0d11cbec7640a747ac0e79ffa289 (diff)
parentd2dc0f3b0f0267941b47bde7bd48d26b2c22ca6a (diff)
downloadrust-27a7ced29f952fc73adb25231f52c8b2d9535497.tar.gz
rust-27a7ced29f952fc73adb25231f52c8b2d9535497.zip
Rollup merge of #89912 - davidtwco:issue-89280-split-lines-multiple-lines, r=oli-obk
emitter: current substitution can be multi-line

Fixes #89280.

In `splice_lines`, there is some arithmetic to compute the required alignment such that future substitutions in a suggestion are aligned correctly. However, this assumed that the current substitution's span was only on a single line. In circumstances where this was not true, it could result in a arithmetic overflow when the substitution's end column was less than the substitution's start column.

r? ````@oli-obk````
Diffstat (limited to 'compiler/rustc_codegen_cranelift/example/alloc_example.rs')
0 files changed, 0 insertions, 0 deletions