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 7 pull requests #99422

Merged
merged 15 commits into from
Jul 18, 2022
Merged

Rollup of 7 pull requests #99422

merged 15 commits into from
Jul 18, 2022

Commits on Jul 3, 2022

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

Commits on Jul 7, 2022

  1. Stop emitting CET prologues for naked functions

    We can apply nocf_check as a hack for now.
    workingjubilee committed Jul 7, 2022
    Configuration menu
    Copy the full SHA
    92174f9 View commit details
    Browse the repository at this point in the history
  2. Also stop emitting BTI prologues for naked functions

    Same idea but for AArch64.
    workingjubilee committed Jul 7, 2022
    Configuration menu
    Copy the full SHA
    530b5da View commit details
    Browse the repository at this point in the history

Commits on Jul 14, 2022

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

Commits on Jul 16, 2022

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

Commits on Jul 17, 2022

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

Commits on Jul 18, 2022

  1. Add regression test for rust-lang#95230

    Signed-off-by: Yuki Okushi <[email protected]>
    JohnTitor committed Jul 18, 2022
    Configuration menu
    Copy the full SHA
    5172a2f View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#98839 - 5225225:assert_transmute_copy_size,…

    … r=thomcc
    
    Add assertion that `transmute_copy`'s U is not larger than T
    
    This is called out as a safety requirement in the docs, but because knowing this can be done at compile time and constant folded (just like the `align_of` branch is removed), we can just panic here.
    
    I've looked at the asm (using `cargo-asm`) of a function that both is correct and incorrect, and the panic is completely removed, or is unconditional, without needing build-std.
    
    I don't expect this to cause much breakage in the wild. I scanned through https://miri.saethlin.dev/ub for issues that would look like this (error: Undefined Behavior: memory access failed: alloc1768 has size 1, so pointer to 8 bytes starting at offset 0 is out-of-bounds), but couldn't find any.
    
    That doesn't rule out it happening in crates tested that fail earlier for some other reason, though, but it indicates that doing this is rare, if it happens at all. A crater run for this would need to be build and test, since this is a runtime thing.
    
    Also added a few more transmute_copy tests.
    Dylan-DPC authored Jul 18, 2022
    Configuration menu
    Copy the full SHA
    5ccdf1f View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#98998 - workingjubilee:naked-means-no-cloth…

    …es-enforcement-technology, r=Amanieu
    
    Remove branch target prologues from `#[naked] fn`
    
    This patch hacks around rust-lang#98768 for now via injecting appropriate attributes into the LLVMIR we emit for naked functions. I intend to pursue this upstream so that these attributes can be removed in general, but it's slow going wading through C++ for me.
    Dylan-DPC authored Jul 18, 2022
    Configuration menu
    Copy the full SHA
    a027b01 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#99198 - RalfJung:alloc-null-ptr, r=JohnTitor

    add missing null ptr check in alloc example
    
    `alloc` can return null on OOM, if I understood correctly. So we should never just deref a pointer we get from `alloc`.
    Dylan-DPC authored Jul 18, 2022
    Configuration menu
    Copy the full SHA
    e423a6f View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#99344 - notriddle:notriddle/multiple-macro-…

    …rules-w-same-name, r=GuillaumeGomez
    
    rustdoc: avoid inlining items with duplicate `(type, name)`
    
    Fixes rust-lang#99221
    Dylan-DPC authored Jul 18, 2022
    Configuration menu
    Copy the full SHA
    affdcd6 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#99351 - compiler-errors:arg-mismatch-blame,…

    … r=davidtwco
    
    Use `typeck_results` to get accurate qpath res for arg mismatch error
    
    Improves error message from "function"  to actually what we're calling (e.g. enum variant constrcutor) in a few cases 😸
    Dylan-DPC authored Jul 18, 2022
    Configuration menu
    Copy the full SHA
    60c1068 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#99378 - RalfJung:box-early-return, r=oli-obk

    interpret/visitor: add missing early return
    
    I forgot to add this when adding the special `Box` handling branch.
    
    r? ```@oli-obk```
    Dylan-DPC authored Jul 18, 2022
    Configuration menu
    Copy the full SHA
    a47a090 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#99394 - JohnTitor:issue-95230, r=compiler-e…

    …rrors
    
    Add regression test for rust-lang#95230
    
    Closes rust-lang#95230
    r? ```@compiler-errors```
    
    Signed-off-by: Yuki Okushi <[email protected]>
    Dylan-DPC authored Jul 18, 2022
    Configuration menu
    Copy the full SHA
    068a559 View commit details
    Browse the repository at this point in the history