]> git.lizzy.rs Git - rust.git/commit
save-analysis: be a bit more defensive with field sub-expressions
authorNick Cameron <ncameron@mozilla.com>
Wed, 25 May 2016 03:24:55 +0000 (15:24 +1200)
committerNick Cameron <ncameron@mozilla.com>
Wed, 25 May 2016 03:24:55 +0000 (15:24 +1200)
commitc8ee3f20823251b6141f3046593526c5bb218da3
treed3b568ec22b3e41df7e26ba51fc0fa2384a120b1
parentdd6e8d45e183861d44ed91a99f0a50403b2776a3
save-analysis: be a bit more defensive with field sub-expressions

Prevents an ice with `(...).f` since the sub-expression is in the AST but not the HIR.

We could actually do better in this specific case, but it doesn't seem worth it.
src/librustc_save_analysis/lib.rs