Skip to content

Commit a38f64b

Browse files
author
The Miri Cronjob Bot
committed
Merge from rustc
2 parents 6a89688 + 2d820ec commit a38f64b

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

crates/hir-ty/src/display.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1462,7 +1462,7 @@ fn generic_args_sans_defaults<'ga>(
14621462
// otherwise, if the arg is equal to the param default, hide it (unless the
14631463
// default is an error which can happen for the trait Self type)
14641464
#[allow(unstable_name_collisions)]
1465-
default_parameters.get(i).is_none_or(|default_parameter| {
1465+
IsNoneOr::is_none_or(default_parameters.get(i), |default_parameter| {
14661466
// !is_err(default_parameter.skip_binders())
14671467
// &&
14681468
arg != &default_parameter.clone().substitute(Interner, &parameters)

crates/hir-ty/src/lib.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@ extern crate rustc_abi;
1515
#[cfg(not(feature = "in-rust-tree"))]
1616
extern crate ra_ap_rustc_abi as rustc_abi;
1717

18-
// Use the crates.io version unconditionally until the API settles enough that we can switch to
19-
// using the in-tree one.
18+
#[cfg(feature = "in-rust-tree")]
19+
extern crate rustc_pattern_analysis;
20+
21+
#[cfg(not(feature = "in-rust-tree"))]
2022
extern crate ra_ap_rustc_pattern_analysis as rustc_pattern_analysis;
2123

2224
mod builder;

0 commit comments

Comments
 (0)