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 10 pull requests #93427

Merged
merged 30 commits into from
Jan 29, 2022
Merged

Rollup of 10 pull requests #93427

merged 30 commits into from
Jan 29, 2022

Commits on Jan 19, 2022

  1. Update rust-by-examples

    Amanieu committed Jan 19, 2022
    Configuration menu
    Copy the full SHA
    2f1a12f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5eb6fff View commit details
    Browse the repository at this point in the history

Commits on Jan 23, 2022

  1. Add os::unix::net::SocketAddr::unix

    Creates a new SocketAddr from a path, supports both regular paths and
    abstract namespaces.
    Thomasdezeeuw committed Jan 23, 2022
    Configuration menu
    Copy the full SHA
    f2cdb57 View commit details
    Browse the repository at this point in the history

Commits on Jan 24, 2022

  1. Reorder unwinding related builder methods to differentiate between dw…

    …arf and msvc instructions
    bjorn3 committed Jan 24, 2022
    Configuration menu
    Copy the full SHA
    19dd2ec View commit details
    Browse the repository at this point in the history
  2. Remove unused return values from resume and cleanup_ret

    Given that these instructions are diverging, not every codegen backend
    may be able to produce a return value for them.
    bjorn3 committed Jan 24, 2022
    Configuration menu
    Copy the full SHA
    e9646fa View commit details
    Browse the repository at this point in the history
  3. Merge add_handler into catch_switch

    Some codegen backends may require all handlers to be immediately known
    bjorn3 committed Jan 24, 2022
    Configuration menu
    Copy the full SHA
    7a16450 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f6ce771 View commit details
    Browse the repository at this point in the history
  5. Rename SocketAddr::unix to from_path

    And change it to disallow NULL bytes.
    Thomasdezeeuw committed Jan 24, 2022
    Configuration menu
    Copy the full SHA
    c1cd200 View commit details
    Browse the repository at this point in the history

Commits on Jan 25, 2022

  1. Configuration menu
    Copy the full SHA
    84c0c9d View commit details
    Browse the repository at this point in the history

Commits on Jan 26, 2022

  1. Configuration menu
    Copy the full SHA
    a6c0a3d View commit details
    Browse the repository at this point in the history

Commits on Jan 27, 2022

  1. Make sockaddr_un safe and use copy_nonoverlapping

    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.
    Thomasdezeeuw committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    ca9a3c9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4acb8ac View commit details
    Browse the repository at this point in the history
  3. fix typo documenation

    Karonazaba committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    db097f3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    38f59a3 View commit details
    Browse the repository at this point in the history

Commits on Jan 28, 2022

  1. Fix a typo from rust-lang#92899

    Just happened to notice this in passing
    scottmcm authored Jan 28, 2022
    Configuration menu
    Copy the full SHA
    81b4e51 View commit details
    Browse the repository at this point in the history
  2. fix typo documenation

    Karonazaba committed Jan 28, 2022
    Configuration menu
    Copy the full SHA
    ff79ce7 View commit details
    Browse the repository at this point in the history
  3. 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 respective mathematical concepts
    on Wikipedia.
    pierwill committed Jan 28, 2022
    Configuration menu
    Copy the full SHA
    7c7509b View commit details
    Browse the repository at this point in the history
  4. wasi: update to wasi 0.11.0

    To make use of `sock_accept()`, update the wasi crate to `0.11.0`.
    
    Signed-off-by: Harald Hoyer <harald@profian.com>
    haraldh committed Jan 28, 2022
    Configuration menu
    Copy the full SHA
    00cbc8d View commit details
    Browse the repository at this point in the history
  5. wasi: enable TcpListener and TcpStream

    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 <harald@profian.com>
    haraldh committed Jan 28, 2022
    Configuration menu
    Copy the full SHA
    d2a1369 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    35f578f View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#92611 - Amanieu:asm-reference, r=m-ou-se

    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
    matthiaskrgr authored Jan 28, 2022
    Configuration menu
    Copy the full SHA
    db6ca25 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#93158 - haraldh:wasi_sock_accept, r=dtolnay

    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),
            ))
    ```
    matthiaskrgr authored Jan 28, 2022
    Configuration menu
    Copy the full SHA
    9f15c4d View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#93239 - Thomasdezeeuw:socketaddr_creation, …

    …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`
    matthiaskrgr authored Jan 28, 2022
    Configuration menu
    Copy the full SHA
    18c8d0d View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#93261 - bjorn3:cg_ssa_refactor6, r=cjgillot

    Some unwinding related cg_ssa cleanups
    
    These should make it a bit easier for alternative codegen backends to implement unwinding.
    matthiaskrgr authored Jan 28, 2022
    Configuration menu
    Copy the full SHA
    ada77e9 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#93295 - ChrisDenton:tempdir-double-panic, r…

    …=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.
    matthiaskrgr authored Jan 28, 2022
    Configuration menu
    Copy the full SHA
    4f2e2ce View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#93353 - kellerkindt:saturating_int_assign_i…

    …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)
    matthiaskrgr authored Jan 28, 2022
    Configuration menu
    Copy the full SHA
    25cd639 View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#93356 - pierwill:partialord-headline, r=dto…

    …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">
    matthiaskrgr authored Jan 28, 2022
    Configuration menu
    Copy the full SHA
    cfe0300 View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#93375 - Kvicii:ISSUE_93374, r=notriddle

    fix typo `documenation`
    matthiaskrgr authored Jan 28, 2022
    Configuration menu
    Copy the full SHA
    2b4ce0c View commit details
    Browse the repository at this point in the history
  15. Rollup merge of rust-lang#93399 - ehuss:fix-compiletest-path-relative…

    …, 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).
    matthiaskrgr authored Jan 28, 2022
    Configuration menu
    Copy the full SHA
    6baf25e View commit details
    Browse the repository at this point in the history
  16. Rollup merge of rust-lang#93404 - rust-lang:scottmcm-patch-1, r=wesle…

    …ywiser
    
    Fix a typo from rust-lang#92899
    
    Just happened to notice this in passing
    matthiaskrgr authored Jan 28, 2022
    Configuration menu
    Copy the full SHA
    27f6821 View commit details
    Browse the repository at this point in the history