Long lines
This commit is contained in:
parent
f459acc45d
commit
0a3a2eebfc
1 changed files with 7 additions and 6 deletions
|
@ -141,16 +141,16 @@ enum Namespace {
|
||||||
ValueNS
|
ValueNS
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A NamespaceResult represents the result of resolving an import in a
|
/// A NamespaceResult represents the result of resolving an import in
|
||||||
/// particular namespace. The result is either definitely-resolved, definitely-
|
/// a particular namespace. The result is either definitely-resolved,
|
||||||
/// unresolved, or unknown.
|
/// definitely- unresolved, or unknown.
|
||||||
enum NamespaceResult {
|
enum NamespaceResult {
|
||||||
/// Means that resolve hasn't gathered enough information yet to determine
|
/// Means that resolve hasn't gathered enough information yet to determine
|
||||||
/// whether the name is bound in this namespace. (That is, it hasn't
|
/// whether the name is bound in this namespace. (That is, it hasn't
|
||||||
/// resolved all `use` directives yet.)
|
/// resolved all `use` directives yet.)
|
||||||
UnknownResult,
|
UnknownResult,
|
||||||
/// Means that resolve has determined that the name is definitely not bound in
|
/// Means that resolve has determined that the name is definitely
|
||||||
/// the namespace.
|
/// not bound in the namespace.
|
||||||
UnboundResult,
|
UnboundResult,
|
||||||
/// Means that resolve has determined that the name is bound in the Module
|
/// Means that resolve has determined that the name is bound in the Module
|
||||||
/// argument, and specified by the NameBindings argument.
|
/// argument, and specified by the NameBindings argument.
|
||||||
|
@ -1205,7 +1205,8 @@ impl Resolver {
|
||||||
self.build_reduced_graph_for_variant(*variant,
|
self.build_reduced_graph_for_variant(*variant,
|
||||||
local_def(item.id),
|
local_def(item.id),
|
||||||
// inherited => privacy of the enum item
|
// inherited => privacy of the enum item
|
||||||
self.visibility_to_privacy(variant.node.vis, privacy == Public),
|
self.visibility_to_privacy(variant.node.vis,
|
||||||
|
privacy == Public),
|
||||||
new_parent, visitor);
|
new_parent, visitor);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue