diff options
| author | bors <bors@rust-lang.org> | 2021-01-10 23:36:33 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-01-10 23:36:33 +0000 |
| commit | 26d451f4b3bcbea68eb80856aeddf37af52991ac (patch) | |
| tree | 1fef6a7c8b363237f3aac07822458f9f045a247b /src/test/rustdoc-ui/coverage/basic.rs | |
| parent | c97f11af7bc4a6d3578f6a953be04ab2449a5728 (diff) | |
| parent | 3ff866ed7c814add27d32a31caaf29fa44cb53f5 (diff) | |
| download | rust-26d451f4b3bcbea68eb80856aeddf37af52991ac.tar.gz rust-26d451f4b3bcbea68eb80856aeddf37af52991ac.zip | |
Auto merge of #80782 - petrochenkov:viscopes, r=matthewjasper
resolve: Scope visiting doesn't need an `Ident` Resolution scope visitor (`fn visit_scopes`) currently takes an `Ident` parameter, but it doesn't need a full identifier, or even its span, it only needs the `SyntaxContext` part. The `SyntaxContext` part is necessary because scope visitor has to jump to macro definition sites, so it has to be directed by macro expansion information somehow. I think it's clearer to pass only the necessary part. Yes, usually visiting happens as a part of an identifier resolution, but in cases like collecting traits in scope (#80765) or collecting typo suggestions that's not the case. r? `@matthewjasper`
Diffstat (limited to 'src/test/rustdoc-ui/coverage/basic.rs')
0 files changed, 0 insertions, 0 deletions
