-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Factor out error reporting from smart_resolve_path_fragment
fn
#58065
Conversation
72bdf5b
to
9fb908a
Compare
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. |
9fb908a
to
33521ca
Compare
@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.
33521ca
to
2e82ea1
Compare
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.
a8f15c3
to
29ff3d4
Compare
This comment has been minimized.
This comment has been minimized.
29ff3d4
to
92f1e9b
Compare
This comment has been minimized.
This comment has been minimized.
92f1e9b
to
ea08c19
Compare
@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. |
ea08c19
to
d5b514d
Compare
This comment has been minimized.
This comment has been minimized.
d5b514d
to
fd70e8e
Compare
@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