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 5 pull requests #130401

Merged
merged 14 commits into from
Sep 15, 2024
Merged

Rollup of 5 pull requests #130401

merged 14 commits into from
Sep 15, 2024

Commits on Aug 23, 2024

  1. Implement feature string_from_utf8_lossy_owned

    Implement feature for lossily converting from `Vec<u8>` to `String`
    - Add `String::from_utf8_lossy_owned`
    - Add `FromUtf8Error::into_utf8_lossy`
    okaneco committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    65abcc2 View commit details
    Browse the repository at this point in the history

Commits on Sep 10, 2024

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

Commits on Sep 14, 2024

  1. Configuration menu
    Copy the full SHA
    3b806d3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fd3ee92 View commit details
    Browse the repository at this point in the history

Commits on Sep 15, 2024

  1. Configuration menu
    Copy the full SHA
    268f6cf View commit details
    Browse the repository at this point in the history
  2. make dist vendoring configurable

    Signed-off-by: onur-ozkan <work@onurozkan.dev>
    onur-ozkan committed Sep 15, 2024
    Configuration menu
    Copy the full SHA
    741b316 View commit details
    Browse the repository at this point in the history
  3. document dist.vendor in config.example.toml

    Signed-off-by: onur-ozkan <work@onurozkan.dev>
    onur-ozkan committed Sep 15, 2024
    Configuration menu
    Copy the full SHA
    9778f25 View commit details
    Browse the repository at this point in the history
  4. add change entry for dist.vendor

    Signed-off-by: onur-ozkan <work@onurozkan.dev>
    onur-ozkan committed Sep 15, 2024
    Configuration menu
    Copy the full SHA
    13542cd View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    339f68b View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#129439 - okaneco:vec_string_lossy, r=Noratrieb

    Implement feature `string_from_utf8_lossy_owned` for lossy conversion from `Vec<u8>` to `String` methods
    
    Accepted ACP: rust-lang/libs-team#116
    Tracking issue: rust-lang#129436
    
    Implement feature for lossily converting from `Vec<u8>` to `String`
    - Add `String::from_utf8_lossy_owned`
    - Add `FromUtf8Error::into_utf8_lossy`
    
    ---
    Related to rust-lang#64727, but unsure whether to mark it "fixed" by this PR.
    That issue partly asks for in-place replacement of the original allocation. We fulfill the other half of that request with these functions.
    
    closes rust-lang#64727
    matthiaskrgr authored Sep 15, 2024
    Configuration menu
    Copy the full SHA
    df3cf91 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#129828 - RalfJung:miri-data-race, r=saethlin

    miri: treat non-memory local variables properly for data race detection
    
    Fixes rust-lang/miri#3242
    
    Miri has an optimization where some local variables are not represented in memory until something forces them to be stored in memory (most notably, creating a pointer/reference to the local will do that). However, for a subsystem triggering on memory accesses -- such as the data race detector -- this means that the memory access seems to happen only when the local is moved to memory, instead of at the time that it actually happens. This can lead to UB reports in programs that do not actually have UB.
    
    This PR fixes that by adding machine hooks for reads and writes to such efficiently represented local variables. The data race system tracks those very similar to how it would track reads and writes to addressable memory, and when a local is moved to memory, the clocks get overwritten with the information stored for the local.
    matthiaskrgr authored Sep 15, 2024
    Configuration menu
    Copy the full SHA
    6ac598a View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#130110 - onur-ozkan:configurable-dist-vendo…

    …r, r=Kobzol,Mark-Simulacrum
    
    make dist vendoring configurable
    
    Adds a new option `dist.vendor` which allows people to decide whether to vendor dependencies for their custom distribution tarball builds. Note that our builds will not be affected, as the default for this option is the same as the previous vendoring condition from bootstrap.
    matthiaskrgr authored Sep 15, 2024
    Configuration menu
    Copy the full SHA
    8ad52dd View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#130293 - gurry:130142-lint-level-issue, r=c…

    …jgillot
    
    Fix lint levels not getting overridden by attrs on `Stmt` nodes
    
    Fixes rust-lang#130142. See comments on the issue for context.
    
    r? `@cjgillot`
    matthiaskrgr authored Sep 15, 2024
    Configuration menu
    Copy the full SHA
    18a93ca View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#130342 - RalfJung:slice-idx-overflow, r=sae…

    …thlin
    
    interpret, miri: fix dealing with overflow during slice indexing and allocation
    
    This is mostly to fix rust-lang#130284.
    
    I then realized we're using somewhat sketchy arguments for a similar multiplication in `copy`/`copy_nonoverlapping`/`write_bytes`,  so I made them all share the same function that checks exactly the right thing. (The intrinsics would previously fail on allocations larger than `1 << 47` bytes... which are theoretically possible maybe? Anyway it seems conceptually wrong to use any other bound than `isize::MAX` here.)
    matthiaskrgr authored Sep 15, 2024
    Configuration menu
    Copy the full SHA
    96195a5 View commit details
    Browse the repository at this point in the history