Skip to content

Commit 3026228

Browse files
committed
Merge from rust-lang/rust
2 parents b19be7d + 4c05bc7 commit 3026228

File tree

3 files changed

+3
-15
lines changed

3 files changed

+3
-15
lines changed

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
}

0 commit comments

Comments
 (0)