about summary refs log tree commit diff
path: root/src/test/ui/iterators/iter-sum-overflow-overflow-checks.rs
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-06-11 19:04:20 +0200
committerGitHub <noreply@github.com>2020-06-11 19:04:20 +0200
commit8650df5dea7a27852a7fa6bd2585905abb521db7 (patch)
treedf7e39d8ffe113bd11f9cf75a54bec2157d219b8 /src/test/ui/iterators/iter-sum-overflow-overflow-checks.rs
parent6b418b307c0222ecceb3d82b46621a377b592c79 (diff)
parentddacc671901359ef1cd95722af0ff23a7ca6e212 (diff)
downloadrust-8650df5dea7a27852a7fa6bd2585905abb521db7.tar.gz
rust-8650df5dea7a27852a7fa6bd2585905abb521db7.zip
Rollup merge of #73230 - Amanieu:asm-unused2, r=petrochenkov
Suggest including unused asm arguments in a comment to avoid error

We require all arguments to an `asm!` to be used in the template string, just like format strings. However in some cases (e.g. `black_box`) it may be desirable to have `asm!` arguments that are not used in the template string.

Currently this is a hard error rather than a lint since `#[allow]` does not work on macros (#63221), so this PR suggests using the unused arguments in an asm comment as a workaround.

r? @petrochenkov
Diffstat (limited to 'src/test/ui/iterators/iter-sum-overflow-overflow-checks.rs')
0 files changed, 0 insertions, 0 deletions