-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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 10 pull requests #93427
Rollup of 10 pull requests #93427
Conversation
Creates a new SocketAddr from a path, supports both regular paths and abstract namespaces.
…arf and msvc instructions
Given that these instructions are diverging, not every codegen backend may be able to produce a return value for them.
Some codegen backends may require all handlers to be immediately known
And change it to disallow NULL bytes.
The creation of libc::sockaddr_un is a safe operation, no need for it to be unsafe. This also uses the more performant copy_nonoverlapping instead of an iterator.
Just happened to notice this in passing
This makes `PartialOrd` consistent with the other three traits in this module, which all include links to their respective mathematical concepts on Wikipedia.
To make use of `sock_accept()`, update the wasi crate to `0.11.0`. Signed-off-by: Harald Hoyer <[email protected]>
With the addition of `sock_accept()` to snapshot1, simple networking via a passed `TcpListener` is possible. This patch implements the basics to make a simple server work. Signed-off-by: Harald Hoyer <[email protected]>
Add links to the reference and rust by example for asm! docs and lints These were previously removed in rust-lang#91728 due to broken links. cc ``@ehuss`` since this updates the rust-by-example submodule
wasi: implement `sock_accept` and enable networking With the addition of `sock_accept()` to snapshot1, simple networking via a passed `TcpListener` is possible. This PR implements the basics to make a simple server work. See also: * [wasmtime tracking issue](bytecodealliance/wasmtime#3730) * [wasmtime PR](bytecodealliance/wasmtime#3711) TODO: * [ ] Discussion of `SocketAddr` return value for `::accept()` ```rust Ok(( TcpStream::from_inner(unsafe { Socket::from_raw_fd(fd as _) }), // WASI has no concept of SocketAddr yet // return an unspecified IPv4Addr SocketAddr::new(Ipv4Addr::UNSPECIFIED.into(), 0), )) ```
…r=m-ou-se Add os::unix::net::SocketAddr::from_path Creates a new SocketAddr from a path, supports both regular paths and abstract namespaces. Note that `SocketAddr::from_abstract_namespace` could be removed after this as `SocketAddr::unix` also supports abstract namespaces. Updates rust-lang#65275 Unblocks tokio-rs/mio#1527 r? `@m-ou-se`
Some unwinding related cg_ssa cleanups These should make it a bit easier for alternative codegen backends to implement unwinding.
…=dtolnay Avoid double panics when using `TempDir` in tests `TempDir` could panic on drop if `remove_dir_all` returns an error. If this happens while already panicking, the test process would abort and therefore not show the test results. This PR tries to avoid such double panics.
…mpl, r=joshtriplett Unimpl {Add,Sub,Mul,Div,Rem,BitXor,BitOr,BitAnd}<$t> for Saturating<$t> Tracking issue rust-lang#92354 Analog to 9648b31 rust-lang#93208 reduce `saturating_int_assign_impl` (rust-lang#93208) to: ```rust let mut value = Saturating(2u8); value += 3u8; value -= 1u8; value *= 2u8; value /= 2u8; value %= 2u8; value ^= 255u8; value |= 123u8; value &= 2u8; ``` See rust-lang#93208 (comment)
…lnay Edit docs introduction for `std::cmp::PartialOrd` This makes `PartialOrd` consistent with the other three traits in this module, which all include links to their corresponding mathematical concepts on Wikipedia. <img width="500" alt="Screen Shot 2022-01-26 at 10 24 23 PM" src="https://user-images.githubusercontent.com/19642016/151291720-decd85ed-cd6e-4be0-84a9-619b98ceb386.png">
fix typo `documenation`
…, r=Mark-Simulacrum rustbuild: Fix compiletest warning when building outside of root. This fixes a warning that would happen when passing arguments to compiletest (like `x.py test src/test/ui`) when running `x.py` outside of the root source directory. For example, the CI builders do this, which causes a confusing warning message. This also fixes it so that passing a full path works (like `x.py test src/test/ui/hello.rs`) in the same scenario (previously it would just ignore the `hello.rs` part).
…ywiser Fix a typo from rust-lang#92899 Just happened to notice this in passing
@bors r+ rollup=never p=10 |
📌 Commit 27f6821 has been approved by |
The job Click to see the possible cause of the failure (guessed by this bot)
|
⌛ Testing commit 27f6821 with merge 5f2058bfb38af536a27ca8c91f1c00642c1c08a5... |
💥 Test timed out |
@bors retry auto (x86_64-gnu-aux, ubuntu-20.04-xl) timeout |
☀️ Test successful - checks-actions |
Finished benchmarking commit (6250d5a): comparison url. Summary: This benchmark run shows 39 relevant improvements 🎉 to instruction counts.
If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. @rustbot label: -perf-regression |
Successful merges:
sock_accept
and enable networking #93158 (wasi: implementsock_accept
and enable networking)TempDir
in tests #93295 (Avoid double panics when usingTempDir
in tests)std::cmp::PartialOrd
#93356 (Edit docs introduction forstd::cmp::PartialOrd
)documenation
#93375 (fix typodocumenation
)Failed merges:
r? @ghost
@rustbot modify labels: rollup
Create a similar rollup