File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -1462,7 +1462,7 @@ fn generic_args_sans_defaults<'ga>(
1462
1462
// otherwise, if the arg is equal to the param default, hide it (unless the
1463
1463
// default is an error which can happen for the trait Self type)
1464
1464
#[ 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| {
1466
1466
// !is_err(default_parameter.skip_binders())
1467
1467
// &&
1468
1468
arg != & default_parameter. clone ( ) . substitute ( Interner , & parameters)
Original file line number Diff line number Diff line change @@ -15,8 +15,10 @@ extern crate rustc_abi;
15
15
#[ cfg( not( feature = "in-rust-tree" ) ) ]
16
16
extern crate ra_ap_rustc_abi as rustc_abi;
17
17
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" ) ) ]
20
22
extern crate ra_ap_rustc_pattern_analysis as rustc_pattern_analysis;
21
23
22
24
mod builder;
You can’t perform that action at this time.
0 commit comments