]> git.lizzy.rs Git - rust.git/commit - src/tools/clippy
Rollup merge of #69357 - tmiasko:debuginfo-column, r=michaelwoerister
authorDylan DPC <dylan.dpc@gmail.com>
Sun, 15 Mar 2020 01:44:13 +0000 (02:44 +0100)
committerGitHub <noreply@github.com>
Sun, 15 Mar 2020 01:44:13 +0000 (02:44 +0100)
commit62c057911640a269a8bbb1a4a814c146906194ce
tree4e52416f35add2203e59f1a6752f16f8bdcd63a1
parent7cdbc87a49b0b705a41a004a6d486b0952521ae7
parent8e93a01824a2239f1c588c7c0b884c8a2662e929
Rollup merge of #69357 - tmiasko:debuginfo-column, r=michaelwoerister

Emit 1-based column numbers in debuginfo

* Use byte offsets instead of char position offsets. Resolves #67360.
* Use 1-based offsets instead of 0-based ones. Resolves #65437.
* Consistently omit column information for msvc targets, matching clang behaviour (previously columns have been omitted from `DILocation`, but not from `DILexicalBlock`).
src/librustc_codegen_llvm/debuginfo/metadata.rs
src/librustc_codegen_llvm/debuginfo/mod.rs