Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

ices/93842.sh: fixed with errors #1356

Merged
merged 1 commit into from
Jul 27, 2022
Merged

ices/93842.sh: fixed with errors #1356

merged 1 commit into from
Jul 27, 2022

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#93842

#!/bin/bash

rustc --target x86_64-pc-windows-msvc - <<'EOF'
#![feature(raw_dylib)]
#[link(name = "kernel32", kind = "raw-dylib")]
extern "system" {
    fn WaitForSingleObject(handle: isize, dwmilliseconds: u32) -> u32;
}
fn main() {
    unsafe { WaitForSingleObject(0, 0); }
    println!("ok");
}
EOF
=== stdout ===
=== stderr ===
warning: the feature `raw_dylib` is incomplete and may not be safe to use and/or cause compiler crashes
 --> <anon>:1:12
  |
1 | #![feature(raw_dylib)]
  |            ^^^^^^^^^
  |
  = note: `#[warn(incomplete_features)]` on by default
  = note: see issue #58713 <https://github.com/rust-lang/rust/issues/58713> for more information

error: linker `link.exe` not found
  |
  = note: No such file or directory (os error 2)

note: the msvc targets depend on the msvc linker but `link.exe` was not found

note: please ensure that VS 2013, VS 2015, VS 2017, VS 2019 or VS 2022 was installed with the Visual C++ option

error: aborting due to previous error; 1 warning emitted

==============

=== stdout ===
=== stderr ===
warning: the feature `raw_dylib` is incomplete and may not be safe to use and/or cause compiler crashes
 --> <anon>:1:12
  |
1 | #![feature(raw_dylib)]
  |            ^^^^^^^^^
  |
  = note: `#[warn(incomplete_features)]` on by default
  = note: see issue #58713 <rust-lang/rust#58713> for more information

error: linker `link.exe` not found
  |
  = note: No such file or directory (os error 2)

note: the msvc targets depend on the msvc linker but `link.exe` was not found

note: please ensure that VS 2013, VS 2015, VS 2017, VS 2019 or VS 2022 was installed with the Visual C++ option

error: aborting due to previous error; 1 warning emitted

==============
@Alexendoo Alexendoo merged commit 3db4cee into master Jul 27, 2022
@Alexendoo Alexendoo deleted the autofix/ices/93842.sh branch July 27, 2022 12:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants