mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 20:09:19 +00:00
rename combine -> or
This way we match API of Option https://doc.rust-lang.org/std/option/enum.Option.html#method.or
This commit is contained in:
parent
821d980fd9
commit
8cafdb3a99
2 changed files with 3 additions and 3 deletions
|
@ -59,7 +59,7 @@ impl Resolver {
|
|||
pub fn resolve_name(&self, name: &Name) -> PerNs<Resolution> {
|
||||
let mut resolution = PerNs::none();
|
||||
for scope in self.scopes.iter().rev() {
|
||||
resolution = resolution.combine(scope.resolve_name(name));
|
||||
resolution = resolution.or(scope.resolve_name(name));
|
||||
if resolution.is_both() {
|
||||
return resolution;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue