diff options
| author | bors <bors@rust-lang.org> | 2020-02-11 14:45:00 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-02-11 14:45:00 +0000 |
| commit | 95e0a2c50d063bd7eb79aa55d16cd5fee715c280 (patch) | |
| tree | 0f4b3d8fbfec1c1d3ec85e2761cb20b6e18863c3 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs | |
| parent | b6690a8c35e9afa3e0f65140cc69d4ba1b9e78c4 (diff) | |
| parent | b959da2f4cd2cf8f4b170369355fe7329cf5a9c9 (diff) | |
| download | rust-95e0a2c50d063bd7eb79aa55d16cd5fee715c280.tar.gz rust-95e0a2c50d063bd7eb79aa55d16cd5fee715c280.zip | |
Auto merge of #68725 - jumbatm:invert-control-in-struct_lint_level, r=Centril
Invert control in struct_lint_level. Closes #67927 Changes the `struct_lint*` methods to take a `decorate` function instead of a message string. This decorate function is also responsible for eventually stashing, emitting or cancelling the diagnostic. If the lint was allowed after all, the decorate function is not run at all, saving us from spending time formatting messages (and potentially other expensive work) for lints that don't end up being emitted. r? @Centril
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions
