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 #100785

Closed
wants to merge 23 commits into from
Closed

Commits on Aug 7, 2022

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

Commits on Aug 14, 2022

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

Commits on Aug 16, 2022

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

Commits on Aug 17, 2022

  1. Mitigate Stale Data Read for xAPIC vulnerability

    In order to mitigate the Stale Data Read for xAPIC vulnerability completely, reading userspace from an SGX enclave must be aligned and in 8-bytes chunks.
    
    References:
    
     - https://www.intel.com/content/www/us/en/security-center/advisory/intel-sa-00657.html
     - https://www.intel.com/content/www/us/en/developer/articles/technical/software-security-guidance/advisory-guidance/stale-data-read-from-xapic.html
    raoulstrackx committed Aug 17, 2022
    Configuration menu
    Copy the full SHA
    2a23d08 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    780bb08 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0d4f665 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e8499cf View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    41effad View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    11d9f34 View commit details
    Browse the repository at this point in the history

Commits on Aug 18, 2022

  1. Configuration menu
    Copy the full SHA
    af4f66e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    29fcfa5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    943f03f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    09ea9f0 View commit details
    Browse the repository at this point in the history

Commits on Aug 19, 2022

  1. Add rustc --print rustc-path

    CAD97 committed Aug 19, 2022
    Configuration menu
    Copy the full SHA
    6cdf192 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e34da16 View commit details
    Browse the repository at this point in the history

Commits on Aug 20, 2022

  1. Rollup merge of rust-lang#100188 - chenyukang:fix-issue-100165, r=est…

    …ebank
    
    Parser will not suggest invalid expression when use public
    
    Fixes rust-lang#100165
    ChrisDenton authored Aug 20, 2022
    Configuration menu
    Copy the full SHA
    8497248 View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#100383 - fortanix:raoul/aepic_leak_mitigati…

    …on, r=cuviper
    
    Mitigate stale data reads on SGX platform
    
    Intel disclosed the Stale Data Read vulnerability yesterday. In order to mitigate this issue completely, reading userspace from an SGX enclave must be aligned and in 8-bytes chunks. This PR implements this mitigation
    
    References:
     - https://www.intel.com/content/www/us/en/security-center/advisory/intel-sa-00657.html
     - https://www.intel.com/content/www/us/en/developer/articles/technical/software-security-guidance/advisory-guidance/stale-data-read-from-xapic.html
    
    cc: `@jethrogb`
    ChrisDenton authored Aug 20, 2022
    Configuration menu
    Copy the full SHA
    f577300 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#100507 - cameron1024:suggest-lazy, r=compil…

    …er-errors
    
    suggest `once_cell::Lazy` for non-const statics
    
    Addresses rust-lang#100410
    
    Some questions:
     - removing the `if` seems to include too many cases (e.g. calls to non-const functions inside a `const fn`), but this code excludes the following case:
    ```rust
    const FOO: Foo = non_const_fn();
    ```
    Should we suggest `once_cell` in this case as well?
     - The original issue mentions suggesting `AtomicI32` instead of `Mutex<i32>`, should this PR address that as well?
    ChrisDenton authored Aug 20, 2022
    Configuration menu
    Copy the full SHA
    e70de69 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#100667 - Xiretza:diag-structs-parser-ivd, r…

    …=davidtwco
    
    Migrate "invalid variable declaration" errors to SessionDiagnostic
    
    After seeing the great blog post on Inside Rust, I decided to try my hand at this. Just one diagnostic for now to get used to the workflow and to check if this is the way to do it or if there are any problems.
    ChrisDenton authored Aug 20, 2022
    Configuration menu
    Copy the full SHA
    dedae00 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#100681 - CAD97:rustc-print-rustc, r=petroch…

    …enkov
    
    Add `rustc --print rustc-path`
    
    Related:
    
    - rust-lang/cargo#10986
    - rust-lang/rustup#3035
    
    Goal:
    
    Like the original rust-lang/rustup#2958, the goal is to enable `cargo` to call `rustc` directly, rather than through the `rustup` shim.
    
    Solution:
    
    `cargo` asks `rustc` to tell it what executable to run. Sometime early in compilation, `cargo` will run `$(RUSTC_WRAPPER) $(RUSTC ?: rustc) --print rustc-path`[^1]. Further calls to `rustc` to do execution will use the resolved printed executable path rather than continuing to call the "input `rustc` path," which will allow it to bypass the `rustup` shim.
    
    The cargo side is rust-lang/cargo#10998.
    
    [^1]: This can potentially be combined with other `--print`s, as well!
    
    This is a tiny patch, so I've implemented it as insta-stable; this will need signoff probably from both the compiler and cargo teams. I'm working on the cargo side of the patch currently, but wanted to get this up ASAP.
    
    cc `@davidlattimore` `@bjorn3` `@rust-lang/cargo` `@rust-lang/compiler` (sorry for the big ping list 😅)
    ChrisDenton authored Aug 20, 2022
    Configuration menu
    Copy the full SHA
    745bfe3 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#100709 - JhonnyBillM:port-expected-used-sym…

    …bol-diagnostic, r=compiler-errors
    
    Migrate typeck's `used` expected symbol diagnostic to `SessionDiagnostic`
    
    r? `@davidtwco`
    ChrisDenton authored Aug 20, 2022
    Configuration menu
    Copy the full SHA
    5a90fc7 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#100723 - 5225225:the-easy-ones, r=compiler-…

    …errors
    
    Add the diagnostic translation lints to crates that don't emit them
    
    Some of these have a note saying that they should build on a stable compiler, does that mean they shouldn't get these lints? Or can we cfg them out on those?
    ChrisDenton authored Aug 20, 2022
    Configuration menu
    Copy the full SHA
    c9a124b View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#100724 - JeanCASPAR:migrate-ast_lowering-to…

    …-session-diagnostic, r=davidtwco
    
    Migrate ast lowering to session diagnostic
    
    I migrated the whole rustc_ast_lowering crate to session diagnostic *except* the for the use of `span_fatal` at /compiler/rustc_ast_lowering/src/expr.rs#L1268 because `#[fatal(...)]` is not yet supported (see rust-lang#100694).
    ChrisDenton authored Aug 20, 2022
    Configuration menu
    Copy the full SHA
    b7e9b99 View commit details
    Browse the repository at this point in the history