You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.
The text was updated successfully, but these errors were encountered:
nrc
added
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
A-tools
E-mentor
Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.
labels
Oct 12, 2016
I can take this. I already dug into librustc_save_analysis some time ago, I encountered the same bug when I was trying to write a refactoring tool.
To fix the issue, I have to remove all the span_bug around there, right ?
There's likely to be some span_bugs that don't need to be there, but it won't be quite as simple as just ripping them out. There will be some error condition that needs to be dealt with.
save_analysis: Dump data only if get_path_data doesn't fail to resolve a path.
Solves rust-lang#37126
Dump data only if `get_path_data` doesn't fail to resolve a path.
`get_path_data` returns `None` when it have to deals with `Def::Err`, which is used as placeholder for a failed resolution.
Tell me if this is good enough, maybe I have to add some tests ?
r? @nrc
save_analysis: Dump data only if get_path_data doesn't fail to resolve a path.
Solves rust-lang#37126
Dump data only if `get_path_data` doesn't fail to resolve a path.
`get_path_data` returns `None` when it have to deals with `Def::Err`, which is used as placeholder for a failed resolution.
Tell me if this is good enough, maybe I have to add some tests ?
r? @nrc
E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.
STR: run with
-Zsave-analysis
on a program with a name resolution error. Result:cc rust-lang/rls#41 (bug manifests in the RLS)
The text was updated successfully, but these errors were encountered: