about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-09-08 12:55:15 +0000
committerbors <bors@rust-lang.org>2021-09-08 12:55:15 +0000
commitc9db3e0fbc84d8409285698486375f080d361ef3 (patch)
treeb44b6179fe3798d2e3c12fd6de2fb3a43869884d /src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs
parent434cb437b55d61bcb54a01921de7ac752e6dee13 (diff)
parente66dafcd247d542198b31bd413f65906facd4fd4 (diff)
downloadrust-c9db3e0fbc84d8409285698486375f080d361ef3.tar.gz
rust-c9db3e0fbc84d8409285698486375f080d361ef3.zip
Auto merge of #87489 - bdalrhm:rustdoc-line-num, r=CraftSpider
`rustdoc`: compute correct line number for indented rust code blocks.

This PR fixes a bug in `rustdoc` where it computes the wrong line number for indented rust code blocks (and subsequent blocks) it finds in markdown strings. To fix this issue, we decrement the line number if we find characters between the code block and the preceding line ending. I noticed this issue as I was trying to use `rustdoc` to extract examples from The Rust Reference and run them through the [Rust Model Checker](https://github.com/model-checking/rmc).
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs')
0 files changed, 0 insertions, 0 deletions