Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce HirDisplay method for rendering source code & use it in add_function assist #4175

Merged
merged 2 commits into from
May 9, 2020

Conversation

TimoFreiberg
Copy link
Contributor

@TimoFreiberg TimoFreiberg commented Apr 27, 2020

Next feature for #3639.

So far the only change in the new HirDisplay method is that paths are qualified, but more changes will be necessary (omitting the function name from function types, returning an error instead of printing "{unknown}", probably more).

Is that approach okay?

@TimoFreiberg TimoFreiberg force-pushed the add_function_type_path branch from 69041ba to aa1bfa9 Compare April 27, 2020 20:45
crates/ra_assists/src/handlers/add_function.rs Outdated Show resolved Hide resolved
crates/ra_assists/src/handlers/add_function.rs Outdated Show resolved Hide resolved
crates/ra_hir_ty/src/display.rs Show resolved Hide resolved
crates/ra_hir_ty/src/display.rs Outdated Show resolved Hide resolved
crates/ra_hir_ty/src/display.rs Outdated Show resolved Hide resolved
crates/ra_hir_ty/src/display.rs Outdated Show resolved Hide resolved
@TimoFreiberg TimoFreiberg force-pushed the add_function_type_path branch 3 times, most recently from 1a8d3dd to ff29a1c Compare May 2, 2020 14:32
@TimoFreiberg TimoFreiberg force-pushed the add_function_type_path branch from ff29a1c to 64e6b82 Compare May 8, 2020 15:14
@matklad
Copy link
Member

matklad commented May 9, 2020

@flodiebold do you have more comments here? Changes look good to me!

@flodiebold
Copy link
Member

No, LGTM as well.

bors r+

@bors
Copy link
Contributor

bors bot commented May 9, 2020

@bors bors bot merged commit 25e37e2 into rust-lang:master May 9, 2020
@TimoFreiberg TimoFreiberg deleted the add_function_type_path branch May 9, 2020 10: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.

3 participants