Factor out error reporting from smart_resolve_path_fragment
fn#58065
Merged
bors merged 5 commits intorust-lang:master from alexreg:refactor-smart_resolve_path_fragmentFeb 10, 2019
+423-389
smart_resolve_path_fragment
fn#58065