Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rollup of 4 pull requests #62237

Closed
wants to merge 20 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
1c6b4d5
rustc: codegen: Build import library for all windows targets
chouquette May 27, 2019
c1b6716
libstd: windows: compat: Allow use of attributes
chouquette May 27, 2019
863cd6b
bootstrap: Build startup object for all windows-gnu target
chouquette May 27, 2019
e5d7043
std: Link UWP with allowed libraries only
chouquette May 27, 2019
98f9bba
libunwind: Use libunwind when targeting UWP
chouquette May 27, 2019
20eb746
std: rand: Use BCrypt on UWP
chouquette May 27, 2019
0f15466
std: win: Don't use SetHandleInformation on UWP
chouquette May 27, 2019
5466e9f
std: win: Don't expose link() on UWP
chouquette May 27, 2019
b514557
std: win: Don't use GetUserProfileDirectoryW on UWP
chouquette May 27, 2019
07d11ae
std: win: Don't use GetFileInformationByHandle on UWP
chouquette May 27, 2019
a7ad699
std: win: Don't use console APIs on UWP
chouquette May 27, 2019
1a0a263
std: win: Disable stack overflow handling on UWP
chouquette May 27, 2019
1726259
Add UWP targets
chouquette May 27, 2019
9d798b7
Adjust warning of -C extra-filename with -o.
ehuss Jun 25, 2019
722cfc4
Update the `rust-installer` submodule
alexcrichton Jun 26, 2019
e991abd
remove unused derives and variants
euclio Jun 27, 2019
94854b2
Rollup merge of #60260 - videolabs:rust_uwp2, r=alexcrichton
Centril Jun 29, 2019
8f908f7
Rollup merge of #62128 - ehuss:extra-filename-warning, r=matthewjasper
Centril Jun 29, 2019
14df5e8
Rollup merge of #62153 - alexcrichton:parallel-compress, r=Mark-Simul…
Centril Jun 29, 2019
b30f62f
Rollup merge of #62224 - euclio:remove-derives, r=GuillaumeGomez
Centril Jun 29, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
libstd: windows: compat: Allow use of attributes
chouquette committed Jun 25, 2019
commit c1b6716a3d75bf7f5d726088e3b3aca673c99358
2 changes: 2 additions & 0 deletions src/libstd/sys/windows/compat.rs
Original file line number Diff line number Diff line change
@@ -37,12 +37,14 @@ pub fn store_func(ptr: &AtomicUsize, module: &str, symbol: &str,

macro_rules! compat_fn {
($module:ident: $(
$(#[$meta:meta])*
pub fn $symbol:ident($($argname:ident: $argtype:ty),*)
-> $rettype:ty {
$($body:expr);*
}
)*) => ($(
#[allow(unused_variables)]
$(#[$meta])*
pub unsafe fn $symbol($($argname: $argtype),*) -> $rettype {
use crate::sync::atomic::{AtomicUsize, Ordering};
use crate::mem;