Skip to content

Commit

Permalink
Stabilize raw_dylib and debugger_visualizer (#2497)
Browse files Browse the repository at this point in the history
  • Loading branch information
kennykerr authored May 10, 2023
1 parent 2e7f99d commit 83a451c
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 11 deletions.
3 changes: 1 addition & 2 deletions crates/libs/core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ Learn more about Rust for Windows here: <https://github.com/microsoft/windows-rs

#![doc(html_no_source)]
#![allow(non_snake_case)]
#![cfg_attr(windows_debugger_visualizer, feature(debugger_visualizer), debugger_visualizer(natvis_file = "../windows.natvis"))]
#![cfg_attr(windows_raw_dylib, feature(raw_dylib))]
#![cfg_attr(windows_debugger_visualizer, debugger_visualizer(natvis_file = "../windows.natvis"))]

extern crate self as windows_core;

Expand Down
2 changes: 1 addition & 1 deletion crates/libs/core/src/strings/hstring.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ impl HSTRING {
return Ok(Self::new());
}

let mut ptr = Header::alloc(len)?;
let ptr = Header::alloc(len)?;

// Place each utf-16 character into the buffer and
// increase len as we go along.
Expand Down
1 change: 0 additions & 1 deletion crates/libs/sys/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ Learn more about Rust for Windows here: <https://github.com/microsoft/windows-rs
#![no_std]
#![doc(html_no_source)]
#![allow(non_snake_case, clashing_extern_declarations)]
#![cfg_attr(windows_raw_dylib, feature(raw_dylib))]

extern crate self as windows_sys;
mod Windows;
Expand Down
1 change: 0 additions & 1 deletion crates/libs/windows/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ Learn more about Rust for Windows here: <https://github.com/microsoft/windows-rs

#![doc(html_no_source)]
#![allow(non_snake_case, clashing_extern_declarations)]
#![cfg_attr(windows_raw_dylib, feature(raw_dylib))]

extern crate self as windows;
pub use Windows::*;
Expand Down
2 changes: 0 additions & 2 deletions crates/tests/core/tests/hstring.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![cfg_attr(windows_raw_dylib, feature(raw_dylib))]

use std::convert::TryFrom;
use windows::core::*;

Expand Down
2 changes: 0 additions & 2 deletions crates/tests/lib/tests/sys.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![cfg_attr(windows_raw_dylib, feature(raw_dylib))]

use windows_sys::{
Win32::Foundation::*, Win32::Graphics::Gdi::*, Win32::System::ProcessStatus::*,
Win32::System::Threading::*, Win32::Web::InternetExplorer::*,
Expand Down
1 change: 0 additions & 1 deletion crates/tests/standalone/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#![cfg(test)]
#![cfg_attr(windows_raw_dylib, feature(raw_dylib))]
#![allow(clashing_extern_declarations)]

mod b_arch;
Expand Down
1 change: 0 additions & 1 deletion crates/tests/targets/tests/link.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#![cfg(test)]
#![cfg_attr(windows_raw_dylib, feature(raw_dylib))]

#[test]
fn min() {
Expand Down

0 comments on commit 83a451c

Please sign in to comment.