Skip to content

Conversation

@Veykril
Copy link
Member

@Veykril Veykril commented May 6, 2021

I'm unsure if the approach of lowering an ast::Type to a hir::Type is a good idea, it seems fine to me at least.
Fixes #2882

@matklad
Copy link
Contributor

matklad commented May 6, 2021

The test looks correct to me! The resolve_type api also feels ok. The impls is not right (it won’t fill _ in Vec<_> with the inferred type I think), but we can always fix this later.

The IDE part does look a bit off (I’d expect to see literal delegation to goto def), but that’s probably just nitpicking, it should work ok, really,

So,

bors r+

@bors
Copy link
Contributor

bors bot commented May 6, 2021

@bors bors bot merged commit a8da2ca into rust-lang:master May 6, 2021
@lnicola lnicola changed the title Support goto_type_definition for types fix: Support goto_type_definition for types May 7, 2021
@Veykril Veykril deleted the goto-ty-on-ty branch November 27, 2021 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Goto Type Definition should fallback to goto def machinery if already on a type

2 participants