Uh oh!
There was an error while loading. Please reload this page.
SGX target: fix std unit tests - #59136
Conversation
rust-highfive
commented
Mar 12, 2019
r? @KodrAus (rust_highfive has picked a reviewer for you, use r? to override) |
jethrogb
commented
Mar 12, 2019
These tests currently fail:
I'm still investigating whether this is a bug in the SGX sys implemenation, or a bug in the tests. The cause is that the SGX |
3c387cb to
33b41b7Comparerust-highfive
commented
Mar 12, 2019
The job Click to expand the log.I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
jethrogb
commented
Mar 12, 2019
These last two tests are addressed in #59147 |
bors
commented
Mar 16, 2019
☔ The latest upstream changes (presumably #59226) made this pull request unmergeable. Please resolve the merge conflicts. |
| ); | ||
| if cfg!(unix) { | ||
| if cfg!(unix) || cfg!(all(target_env = "sgx", target_vendor = "fortanix")) { |
There was a problem hiding this comment.
It seems to me all other places check target_env, but only in this file target_vendor too is checked.
There was a problem hiding this comment.
There are other places where target_vendor is used already, like https://github.com/rust-lang/rust/blob/master/src/libstd/sys_common/mod.rs#L54
I choose all(target_vendor = "fortanix", target_env = "sgx") or target_env = "sgx" on a best-effort basis depending on the particular functionality. However, since there are no upstream targets that are all(not(target_vendor = "fortanix"), target_env = "sgx"), I can't really say with certainty that the conditions are correct everywhere.
sanxiyn
commented
Mar 19, 2019
@bors r+ |
bors
commented
Mar 19, 2019
📌 Commit 32bcff1 has been approved by |
SGX target: fix std unit tests This fixes some tests and some code in the SGX sys implementation to make the `std` unit test suite pass. rust-lang#59009 must be merged first.
bors
commented
Mar 24, 2019
⌛ Testing commit 32bcff1 with merge 73daa8197fb59d29fe452cef646f82aa2d94d6b3... |
bors
commented
Mar 24, 2019
💔 Test failed - status-appveyor |
tesuji
commented
Mar 24, 2019
Testing std stage1 (i686-pc-windows-msvc -> i686-pc-windows-msvc)Compiling std v0.0.0(C:\projects\rust\src\libstd)[RUSTC-TIMING] run_time_detect test:true 1.188[RUSTC-TIMING] env test:true 1.890error[E0433]: failed to resolve:use of undeclared type or module `os`
--> src\libstd\net\tcp.rs:1575:36
|
1575 | fn render_inner(addr:&dyn os::windows::io::AsRawSocket) -> impl fmt::Debug{
| ^^ use of undeclared type or module `os`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0433`. |
jethrogb
commented
Mar 25, 2019
Fixed |
sanxiyn
commented
Mar 26, 2019
@bors r+ |
bors
commented
Mar 26, 2019
📌 Commit f229422 has been approved by |
bors
commented
Mar 26, 2019
SGX target: fix std unit tests This fixes some tests and some code in the SGX sys implementation to make the `std` unit test suite pass. #59009 must be merged first.
bors
commented
Mar 26, 2019
☀️ Test successful - checks-travis, status-appveyor |
This fixes some tests and some code in the SGX sys implementation to make the
stdunit test suite pass.#59009 must be merged first.