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-06-25 01:23:16 +0000
committerbors <bors@rust-lang.org>2021-06-25 01:23:16 +0000
commit079aa837d205960592ef479387fb272cba16e2da (patch)
tree4ac17027896551ab55cf0f8ca36c3155e0207f12 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs
parentd4e7cb3254940e1db6d0670ecb15ccd89d6f69e3 (diff)
parent06db2104597b405a643c02307be68d1188a95f61 (diff)
downloadrust-079aa837d205960592ef479387fb272cba16e2da.tar.gz
rust-079aa837d205960592ef479387fb272cba16e2da.zip
Auto merge of #86574 - m-ou-se:or-pattern-lint-fix, r=petrochenkov
Don't lint :pat when re-parsing a macro from another crate.

`compile_macro` is used both when compiling the original definition in the crate that defines it, and to compile the macro when loading it when compiling a crate that uses it. We should only emit lints in the first case.

This adds a `is_definition: bool` to pass this information in, so we don't warn about things that only concern the definition site.

Fixes #86567
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs')
0 files changed, 0 insertions, 0 deletions