]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #37144 - eulerdisk:fix_37126, r=nrc
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Wed, 26 Oct 2016 21:49:26 +0000 (23:49 +0200)
committerGitHub <noreply@github.com>
Wed, 26 Oct 2016 21:49:26 +0000 (23:49 +0200)
commit6a1d4e911a6906332c1ec6a8bbb6d446855b29b8
tree16137952fb0547bf374f6b1bc611aa6873ec89da
parenta5b6a9fa8ad2e13adbfcc5f3f624d9252379d745
parent88b031e6efa417bb8cc0eecb18db13bfa93be19b
Rollup merge of #37144 - eulerdisk:fix_37126, r=nrc

save_analysis: Dump data only if get_path_data doesn't fail to resolve a path.

Solves #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