]> git.lizzy.rs Git - rust.git/commit
save-analysis: handle function types in bounds
authorNick Cameron <ncameron@mozilla.com>
Wed, 1 Nov 2017 04:59:06 +0000 (17:59 +1300)
committerNick Cameron <ncameron@mozilla.com>
Wed, 1 Nov 2017 19:12:05 +0000 (08:12 +1300)
commitc1d3e441a8c6d24bc61d3deb22a0909401767ada
tree9524d5e40355564b8bb8bc5a697e6e83cf8b63c3
parent90ef3372e8ad74517eafa61e9494688c258b15ce
save-analysis: handle function types in bounds

This special cases the function type sugar in paths and deals with traits bounds as just the path parts. That required refactoring the path collector to distinguish between variable decls and references in patterns, basically just to please the borrow checker.

cc https://github.com/nrc/rls-analysis/issues/37
src/librustc_save_analysis/dump_visitor.rs
src/librustc_save_analysis/lib.rs