]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #62696 - chocol4te:fix_#62194, r=estebank
authorMark Rousskov <mark.simulacrum@gmail.com>
Thu, 18 Jul 2019 15:29:39 +0000 (11:29 -0400)
committerGitHub <noreply@github.com>
Thu, 18 Jul 2019 15:29:39 +0000 (11:29 -0400)
Check that trait is exported or public before adding hint

Closes #62194.

This PR checks the `AccessLevels` of a trait to check whether adding the intercrate ambiguity hint is valid or not.

I am unsure of both the use of `.unwrap()` as well as removing hints for [downstream *and* [upstream](https://github.com/rust-lang/rust/blob/92b0f52584c9375505ecdefdd7855b93a5919d51/src/librustc/traits/select.rs#L112-L142).


Trivial merge