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 6 pull requests #130379

Merged
merged 16 commits into from
Sep 15, 2024
Merged

Rollup of 6 pull requests #130379

merged 16 commits into from
Sep 15, 2024

Commits on Sep 6, 2024

  1. properly handle EOF in BufReader::peek

    previously this would cause an infinite loop due to it being
    unable to read `n` bytes.
    lolbinarycat committed Sep 6, 2024
    Configuration menu
    Copy the full SHA
    dfdbf63 View commit details
    Browse the repository at this point in the history

Commits on Sep 7, 2024

  1. Configuration menu
    Copy the full SHA
    8e3e20a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8230a90 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    79b87c5 View commit details
    Browse the repository at this point in the history

Commits on Sep 10, 2024

  1. force ci-llvm by default on library and tools profiles

    It's very rare for developers to need to modify LLVM,
    so "if-unchanged" isn't a good default since it fetches
    the LLVM submodule to track changes.
    
    Signed-off-by: onur-ozkan <work@onurozkan.dev>
    onur-ozkan committed Sep 10, 2024
    Configuration menu
    Copy the full SHA
    ed89d9b View commit details
    Browse the repository at this point in the history
  2. add change entry for "tools" and "library" profile update

    Signed-off-by: onur-ozkan <work@onurozkan.dev>
    onur-ozkan committed Sep 10, 2024
    Configuration menu
    Copy the full SHA
    b5d69ba View commit details
    Browse the repository at this point in the history

Commits on Sep 11, 2024

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

Commits on Sep 14, 2024

  1. Configuration menu
    Copy the full SHA
    14ed979 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    811ee38 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    29ccc0d View commit details
    Browse the repository at this point in the history

Commits on Sep 15, 2024

  1. Rollup merge of rust-lang#130042 - lolbinarycat:bufreaker_peek_eof, r…

    …=Amanieu
    
    properly handle EOF in BufReader::peek
    
    previously this would cause an infinite loop due to it being unable to read `n` bytes.
    Zalathar authored Sep 15, 2024
    Configuration menu
    Copy the full SHA
    e02e6bf View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#130061 - theemathas:box_vec_non_null, r=Mar…

    …kSimulacrum,workingjubilee
    
    Add `NonNull` convenience methods to `Box` and `Vec`
    
    Implements the ACP: rust-lang/libs-team#418.
    
    The docs for the added methods are mostly copied from the existing methods that use raw pointers instead of `NonNull`.
    
    I'm new to this "contributing to rustc" thing, so I'm sorry if I did something wrong. In particular, I don't know what the process is for creating a new unstable feature. Please advise me if I should do something. Thank you.
    Zalathar authored Sep 15, 2024
    Configuration menu
    Copy the full SHA
    c11505f View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#130202 - onur-ozkan:force-ci-llvm-on-defaul…

    …t-profiles, r=Mark-Simulacrum
    
    set `download-ci-llvm = true` by default on "library" and "tools" profiles
    
    It's very rare for developers to need to modify LLVM, so "if-unchanged" isn't a good default for "tools" and "library" profiles since it fetches the LLVM submodule to track changes.
    Zalathar authored Sep 15, 2024
    Configuration menu
    Copy the full SHA
    36ee852 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#130214 - RalfJung:zeroed, r=Mark-Simulacrum

    MaybeUninit::zeroed: mention that padding is not zeroed
    
    That should clarify cases like [this](rust-lang#129778 (comment)).
    Zalathar authored Sep 15, 2024
    Configuration menu
    Copy the full SHA
    0648987 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#130353 - Zalathar:lint-zero, r=jieyouxu

    Make some lint doctests compatible with `--stage=0`
    
    Currently, running `x test compiler --stage=0` (with `rust.parallel-compiler=false` to avoid other problems) results in two failures, because these lint doctests aren't compatible with the current stage0 compiler.
    
    In theory, the more “correct” solution would be to wrap the opening triple-backtick line in  `#[cfg_attr(not(bootstrap), doc = "..."]`. However, that causes a few practical problems:
    - `tidy` doesn't understand that syntax, and miscounts the number of backticks in the comment block.
    - `lint-docs` doesn't understand that syntax, and thinks it's trying to declare the lint name.
    - Working around the above problems would cause more work and more confusion for whoever does the next bootstrap beta bump.
    
    So instead this PR adds some bootstrap gates inside the individual doctests, which end up producing the desired behaviour, and are straightforward to remove.
    Zalathar authored Sep 15, 2024
    Configuration menu
    Copy the full SHA
    12fb8e4 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#130370 - kpreid:patch-2, r=compiler-errors

    unstable-book: `trait_upcasting` example should not have `#![allow(incomplete_features)]`
    
    Tracking issue: rust-lang#65991
    
    `trait_upcasting` is not currently an incomplete feature; therefore examples of its use do not require `#![allow(incomplete_features)]`.
    Zalathar authored Sep 15, 2024
    Configuration menu
    Copy the full SHA
    4b6f838 View commit details
    Browse the repository at this point in the history