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 10 pull requests #100793

Merged
merged 23 commits into from
Aug 20, 2022
Merged

Rollup of 10 pull requests #100793

merged 23 commits into from
Aug 20, 2022

Commits on Aug 14, 2022

  1. Configuration menu
    Copy the full SHA
    84ba228 View commit details
    Browse the repository at this point in the history
  2. 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
    e37565d View commit details
    Browse the repository at this point in the history
  2. 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
    e8499cf 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
    09ea9f0 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    1b54ad0 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f50f878 View commit details
    Browse the repository at this point in the history

Commits on Aug 19, 2022

  1. Fix comment typo

    thomcc committed Aug 19, 2022
    Configuration menu
    Copy the full SHA
    d4cba61 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d35749b View commit details
    Browse the repository at this point in the history

Commits on Aug 20, 2022

  1. Configuration menu
    Copy the full SHA
    3de74f7 View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#100186 - compiler-errors:or-as_mut, r=fee1-…

    …dead
    
    Mention `as_mut` alongside `as_ref` in borrowck error message
    
    Kinda fixes rust-lang#99426 but I guess that really might be better staying open to see if we could make it suggest `as_mut` in a structured way. Not sure how to change borrowck to know that info tho.
    matthiaskrgr committed Aug 20, 2022
    Configuration menu
    Copy the full SHA
    3cca140 View commit details
    Browse the repository at this point in the history
  3. 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``
    matthiaskrgr committed Aug 20, 2022
    Configuration menu
    Copy the full SHA
    368f08a View commit details
    Browse the repository at this point in the history
  4. 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?
    matthiaskrgr committed Aug 20, 2022
    Configuration menu
    Copy the full SHA
    c4b83eb View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#100617 - chenyukang:fix-100605, r=compiler-…

    …errors
    
    Suggest the right help message for as_ref
    
    Fixes rust-lang#100605
    matthiaskrgr committed Aug 20, 2022
    Configuration menu
    Copy the full SHA
    61a529d View commit details
    Browse the repository at this point in the history
  6. 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.
    matthiaskrgr committed Aug 20, 2022
    Configuration menu
    Copy the full SHA
    eacbe54 View commit details
    Browse the repository at this point in the history
  7. 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``
    matthiaskrgr committed Aug 20, 2022
    Configuration menu
    Copy the full SHA
    67f77f5 View commit details
    Browse the repository at this point in the history
  8. 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?
    matthiaskrgr committed Aug 20, 2022
    Configuration menu
    Copy the full SHA
    84f81e7 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#100729 - thomcc:less-initialized, r=ChrisDe…

    …nton
    
    Avoid zeroing a 1kb stack buffer on every call to `std::sys::windows::fill_utf16_buf`
    
    I've also tried to be slightly more careful about integer overflows, although in practice this is likely still not handled ideally.
    
    r? `@ChrisDenton`
    matthiaskrgr committed Aug 20, 2022
    Configuration menu
    Copy the full SHA
    1e47e8a View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#100750 - akabinds:akabinds/improved-invalid…

    …-function-qual-error, r=davidtwco
    
    improved diagnostic for function defined with `def`, `fun`, `func`, or `function` instead of `fn`
    
    Closes rust-lang#99751
    matthiaskrgr committed Aug 20, 2022
    Configuration menu
    Copy the full SHA
    af89769 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#100763 - aDotInTheVoid:triagebot-rdj, r=jyn514

    triagebot: Autolabel `A-rustdoc-json`
    matthiaskrgr committed Aug 20, 2022
    Configuration menu
    Copy the full SHA
    60edec9 View commit details
    Browse the repository at this point in the history