diff options
| author | jumbatm <jumbatm@gmail.com> | 2020-02-02 19:41:14 +1000 |
|---|---|---|
| committer | jumbatm <jumbatm@gmail.com> | 2020-02-11 19:49:01 +1000 |
| commit | 2f0430a163bb2f4fe6545064391606bb736e9e51 (patch) | |
| tree | f31051b5d0d597131a62d983abfa00348ccb14e7 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs | |
| parent | b2e78faa15263011dad1e9579fc59610d5b75579 (diff) | |
| download | rust-2f0430a163bb2f4fe6545064391606bb736e9e51.tar.gz rust-2f0430a163bb2f4fe6545064391606bb736e9e51.zip | |
Make cx.span_lint methods lazy
- Make report_unsafe take decorate function - Remove span_lint, replacing calls with struct_span_lint, as caller is now responsible for emitting. - Remove lookup_and_emit, replacing with just lookup which takes a decorate function. - Remove span_lint_note, span_lint_help. These methods aren't easily made lazy as standalone methods, private, and unused. If this functionality is needed, to be lazy, they can easily be made into Fn(&mut DiagnosticBuilder) that are meant to be called _within_ the decorate function. - Rename lookup_and_emit_with_diagnostics to lookup_with_diagnostics to better reflect the fact that it doesn't emit for you.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions
