1. 06 9月, 2021 1 次提交
    • M
      Change scope of temporaries in match guards · ad7f109b
      Matthew Jasper 提交于
      Each pattern in a match arm has its own copy of the match guard in MIR,
      with its own temporary, so it has to be dropped before the the guards
      are joined to the single copy of the arm.
      ad7f109b
  2. 04 9月, 2021 10 次提交
    • B
      Auto merge of #88550 - dpaoliello:dpaoliello/allocdebuginfo, r=estebank · 226e181b
      bors 提交于
      Include debug info for the allocator shim
      
      Issue Details:
      In some cases it is necessary to generate an "allocator shim" to forward various Rust allocation functions (e.g., `__rust_alloc`) to an underlying function (e.g., `malloc`). However, since this allocator shim is a manually created LLVM module it is not processed via the normal module processing code and so no debug info is generated for it (if debugging info is enabled).
      
      Fix Details:
      * Modify the `debuginfo` code to allow creating debug info for a module without a `CodegenCx` (since it is difficult, and expensive, to create one just to emit some debug info).
      * After creating the allocator shim add in basic debug info.
      226e181b
    • B
      Auto merge of #88547 - notriddle:notriddle/is-expr-delims-necessary, r=davidtwco · 72a51c39
      bors 提交于
      fix(rustc_lint): better detect when parens are necessary
      
      Fixes #88519
      72a51c39
    • B
      Auto merge of #88538 - bjorn3:no_session_in_crate_loader, r=petrochenkov · d295e36c
      bors 提交于
      CrateLocator refactorings
      
      This makes the `CrateLocator` a lot cleaner IMHO and much more self-contained. The last commit removes `extra_filename` from the crate metadata. This is an **insta-stable** change as it allows a crate like `libfoo-abc.rlib` to be used as dependency and then be renamed as `libfoo-bcd.rlib` while still being found as indirect dependency. This may reduce performance when there are a lot of versions of the same crate available as the extra filename won't be used to do an early rejection of crates before trying to load metadata, but it makes the logic to find the right filename a lot cleaner.
      d295e36c
    • B
      Auto merge of #88633 - Mark-Simulacrum:bump-version, r=Mark-Simulacrum · 065a3720
      bors 提交于
      Bump version to 1.57
      
      r? `@Mark-Simulacrum`
      065a3720
    • M
      Bump version to 1.57 · 0d55188e
      Mark Rousskov 提交于
      0d55188e
    • B
      Auto merge of #88598 - estebank:type-ascription-can-die-in-a-fire, r=wesleywiser · b4e8596e
      bors 提交于
      Detect bare blocks with type ascription that were meant to be a `struct` literal
      
      Address part of #34255.
      
      Potential improvement: silence the other knock down errors in `issue-34255-1.rs`.
      b4e8596e
    • B
      Auto merge of #88482 - athei:add-import-test, r=the8472 · 03c775c9
      bors 提交于
      Add regression test for a spurious import
      
      This PR adds a test that verifies that the bug described in the linked issue does not creep back into the code. In essence it checks that compiling some specific code (that uses 128 bit multiplication) with a specific set of compiler options does not lead to a spurious import of a panic function.
      
      I noticed that other wasm tests use `# only-wasm32-bare` in their `Makefile`. This will skip the test for me. I did not find out how to run this test locally. Maybe someone can help.
      
      closes #78744
      r? `@jyn514`
      03c775c9
    • B
      Auto merge of #88572 - matthewjasper:if-let-scoping-fix, r=oli-obk · b7404c89
      bors 提交于
      Fix drop handling for `if let` expressions
      
      MIR lowering for `if let` expressions is now more complicated now that
      `if let` exists in HIR. This PR adds a scope for the variables bound in
      an `if let` expression and then uses an approach similar to how we
      handle loops to ensure that we reliably drop the correct variables.
      
      Closes #88307
      cc `@flip1995` `@richkadel` `@c410-f3r`
      b7404c89
    • M
      Update coverage tests · 4e2fd4fc
      Matthew Jasper 提交于
      4e2fd4fc
    • B
      Auto merge of #88454 - devnexen:sunos_asan, r=wesleywiser · 4878034c
      bors 提交于
      sunos systems add sanitizer supported.
      4878034c
  3. 03 9月, 2021 29 次提交