mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 14:51:48 +00:00
Expand proc-macros in workspace root, not package root
This commit is contained in:
parent
2025b43653
commit
9a47e6f2c8
7 changed files with 34 additions and 14 deletions
|
@ -34,7 +34,7 @@ use rustc_apfloat::{
|
|||
};
|
||||
use smallvec::SmallVec;
|
||||
use span::Edition;
|
||||
use stdx::{never, IsNoneOr};
|
||||
use stdx::never;
|
||||
use triomphe::Arc;
|
||||
|
||||
use crate::{
|
||||
|
@ -1489,12 +1489,14 @@ fn generic_args_sans_defaults<'ga>(
|
|||
}
|
||||
// otherwise, if the arg is equal to the param default, hide it (unless the
|
||||
// default is an error which can happen for the trait Self type)
|
||||
#[allow(unstable_name_collisions)]
|
||||
default_parameters.get(i).is_none_or(|default_parameter| {
|
||||
// !is_err(default_parameter.skip_binders())
|
||||
// &&
|
||||
arg != &default_parameter.clone().substitute(Interner, ¶meters)
|
||||
})
|
||||
match default_parameters.get(i) {
|
||||
None => true,
|
||||
Some(default_parameter) => {
|
||||
// !is_err(default_parameter.skip_binders())
|
||||
// &&
|
||||
arg != &default_parameter.clone().substitute(Interner, ¶meters)
|
||||
}
|
||||
}
|
||||
};
|
||||
let mut default_from = 0;
|
||||
for (i, parameter) in parameters.iter().enumerate() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue