Skip to content

Commit cba236d

Browse files
authored
Merge pull request #19169 from lnicola/sync-from-rust
minor: Sync from downstream
2 parents 656daef + b4feffa commit cba236d

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,11 @@ vfs-notify = { path = "./crates/vfs-notify", version = "0.0.0" }
8787
vfs = { path = "./crates/vfs", version = "0.0.0" }
8888
edition = { path = "./crates/edition", version = "0.0.0" }
8989

90-
ra-ap-rustc_lexer = { version = "0.94", default-features = false }
91-
ra-ap-rustc_parse_format = { version = "0.94", default-features = false }
92-
ra-ap-rustc_index = { version = "0.94", default-features = false }
93-
ra-ap-rustc_abi = { version = "0.94", default-features = false }
94-
ra-ap-rustc_pattern_analysis = { version = "0.94", default-features = false }
90+
ra-ap-rustc_lexer = { version = "0.95", default-features = false }
91+
ra-ap-rustc_parse_format = { version = "0.95", default-features = false }
92+
ra-ap-rustc_index = { version = "0.95", default-features = false }
93+
ra-ap-rustc_abi = { version = "0.95", default-features = false }
94+
ra-ap-rustc_pattern_analysis = { version = "0.95", default-features = false }
9595

9696
# local crates that aren't published to crates.io. These should not have versions.
9797

crates/hir-ty/src/diagnostics/match_check/pat_analysis.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ impl<'db> MatchCheckCtx<'db> {
9595

9696
let place_validity = PlaceValidity::from_bool(known_valid_scrutinee.unwrap_or(true));
9797
// Measured to take ~100ms on modern hardware.
98-
let complexity_limit = Some(500000);
98+
let complexity_limit = 500000;
9999
compute_match_usefulness(self, arms, scrut_ty, place_validity, complexity_limit)
100100
}
101101

crates/hir-ty/src/infer/coerce.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ impl InferenceTable<'_> {
399399
// Check that the types which they point at are compatible.
400400
let from_raw = TyKind::Raw(to_mt, from_inner.clone()).intern(Interner);
401401

402-
// Although references and unsafe ptrs have the same
402+
// Although references and raw ptrs have the same
403403
// representation, we still register an Adjust::DerefRef so that
404404
// regionck knows that the region for `a` must be valid here.
405405
if is_ref {

crates/ide-db/src/generated/lints.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9107,8 +9107,8 @@ The tracking issue for this feature is: [#27721]
91079107
deny_since: None,
91089108
},
91099109
Lint {
9110-
label: "pattern_complexity",
9111-
description: r##"# `pattern_complexity`
9110+
label: "pattern_complexity_limit",
9111+
description: r##"# `pattern_complexity_limit`
91129112

91139113
This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
91149114

rust-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
d9a4a47b8b3dc0bdff83360cea2013200d60d49c
1+
273465e1f2932a30a5b56ac95859cdc86f3f33fa

0 commit comments

Comments
 (0)