We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fe5036 commit b0551a4Copy full SHA for b0551a4
compiler/rustc_resolve/src/access_levels.rs
@@ -80,7 +80,7 @@ impl<'r, 'a> AccessLevelsVisitor<'r, 'a> {
80
false => AccessLevel::Public
81
};
82
83
- if let Some(def_id) = binding.res().opt_def_id().and_then(|id| id.as_local()) {
+ if let Some(def_id) = binding.res().opt_def_id().and_then(|id| id.as_local()) && !binding.is_ambiguity(){
84
let vis = match binding.vis {
85
Visibility::Public => Visibility::Public,
86
Visibility::Restricted(id) => Visibility::Restricted(id.expect_local())
0 commit comments