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 8 pull requests #99892

Merged
merged 19 commits into from
Jul 29, 2022
Merged

Rollup of 8 pull requests #99892

merged 19 commits into from
Jul 29, 2022

Commits on Jul 26, 2022

  1. Configuration menu
    Copy the full SHA
    d411a08 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    79e0543 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d48a869 View commit details
    Browse the repository at this point in the history

Commits on Jul 27, 2022

  1. Update mentions to rustc_metadata::rmeta::Lazy

    Signed-off-by: Yuki Okushi <jtitor@2k36.org>
    JohnTitor committed Jul 27, 2022
    Configuration menu
    Copy the full SHA
    645a883 View commit details
    Browse the repository at this point in the history
  2. doc/rustc: describe the uefi target platforms

    Add a `platform-support` entry to the rustc-docs for the different
    `*-unknown-uefi` targets. This describes in detail how this platform
    works, a few basic examples, and how to compile for the platform.
    
    Red Hat is sponsoring my work on this platform, so I am putting myself
    down as target maintainer. Co-maintainers are more than welcome to join
    me in the effort. Communication is going on off-list to coordinate the
    different efforts.
    
    Note that the ultimate goal is to move the UEFI targets to Tier-2 so
    bootloaders can be more easily supported in commercial products. This
    documentation is the first step towards that goal, but should be a
    viable documentation even for the current Tier-3 status of the targets.
    
    I also want to point out that there is an ongoing GSoC-effort to port
    the rust standard library to UEFI (by Ayush Singh). While this work is
    not necessarily required to get to Tier-2, we definitely should
    coordinate the efforts and update the documentation as soon as any such
    ports are merged.
    
    Note that the targets are already used by multiple commercial and non
    commercial production systems, including, but not limited to:
    
     * Tianocore-EDK2 (Official UEFI SDK by Intel) comes with rust support
       in its staging repository (not part of any release, yet).
       (https://github.com/tianocore/edk2-staging/tree)
     * Intel's research program "Project Mu" uses the rust UEFI targets to
       show possible future replacements for Tianocore-EDK2.
     * The Rust OS "Redox" uses the UEFI targets for its bootloader.
       (https://www.redox-os.org/)
     * The hugely popular in-depth documentation of OS development in Rust
       by Philipp Oppermann uses the UEFI targets.
       (https://os.phil-opp.com/)
    
    Signed-off-by: David Rheinsberg <david.rheinsberg@gmail.com>
    dvdhrm committed Jul 27, 2022
    Configuration menu
    Copy the full SHA
    e849f9b View commit details
    Browse the repository at this point in the history
  3. add suggestion when there is a impl of external trait on pointer

    Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
    vincenzopalazzo committed Jul 27, 2022
    Configuration menu
    Copy the full SHA
    1e584d2 View commit details
    Browse the repository at this point in the history

Commits on Jul 28, 2022

  1. Update custom.md

    xtexChooser committed Jul 28, 2022
    Configuration menu
    Copy the full SHA
    957fe0b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c2c70e2 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    961dce4 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    660dc6f View commit details
    Browse the repository at this point in the history
  5. Clone the src/llvm-project submodule if profiling is enabled

    To compile rustc with profiling information, `compiler-rt` from
    LLVM is required. Building it requires the `src/llvm-project` submodule
    to be initialized and updated.
    Nilstrieb committed Jul 28, 2022
    Configuration menu
    Copy the full SHA
    e1e736b View commit details
    Browse the repository at this point in the history

Commits on Jul 29, 2022

  1. Rollup merge of rust-lang#99686 - vincenzopalazzo:macros/impl_on_ptr,…

    … r=compiler-errors
    
    add suggestion when there is a impl of external trait on pointer with wrong coherence rules
    
    Closes rust-lang#99572
    
    This will try to improve the node in the error message by suggesting a general solution because the solution, in this case, is application depended.
    
    I'm not super happy regarding the code quality, but I'm happy to have feedback on it.
    
    `@rustbot` r? `@compiler-errors`
    JohnTitor committed Jul 29, 2022
    Configuration menu
    Copy the full SHA
    a573adf View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#99760 - dvdhrm:rw/uefiplat, r=ehuss

    doc/rustc: describe the uefi target platforms
    
    Add a `platform-support` entry to the rustc-docs for the different `*-unknown-uefi` targets. This describes in detail how this platform works, a few basic examples, and how to compile for the platform.
    
    Red Hat is sponsoring my work on this platform, so I am putting myself down as target maintainer. Co-maintainers are more than welcome to join me in the effort. Communication is going on off-list to coordinate the different efforts.
    
    Note that the ultimate goal is to move the UEFI targets to Tier-2 so bootloaders can be more easily supported in commercial products. This documentation is the first step towards that goal, but should be a viable documentation even for the current Tier-3 status of the targets.
    
    I also want to point out that there is an ongoing GSoC-effort to port the rust standard library to UEFI (by Ayush Singh). While this work is not necessarily required to get to Tier-2, we definitely should coordinate the efforts and update the documentation as soon as any such ports are merged.
    
    Note that the targets are already used by multiple commercial and non commercial production systems, including, but not limited to:
    
     * Tianocore-EDK2 (Official UEFI SDK by Intel) comes with rust support
       in its staging repository (not part of any release, yet).
       (https://github.com/tianocore/edk2-staging/tree)
     * Intel's research program "Project Mu" uses the rust UEFI targets to
       show possible future replacements for Tianocore-EDK2.
     * The Rust OS "Redox" uses the UEFI targets for its bootloader.
       (https://www.redox-os.org/)
     * The hugely popular in-depth documentation of OS development in Rust
       by Philipp Oppermann uses the UEFI targets.
       (https://os.phil-opp.com/)
    JohnTitor committed Jul 29, 2022
    Configuration menu
    Copy the full SHA
    b7beec9 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#99766 - fmease:htmldocck-subst-channel-when…

    …-blessing, r=Mark-Simulacrum
    
    Htmldocck: Substitute the doc channel when blessing
    
    Since rust-lang#84942, the snippet `{{channel}}` gets substituted with the concrete “doc channel” (e.g. `https://doc.rust-lang.org/nightly`) when snapshot files are checked against the actual rustdoc output.
    
    However, when you `--bless` rustdoc tests, htmldocck just dumps the concrete channel into the snapshot file and
    you have to manually do a find-and-replace after blessing to uphold what rust-lang#84942 set out to fix.
    
    I admit it's a bit fragile to blindly replace URLs like this but I guess it's not too bad in practice.
    Feel free to close this PR if you don't think that this is a good idea.
    
    `@rustbot` label T-rustdoc A-testsuite
    JohnTitor committed Jul 29, 2022
    Configuration menu
    Copy the full SHA
    55296c4 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#99781 - workingjubilee:demo-string-from-cst…

    …r, r=thomcc
    
    Use String::from_utf8_lossy in CStr demo
    
    Fixes rust-lang#99755.
    JohnTitor committed Jul 29, 2022
    Configuration menu
    Copy the full SHA
    9b3f49f View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#99803 - JohnTitor:update-lazy-docs, r=compi…

    …ler-errors
    
    Update mentions to `rustc_metadata::rmeta::Lazy`
    
    While working on rust-lang/rustc-dev-guide#1411, I noticed there are still some mentions of `Lazy`. This updates them to `LazyValue`, `LazyArray`, or `LazyTable`.
    
    r? ````@compiler-errors````
    
    Signed-off-by: Yuki Okushi <jtitor@2k36.org>
    JohnTitor committed Jul 29, 2022
    Configuration menu
    Copy the full SHA
    fd3610e View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#99845 - xtexChooser:patch-1, r=GuillaumeGomez

    Remove `$` prefix for bash scripts in doc
    JohnTitor committed Jul 29, 2022
    Configuration menu
    Copy the full SHA
    da3f951 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#99850 - GuillaumeGomez:clean-more-items, r=…

    …notriddle
    
    rustdoc: Remove more Clean trait implementations
    
    Follow-up of rust-lang#99638.
    
    r? `@notriddle`
    JohnTitor committed Jul 29, 2022
    Configuration menu
    Copy the full SHA
    51dda50 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#99872 - Nilstrieb:bootstrap-llvm, r=jyn514

    Clone the `src/llvm-project` submodule if profiling is enabled
    
    To compile rustc with profiling information, `compiler-rt` from LLVM is required. Building it requires the `src/llvm-project` submodule to be initialized and updated.
    
    Fixes rust-lang#99869
    JohnTitor committed Jul 29, 2022
    Configuration menu
    Copy the full SHA
    a8f77ad View commit details
    Browse the repository at this point in the history