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 11 pull requests #127837

Closed
wants to merge 32 commits into from
Closed

Commits on May 21, 2024

  1. Simplify environment variable examples

    I’ve found myself visiting the documentation for `std::env::vars`
    every few months, and every time I do, it is because I want to quickly
    get a snippet to print out all environment variables :-)
    
    So I think it could be nice to simplify the examples a little to make
    them self-contained. It is of course a style question if one should
    import a module a not, but I personally don’t import modules used just
    once in a code snippet.
    mgeisler committed May 21, 2024
    Configuration menu
    Copy the full SHA
    62e29fe View commit details
    Browse the repository at this point in the history

Commits on Jun 11, 2024

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

Commits on Jul 16, 2024

  1. Configuration menu
    Copy the full SHA
    7f8f178 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    23f26b1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8dafc5c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    51bdcf6 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    2f9dfd4 View commit details
    Browse the repository at this point in the history
  6. Fix relations

    compiler-errors committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    b9487d3 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    6ce78be View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    9ce6229 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    b55fa8f View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    3b495bb View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    ea2b699 View commit details
    Browse the repository at this point in the history
  12. std: unwrapped unsafe is VERBOTEN!

    Co-authored-by: Jonas Böttiger <jonasboettiger@icloud.com>
    workingjubilee and joboet committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    2499057 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    d9fde25 View commit details
    Browse the repository at this point in the history
  14. Avoid comments that describe multiple use items.

    There are some comments describing multiple subsequent `use` items. When
    the big `use` reformatting happens some of these `use` items will be
    reordered, possibly moving them away from the comment. With this
    additional level of formatting it's not really feasible to have comments
    of this type. This commit removes them in various ways:
    
    - merging separate `use` items when appropriate;
    
    - inserting blank lines between the comment and the first `use` item;
    
    - outright deletion (for comments that are relatively low-value);
    
    - adding a separate "top-level" comment.
    
    We also entirely skip formatting for four library files that contain
    nothing but `pub use` re-exports, where reordering would be painful.
    nnethercote committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    75b6ec9 View commit details
    Browse the repository at this point in the history
  15. Adjust some comments on individual use declarations.

    When we do the big `use` reformatting there are a tiny number of cases
    where rustfmt moves a comment from one `use` item to another in an
    undesirable way. This commit pre-emptively rearranges things to prevent
    this from happening.
    nnethercote committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    7f0ccfe View commit details
    Browse the repository at this point in the history
  16. zkvm: add #[forbid(unsafe_op_in_unsafe_fn)] in stdlib

    This also adds an additional `unsafe` block to address compiler errors.
    SchmErik committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    e48d33e View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    b5a83a6 View commit details
    Browse the repository at this point in the history
  18. Cfg nit

    Co-authored-by: Clar Fon <15850505+clarfonthey@users.noreply.github.com>
    diondokter and clarfonthey committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    33f1d9d View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    586ef83 View commit details
    Browse the repository at this point in the history
  20. Rollup merge of rust-lang#125206 - mgeisler:simplify-std-env-vars, r=…

    …jhpratt,tgross35
    
    Simplify environment variable examples
    
    I’ve found myself visiting the documentation for `std::env::vars` every few months, and every time I do, it is because I want to quickly get a snippet to print out all environment variables :-)
    
    So I think it could be nice to simplify the examples a little to make them self-contained. It is of course a style question if one should import a module a not, but I personally don’t import modules used just once in a code snippet.
    tgross35 committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    5e4a019 View commit details
    Browse the repository at this point in the history
  21. Rollup merge of rust-lang#126208 - Oneirical:one-flew-over-the-cuckoo…

    …'s-test, r=jieyouxu
    
    Migrate `compiler-lookup-paths`, `dump-mono-stats` and `prune-link-args` `run-make` tests to `rmake` or `ui` format
    
    Part of rust-lang#121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html).
    
    try-job: x86_64-msvc
    try-job: aarch64-apple
    try-job: dist-x86_64-linux
    try-job: armhf-gnu
    tgross35 committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    5080c9f View commit details
    Browse the repository at this point in the history
  22. Rollup merge of rust-lang#126271 - diondokter:dec2flt-skip-fast-path,…

    … r=tgross35
    
    Skip fast path for dec2flt when optimize_for_size
    
    Tracking issue: rust-lang#125612
    
    Skip the fast algorithm when optimizing for size.
    When compiling for https://github.com/quartiq/stabilizer I get these numbers:
    
    Before
    ```
       text    data     bss     dec     hex filename
     192192       8   49424  241624   3afd8 dual-iir
    ```
    
    After
    ```
       text    data     bss     dec     hex filename
     191632       8   49424  241064   3ada8 dual-iir
    ```
    
    This saves 560 bytes.
    tgross35 committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    004f420 View commit details
    Browse the repository at this point in the history
  23. Rollup merge of rust-lang#126776 - nnethercote:rustfmt-use-pre-cleanu…

    …ps-2, r=cuviper
    
    Clean up more comments near use declarations
    
    rust-lang#125443 will reformat all use declarations in the repository. There are a few edge cases involving comments on use declarations that require care. This PR fixes them up so rust-lang#125443 can go ahead with a simple `x fmt --all`. A follow-up to rust-lang#126717.
    
    r? `@cuviper`
    tgross35 committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    6cdf3f1 View commit details
    Browse the repository at this point in the history
  24. Rollup merge of rust-lang#127444 - Sky9x:cstr-bytes-iter, r=dtolnay

    `impl Send + Sync` and override `count` for the `CStr::bytes` iterator
    
    cc tracking issue rust-lang#112115
    tgross35 committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    c242655 View commit details
    Browse the repository at this point in the history
  25. Rollup merge of rust-lang#127792 - workingjubilee:read-unaligned-is-d…

    …warfier, r=joboet
    
    std: Use `read_unaligned` for reads from DWARF
    
    There's a lot of... *stuff* going on here. Meanwhile, `read_unaligned` has been available since 1.17.0, so let's just use that.
    tgross35 committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    05c0b11 View commit details
    Browse the repository at this point in the history
  26. Rollup merge of rust-lang#127807 - ChrisDenton:win-parking, r=joboet

    Use futex.rs for Windows thread parking
    
    If I'm not overlooking anything then the Windows 10+ thread parking implementation is practically the same as the futex.rs implementation. So we may as well use the same implementation for both. The old version is still kept around for Windows 7 support.
    
    r? ```@joboet``` if you wouldn't mind double checking I've not missed something
    tgross35 committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    53d935e View commit details
    Browse the repository at this point in the history
  27. Rollup merge of rust-lang#127810 - compiler-errors:less-tcx, r=lcnr

    Rename `tcx` to `cx` in `rustc_type_ir`
    
    Self-explanatory. Forgot that we had to do this in type_ir too, and not just the new solver crate lol.
    
    r? lcnr
    tgross35 committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    1562f72 View commit details
    Browse the repository at this point in the history
  28. Rollup merge of rust-lang#127816 - oli-obk:misnomer, r=compiler-errors

    Update method name to reflect changes to its internals
    
    forgot to do this in rust-lang#127431
    tgross35 committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    ed73eac View commit details
    Browse the repository at this point in the history
  29. Rollup merge of rust-lang#127833 - risc0:erik/zkvm-deny-unsafe, r=wor…

    …kingjubilee
    
    zkvm: add `#[forbid(unsafe_op_in_unsafe_fn)]` in `stdlib`
    
    This also adds an additional `unsafe` block to address compiler errors.
    This PR is intended to address rust-lang#127747 for the zkvm target.
    tgross35 committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    0a0464b View commit details
    Browse the repository at this point in the history
  30. Rollup merge of rust-lang#127836 - workingjubilee:forbid-unsafe-ops-i…

    …n-xous-uefi, r=tgross35
    
    std: Forbid unwrapped unsafe ops in xous and uefi modules
    tgross35 committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    e6dcab8 View commit details
    Browse the repository at this point in the history