about summary refs log tree commit diff
path: root/tests/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-07-24 17:21:15 +0000
committerbors <bors@rust-lang.org>2022-07-24 17:21:15 +0000
commit20e420473064e899c1079c65dddf942b8ca23b7e (patch)
treeeef7235e67587123a6e22694dbc6ce919205397f /tests/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs
parent4a5b7e266a4b3c10b38fcb107e737fd5d7f510c1 (diff)
parentd60d5e8bde9650f967f511f6649bc8f8ece8decc (diff)
downloadrust-20e420473064e899c1079c65dddf942b8ca23b7e.tar.gz
rust-20e420473064e899c1079c65dddf942b8ca23b7e.zip
Auto merge of #9237 - Alexendoo:useless-format-spans, r=Jarcho
Fix `useless_format` spans for `format!("{foo}")`

Fixes #9234

changelog: [`useless_format`]: Fix spans for `format!("{foo}")`

https://github.com/rust-lang/rust/pull/94030 made our workaround unneeded, but by coincidence our test still passed [because `Span::new()` swaps `hi` & `lo` if needed](https://github.com/rust-lang/rust/blob/c32dcbba187d1ee0dbe92dc152cb9c2f3f42900c/compiler/rustc_span/src/span_encoding.rs#L86-L88). So with a single character variable like `format!("{x}")` it still worked
Diffstat (limited to 'tests/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs')
0 files changed, 0 insertions, 0 deletions