mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
Merge from rustc
This commit is contained in:
commit
a38f64bef8
2 changed files with 5 additions and 3 deletions
|
@ -1462,7 +1462,7 @@ fn generic_args_sans_defaults<'ga>(
|
||||||
// otherwise, if the arg is equal to the param default, hide it (unless the
|
// 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)
|
// default is an error which can happen for the trait Self type)
|
||||||
#[allow(unstable_name_collisions)]
|
#[allow(unstable_name_collisions)]
|
||||||
default_parameters.get(i).is_none_or(|default_parameter| {
|
IsNoneOr::is_none_or(default_parameters.get(i), |default_parameter| {
|
||||||
// !is_err(default_parameter.skip_binders())
|
// !is_err(default_parameter.skip_binders())
|
||||||
// &&
|
// &&
|
||||||
arg != &default_parameter.clone().substitute(Interner, ¶meters)
|
arg != &default_parameter.clone().substitute(Interner, ¶meters)
|
||||||
|
|
|
@ -15,8 +15,10 @@ extern crate rustc_abi;
|
||||||
#[cfg(not(feature = "in-rust-tree"))]
|
#[cfg(not(feature = "in-rust-tree"))]
|
||||||
extern crate ra_ap_rustc_abi as rustc_abi;
|
extern crate ra_ap_rustc_abi as rustc_abi;
|
||||||
|
|
||||||
// Use the crates.io version unconditionally until the API settles enough that we can switch to
|
#[cfg(feature = "in-rust-tree")]
|
||||||
// using the in-tree one.
|
extern crate rustc_pattern_analysis;
|
||||||
|
|
||||||
|
#[cfg(not(feature = "in-rust-tree"))]
|
||||||
extern crate ra_ap_rustc_pattern_analysis as rustc_pattern_analysis;
|
extern crate ra_ap_rustc_pattern_analysis as rustc_pattern_analysis;
|
||||||
|
|
||||||
mod builder;
|
mod builder;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue