1. 10 12月, 2020 10 次提交
  2. 09 12月, 2020 17 次提交
  3. 08 12月, 2020 13 次提交
    • L
      Simplify visit_{foreign,trait}_item · 7654b121
      LingMan 提交于
      Using an `if` seems like a better semantic fit and saves a few lines.
      7654b121
    • B
      Auto merge of #79817 - LingMan:if_map, r=lcnr · 5e6e1e33
      bors 提交于
      Replace simple `if let` constructs with Option::map
      
      Replaces a few constructs of the form
      
      ```
      if let Some(x) = var {
          Some(...)
      } else {
          None
      }
      ```
      
      with calls to `Option::map`.
      
      `@rustbot` modify labels +C-cleanup +T-compiler
      5e6e1e33
    • L
      Strip prefix instead of replacing it with empty string · 06aa7a76
      LingMan 提交于
      06aa7a76
    • B
      Auto merge of #79752 - cjgillot:dead-alien, r=lcnr · 5019791e
      bors 提交于
      Visit ForeignItems when marking dead code
      
      Follow-up to #79318
      
      r? `@lcnr`
      5019791e
    • B
      Auto merge of #79806 - LeSeulArtichaut:fixup-filter-is-none, r=jyn514 · 4fd4a98d
      bors 提交于
      Fixup: `filter().is_none()` -> `!any()`
      4fd4a98d
    • C
      Visit ForeignItems when marking dead code. · 37853f92
      Camille GILLOT 提交于
      37853f92
    • B
      Auto merge of #79712 - JohnTitor:test-issue-66286, r=estebank · 5e48ea9a
      bors 提交于
      Add a regression test for issue-66286
      
      Fixes #66422
      5e48ea9a
    • B
      Auto merge of #79820 - ehuss:update-cargo, r=ehuss · 79132506
      bors 提交于
      Update cargo
      
      10 commits in 63d0fe43449adcb316d34d98a982b597faca4178..d274fcf862b89264fa2c6b917b15230705257317
      2020-12-02 01:44:30 +0000 to 2020-12-07 23:08:44 +0000
      - Clarify cargo manifest edition field docs (rust-lang/cargo#8953)
      - Run rustdoc doctests relative to the workspace (rust-lang/cargo#8954)
      - Workaround fs issue in `cargo publish`. (rust-lang/cargo#8950)
      - Fix panic with -Zbuild-std and no roots. (rust-lang/cargo#8942)
      - Slightly optimize `cargo vendor` (rust-lang/cargo#8937)
      - Fixes rust-lang/cargo#8783 , cargo new fails without a author name or email (rust-lang/cargo#8912)
      - Fix test escaping __CARGO_TEST_ROOT (rust-lang/cargo#8929)
      - Add period to allowed feature name characters. (rust-lang/cargo#8932)
      - faq: small fixes (rust-lang/cargo#8931)
      - Fix semver documentation tests. (rust-lang/cargo#8930)
      79132506
    • E
      Update cargo · 9eacdb5a
      Eric Huss 提交于
      9eacdb5a
    • R
      Fixes to Rust coverage · 95c268f6
      Rich Kadel 提交于
      Fixes: #79725
      
      Some macros can create a situation where `fn_sig_span` and `body_span`
      map to different files.
      
      New documentation on coverage tests incorrectly assumed multiple test
      binaries could just be listed at the end of the `llvm-cov` command,
      but it turns out each binary needs a `--object` prefix.
      
      This PR fixes the bug and updates the documentation to correct that
      issue. It also fixes a few other minor issues in internal implementation
      comments, and adds documentation on getting coverage results for doc
      tests.
      95c268f6
    • L
      Replace simple `if let` constructs with Option::map · af9402af
      LingMan 提交于
      Replaces a few constructs of the form
      
      if let Some(x) = var {
          Some(...)
      } else {
          None
      }
      
      with calls to Option::map.
      af9402af
    • B
      Auto merge of #79780 - camelid:use-summary_opts, r=GuillaumeGomez · d4aea0b7
      bors 提交于
      Use `summary_opts()` in another spot
      
      I added `summary_opts()` before I cut the branch for #77686 (2 months
      ago!), so this "slipped through the cracks".
      d4aea0b7
    • B
      Auto merge of #79653 - tmiasko:naked-functions, r=Amanieu · bda05cc4
      bors 提交于
      Validate naked functions definitions
      
      Validate that naked functions are defined in terms of a single inline assembly
      block that uses only `const` and `sym` operands and has `noreturn` option.
      
      Implemented as future incompatibility lint with intention to migrate it into
      hard error. When it becomes a hard error it will ensure that naked functions are
      either unsafe or contain an unsafe block around the inline assembly. It will
      guarantee that naked functions do not reference functions parameters (obsoleting
      part of existing checks from #79411). It will limit the definitions of naked
      functions to what can be reliably supported. It will also reject naked functions
      implemented using legacy LLVM style assembly since it cannot satisfy those
      conditions.
      
      https://github.com/rust-lang/rfcs/pull/2774
      https://github.com/rust-lang/rfcs/pull/2972
      bda05cc4