diff options
| author | bors <bors@rust-lang.org> | 2020-09-29 08:41:39 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-09-29 08:41:39 +0000 |
| commit | 99483be1c7629a17fad45b9c208982c3891639e3 (patch) | |
| tree | c2d87a0d0ac3a060f00dcb6aa17a0a829a8d035e /src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs | |
| parent | ce678b9ac1aac0cb32a36f88294cabf88de316fc (diff) | |
| parent | 101e76f117eeefcd2e901bab707de199b030f201 (diff) | |
| download | rust-99483be1c7629a17fad45b9c208982c3891639e3.tar.gz rust-99483be1c7629a17fad45b9c208982c3891639e3.zip | |
Auto merge of #6093 - ebroto:6089_renamed_lifetimes, r=Manishearth
needless arbitrary self: handle macros This fixes two cases related to macros: * If the parameter comes from expansion, do not lint as the user has no possibility of changing it. This is not directly related to the fixed issue, but we should probably do that. * If *only* the lifetime name comes from expansion, lint, but allow the user decide the name of the lifetime. In the related issue, the lifetime was unnamed and then renamed by `async_trait`, so just removing the name in the suggestion would work, but in the general case a macro can rename a lifetime that was named differently, and we can't reliably know that name anymore. As a hint for the reviewer, the expanded code for the test can be checked with this command (from the root dir of the repo): ```sh rustc -L target/debug/test_build_base/needless_arbitrary_self_type_unfixable.stage-id.aux -Zunpretty=expanded tests/ui/needless_arbitrary_self_type_unfixable.rs ``` changelog: [`needless_arbitrary_self_type`]: handle macros Fixes #6089
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions
