]> git.lizzy.rs Git - rust.git/commitdiff
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)
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


Trivial merge