Skip to content

Commit b248e53

Browse files
authored
Merge pull request #18662 from lnicola/sync-from-rust
internal: Sync from downstream
2 parents 41f3319 + c1433e9 commit b248e53

File tree

6 files changed

+21
-34
lines changed

6 files changed

+21
-34
lines changed

Cargo.lock

Lines changed: 12 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,11 @@ tt = { path = "./crates/tt", version = "0.0.0" }
8484
vfs-notify = { path = "./crates/vfs-notify", version = "0.0.0" }
8585
vfs = { path = "./crates/vfs", version = "0.0.0" }
8686

87-
ra-ap-rustc_lexer = { version = "0.80", default-features = false }
88-
ra-ap-rustc_parse_format = { version = "0.80", default-features = false }
89-
ra-ap-rustc_index = { version = "0.80", default-features = false }
90-
ra-ap-rustc_abi = { version = "0.80", default-features = false }
91-
ra-ap-rustc_pattern_analysis = { version = "0.80", default-features = false }
87+
ra-ap-rustc_lexer = { version = "0.85", default-features = false }
88+
ra-ap-rustc_parse_format = { version = "0.85", default-features = false }
89+
ra-ap-rustc_index = { version = "0.85", default-features = false }
90+
ra-ap-rustc_abi = { version = "0.85", default-features = false }
91+
ra-ap-rustc_pattern_analysis = { version = "0.85", default-features = false }
9292

9393
# local crates that aren't published to crates.io. These should not have versions.
9494
test-fixture = { path = "./crates/test-fixture" }

crates/hir-expand/src/inert_attr_macro.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,6 @@ pub const INERT_ATTRIBUTES: &[BuiltinAttribute] = &[
695695
template!(List: r#"cfg = "...", module = "...", kind = "...""#), DuplicatesOk,
696696
),
697697
rustc_attr!(TEST, rustc_symbol_name, Normal, template!(Word), WarnFollowing),
698-
rustc_attr!(TEST, rustc_polymorphize_error, Normal, template!(Word), WarnFollowing),
699698
rustc_attr!(TEST, rustc_def_path, Normal, template!(Word), WarnFollowing),
700699
rustc_attr!(TEST, rustc_mir, Normal, template!(List: "arg1, arg2, ..."), DuplicatesOk),
701700
gated!(

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

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3936,17 +3936,8 @@ The tracking issue for this feature is: [#117693]
39363936
"##,
39373937
},
39383938
Lint {
3939-
label: "core_pattern_type",
3940-
description: r##"# `core_pattern_type`
3941-
3942-
This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
3943-
3944-
------------------------
3945-
"##,
3946-
},
3947-
Lint {
3948-
label: "core_pattern_types",
3949-
description: r##"# `core_pattern_types`
3939+
label: "pattern_type_macro",
3940+
description: r##"# `pattern_type_macro`
39503941
39513942
This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
39523943

crates/profile/src/memory_usage.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,13 @@ fn memusage_linux() -> MemoryUsage {
6262
// mallinfo2 is very recent, so its presence needs to be detected at runtime.
6363
// Both are abysmally slow.
6464

65-
use std::ffi::CStr;
6665
use std::sync::atomic::{AtomicUsize, Ordering};
6766

6867
static MALLINFO2: AtomicUsize = AtomicUsize::new(1);
6968

7069
let mut mallinfo2 = MALLINFO2.load(Ordering::Relaxed);
7170
if mallinfo2 == 1 {
72-
let cstr = CStr::from_bytes_with_nul(b"mallinfo2\0").unwrap();
73-
mallinfo2 = unsafe { libc::dlsym(libc::RTLD_DEFAULT, cstr.as_ptr()) } as usize;
71+
mallinfo2 = unsafe { libc::dlsym(libc::RTLD_DEFAULT, c"mallinfo2".as_ptr()) } as usize;
7472
// NB: races don't matter here, since they'll always store the same value
7573
MALLINFO2.store(mallinfo2, Ordering::Relaxed);
7674
}

rust-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
9b4d7c6a40b328d212095c28670c629facf1557d
1+
5a6036a1802262f8cf02192b02026688d396f1d7

0 commit comments

Comments
 (0)