-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Factor out error reporting from smart_resolve_path_fragment
fn
#58065
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
Factor out error reporting from smart_resolve_path_fragment
fn
#58065
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some potential places for refactoring... Not sure if the result will be better without looking at all dependencies, but just from the code structure, that's where I'd break into new functions.
This comment has been minimized.
This comment has been minimized.
I only looked briefly at the structure... I'll leave the actual review for r? @petrochenkov. |
@petrochenkov I've done a more moderate amount of refactoring than suggested by @Centril, but take a look, and let me know what you think. |
This comment has been minimized.
This comment has been minimized.
LGTM. Could you also move the factored out functions into |
@petrochenkov Yeah I agree, further splitting is probably not optimal. We can even leave it at the double split (first commit only) if you prefer, but I'm happy with how it is now. Points of review addressed. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@bors r+ |
📌 Commit ea08c194cd1879da577c37871a0a6da58fe3c2b1 has been approved by |
@Centril Definitely in need of one of your roll-up specials soon! ;-) |
☔ The latest upstream changes (presumably #58254) made this pull request unmergeable. Please resolve the merge conflicts. |
This comment has been minimized.
This comment has been minimized.
@bors r+ |
📌 Commit fd70e8e has been approved by |
…r=petrochenkov Factor out error reporting from `smart_resolve_path_fragment` fn This function was ridiculously monolithic before. We now have three rather-less-monolithic-and-horrifying functions. r? @Centril
☀️ Test successful - checks-travis, status-appveyor |
This function was ridiculously monolithic before. We now have three rather-less-monolithic-and-horrifying functions.
r? @Centril