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 9 pull requests #79252

Closed
wants to merge 32 commits into from

Commits on Sep 18, 2020

  1. Add exploit mitigations chapter to the rustc book

    This section documents the exploit mitigations applicable to the Rust
    compiler when building programs for the Linux operating system on the
    AMD64 architecture and equivalent.
    rcvalle committed Sep 18, 2020
    Configuration menu
    Copy the full SHA
    60c85f1 View commit details
    Browse the repository at this point in the history

Commits on Sep 21, 2020

  1. Configuration menu
    Copy the full SHA
    9b45292 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a9f7e1b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6a38a63 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    344d835 View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2020

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

Commits on Sep 29, 2020

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

Commits on Sep 30, 2020

  1. Fix documentation tests

    rcvalle committed Sep 30, 2020
    Configuration menu
    Copy the full SHA
    dc5745d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3b5aa44 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    78a4656 View commit details
    Browse the repository at this point in the history

Commits on Oct 10, 2020

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

Commits on Oct 12, 2020

  1. clarify rules for ZST Boxes

    RalfJung committed Oct 12, 2020
    Configuration menu
    Copy the full SHA
    c555aab View commit details
    Browse the repository at this point in the history

Commits on Oct 13, 2020

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

Commits on Oct 15, 2020

  1. Configuration menu
    Copy the full SHA
    28df283 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d977464 View commit details
    Browse the repository at this point in the history

Commits on Oct 30, 2020

  1. Remove deadwood from sentence

    rcvalle committed Oct 30, 2020
    Configuration menu
    Copy the full SHA
    9999616 View commit details
    Browse the repository at this point in the history

Commits on Nov 16, 2020

  1. x.py: allow a custom string appended to the version

    This adds `rust.description` to the config as a descriptive string to be
    appended to `rustc --version` output, which is also used in places like
    debuginfo `DW_AT_producer`. This may be useful for supplementary build
    information, like distro-specific package versions.
    
    For example, in Fedora 33, `gcc --version` outputs:
    
        gcc (GCC) 10.2.1 20201016 (Red Hat 10.2.1-6)
    
    With this change, we can add similar vendor info to `rustc --version`.
    cuviper committed Nov 16, 2020
    Configuration menu
    Copy the full SHA
    5f08568 View commit details
    Browse the repository at this point in the history

Commits on Nov 20, 2020

  1. reference NonNull::dangling

    RalfJung committed Nov 20, 2020
    Configuration menu
    Copy the full SHA
    a7677f7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a64d0d4 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    993bb07 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    5ed2d42 View commit details
    Browse the repository at this point in the history
  5. std: Update the backtrace crate submodule

    This commit updates the `library/backtrace` submodule which primarily
    pulls in support for split-debuginfo on macOS, avoiding the need for
    `dsymutil` to get run to get line numbers and filenames in backtraces.
    alexcrichton committed Nov 20, 2020
    Configuration menu
    Copy the full SHA
    f99410b View commit details
    Browse the repository at this point in the history
  6. update miri

    RalfJung committed Nov 20, 2020
    Configuration menu
    Copy the full SHA
    0f61664 View commit details
    Browse the repository at this point in the history

Commits on Nov 21, 2020

  1. Rollup merge of rust-lang#76858 - rcvalle:rust-lang-exploit-mitigatio…

    …ns, r=steveklabnik
    
    Add exploit mitigations chapter to the rustc book
    
    This section documents the exploit mitigations applicable to the Rust compiler when building programs for the Linux operating system on the AMD64 architecture and equivalent. This was done for a project I'm currently working on, and I hope it'll also be helpful to others.
    Dylan-DPC authored Nov 21, 2020
    Configuration menu
    Copy the full SHA
    ce2b2fb View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#77805 - JohnTitor:non-standard-char-sugg, r…

    …=Dylan-DPC
    
    lint: Do not provide suggestions for non standard characters
    
    Fixes rust-lang#77273
    
    Only provide suggestions if the case-fixed result is different than the original.
    Dylan-DPC authored Nov 21, 2020
    Configuration menu
    Copy the full SHA
    575d3a1 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#77844 - RalfJung:zst-box, r=nikomatsakis

    clarify rules for ZST Boxes
    
    LLVM's rules around `getelementptr inbounds` with offset 0 are a bit annoying, and as a consequence we have no choice but say that a `Box<()>` pointing to previously allocated memory that has since been freed is UB. Clarify the docs to reflect this.
    
    This is based on conversations on the LLVM mailing list.
    * Here's my initial mail: https://lists.llvm.org/pipermail/llvm-dev/2019-February/130452.html
    * The first email of the March part of that thread: https://lists.llvm.org/pipermail/llvm-dev/2019-March/130831.html
    * First email of the April part: https://lists.llvm.org/pipermail/llvm-dev/2019-April/131693.html
    
    The conclusion for me at least was that `getelementptr inbounds` with offset 0 is *not* the identity function, but can sometimes return `poison` even when the input is a regular pointer -- specifically, it returns `poison` when this pointer points into something that LLVM "knows has been deallocated", i.e., a former LLVM-managed allocation. It is however the identity function on pointers obtained by casting integers.
    
    Note that there [are formal proposals](https://people.mpi-sws.org/~jung/twinsem/twinsem.pdf) for LLVM semantics where `getelementptr inbounds` with offset 0 isn't quite the identity function but never returns `poison` (it affects the provenance of the pointer but in a way that doesn't matter if this pointer is never used for memory accesses), and indeed this is likely necessary to consistently describe LLVM semantics. But with the informal LLVM LangRef that we have right now, and with LLVM devs insisting otherwise, it seems unwise to rely on this.
    Dylan-DPC authored Nov 21, 2020
    Configuration menu
    Copy the full SHA
    9549ff5 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#79003 - petrochenkov:innertest, r=estebank

    rustc_expand: Mark inner `#![test]` attributes as soft-unstable
    
    Custom inner attributes are feature gated (rust-lang#54726) except for attributes having name `test` literally, which are not gated for historical reasons.
    
    `#![test]` is an inner proc macro attribute, so it has all the issues described in rust-lang#54726 too.
    This PR gates it with the `soft_unstable` lint.
    Dylan-DPC authored Nov 21, 2020
    Configuration menu
    Copy the full SHA
    2899583 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#79115 - cuviper:rust-description, r=Mark-Si…

    …mulacrum
    
    x.py: allow a custom string appended to the version
    
    This adds `rust.description` to the config as a descriptive string to be
    appended to `rustc --version` output, which is also used in places like
    debuginfo `DW_AT_producer`. This may be useful for supplementary build
    information, like distro-specific package versions.
    
    For example, in Fedora 33, `gcc --version` outputs:
    
        gcc (GCC) 10.2.1 20201016 (Red Hat 10.2.1-6)
    
    With this change, we can add similar vendor info to `rustc --version`.
    Dylan-DPC authored Nov 21, 2020
    Configuration menu
    Copy the full SHA
    642de64 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#79222 - yoshuawuyts:slice-fill-with, r=m-ou-se

    Add `core::slice::fill_with`
    
    Tracking issue rust-lang#79221.
    
    As suggested by `@m-ou-se` in rust-lang#70758 (comment) this implements `slice::fill_with` as a counterpart to `slice::fill`. This mirrors `Vec::resize` and `Vec::resize_with`. Thanks!
    
    r? `@m-ou-se`
    Dylan-DPC authored Nov 21, 2020
    Configuration menu
    Copy the full SHA
    7af4939 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#79237 - alexcrichton:update-backtrace, r=Ma…

    …rk-Simulacrum
    
    std: Update the bactrace crate submodule
    
    This commit updates the `library/backtrace` submodule which primarily
    pulls in support for split-debuginfo on macOS, avoiding the need for
    `dsymutil` to get run to get line numbers and filenames in backtraces.
    Dylan-DPC authored Nov 21, 2020
    Configuration menu
    Copy the full SHA
    29a2aaf View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#79238 - eddyb:rustc-log-stderr, r=jyn514

    Direct RUSTC_LOG (tracing/log) output to stderr instead of stdout.
    
    Looks like this got missed in the initial implementation, AFAIK the old behavior was to output on stderr.
    (Hit this while trying to debug `rustc` running inside a build script which was only letting stderr through)
    
    r? `@oli-obk` cc `@davidbarsky` `@hawkw`
    Dylan-DPC authored Nov 21, 2020
    Configuration menu
    Copy the full SHA
    64abd99 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#79250 - RalfJung:miri, r=RalfJung

    update miri
    
    Fixes rust-lang#79226
    Cc `@rust-lang/miri` r? `@ghost`
    Dylan-DPC authored Nov 21, 2020
    Configuration menu
    Copy the full SHA
    4123fb5 View commit details
    Browse the repository at this point in the history