]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #41061 - arielb1:parent-lock, r=eddyb
authorCorey Farwell <coreyf@rwell.org>
Fri, 7 Apr 2017 13:20:06 +0000 (09:20 -0400)
committerGitHub <noreply@github.com>
Fri, 7 Apr 2017 13:20:06 +0000 (09:20 -0400)
cstore: return an immutable borrow from `visible_parent_map`

This prevents an ICE when `visible_parent_map` is called multiple times, for example when an item referenced in an impl signature is imported from an  `extern crate` statement occurs within an impl.

Fixes #41053.

r? @eddyb

1  2 
src/librustc/middle/cstore.rs
src/librustc_metadata/cstore_impl.rs

Simple merge
Simple merge