1. 06 12月, 2019 12 次提交
  2. 05 12月, 2019 13 次提交
  3. 04 12月, 2019 15 次提交
    • O
      Update src/librustc_mir/interpret/terminator.rs · af8f1416
      Oliver Scherer 提交于
      Co-Authored-By: NRalf Jung <post@ralfj.de>
      af8f1416
    • M
      more private · b998e830
      Mark Mansi 提交于
      b998e830
    • M
      minor fix · d9511a15
      Mark Mansi 提交于
      d9511a15
    • M
      fix some imports · 3c4612a7
      Mark Mansi 提交于
      3c4612a7
    • M
      move region errors to diagnostics module · f5ac04ba
      Mark Mansi 提交于
      f5ac04ba
    • M
      fix imports · fbf47317
      Mark Mansi 提交于
      fbf47317
    • M
      move explain_borrow to diagnostics · 4917bba0
      Mark Mansi 提交于
      4917bba0
    • M
      fix imports · 67560976
      Mark Mansi 提交于
      67560976
    • M
      07a04862
    • B
      Auto merge of #66408 - nnethercote:greedy-process_obligations, r=nmatsakis · c4f13049
      bors 提交于
      Make `process_obligations()` greedier.
      
      `process_obligations()` adds new nodes, but it does not process these
      new nodes until the next time it is called.
      
      This commit changes it so that it does process these new nodes within
      the same call. This change reduces the number of calls to
      `process_obligations()` required to complete processing, sometimes
      giving significant speed-ups.
      
      The change required some changes to tests.
      - The output of `cycle-cache-err-60010.rs` is slightly different.
      - The unit tests required extra cases to handle the earlier processing
        of the added nodes. I mostly did these in the simplest possible way,
        by making the added nodes be ignored, thus giving outcomes the same as
        with the old behaviour. But I changed `success_in_grandchildren()`
        more extensively so that some obligations are completed earlier than
        they used to be.
      
      r? @nikomatsakis
      c4f13049
    • B
      Auto merge of #66275 - oli-obk:organize-intrinsics-promotion-checks, r=RalfJung · 7fa04653
      bors 提交于
      Organize intrinsics promotion checks
      
      cc @vertexclique
      
      supersedes #61835
      
      r? @RalfJung
      7fa04653
    • B
      Auto merge of #65947 - eddyb:fn-abi, r=oli-obk,nagisa · 5f1d6c44
      bors 提交于
      rustc: split FnAbi's into definitions/direct calls ("of_instance") and indirect calls ("of_fn_ptr").
      
      After this PR:
      * `InstanceDef::Virtual` is only used for "direct" virtual calls, and shims around those calls use `InstanceDef::ReifyShim` (i.e. for `<dyn Trait as Trait>::f as fn(_)`)
        * this could easily be done for intrinsics as well, to allow their reification, but I didn't do it
      * `FnAbi::of_instance` is **always** used for declaring/defining an `fn`, and for direct calls to an `fn`
        * this is great for e.g. https://github.com/rust-lang/rust/pull/65881 (`#[track_caller]`), which can introduce the "caller location" argument into "codegen signatures" by only changing `FnAbi::of_instance`, after this PR
      * `FnAbi::of_fn_ptr` is used primarily for indirect calls, i.e. to `fn` pointers
        * *not* virtual calls (which use `FnAbi::of_instance` with `InstanceDef::Virtual`)
        * there's also a couple uses where the `rustc_codegen_llvm` needs to declare (i.e. FFI-import) an LLVM function that has no Rust declaration available at all
          * at least one of them could probably be a "weak lang item" instead
      
      As there are many steps, this PR is best reviewed commit by commit - some of which arguably should be in their own PRs, I may have gotten carried away a bit.
      
      cc @nagisa @rkruppe @oli-obk @anp
      5f1d6c44
    • E
      Account for raw idents in module file finding · 0103308a
      Esteban Küber 提交于
      0103308a
    • E
      review comments: move test · b5ad0cb0
      Esteban Küber 提交于
      b5ad0cb0
    • B
      Auto merge of #66996 - ehuss:update-cargo, r=alexcrichton · a7fc0939
      bors 提交于
      Update cargo
      
      11 commits in 750cb1482e4d0e74822cded7ab8b3c677ed8b041..626f0f40efd32e6b3dbade50cd53fdfaa08446ba
      2019-11-23 23:06:36 +0000 to 2019-12-03 16:53:04 +0000
      - Change some texts to links in README (rust-lang/cargo#7652)
      - Update config and environment variable docs. (rust-lang/cargo#7650)
      - Stop ignoring .rs.bk files; rustfmt hasn't generated them in years (rust-lang/cargo#7647)
      - Various contributing docs updates. (rust-lang/cargo#7642)
      - Stabilize profile-overrides. (rust-lang/cargo#7591)
      - Update comment about ResolveVersion default version. (rust-lang/cargo#7637)
      - Update tests for slight wording change in rustdoc error message. (rust-lang/cargo#7641)
      - Remove dep_targets. (rust-lang/cargo#7626)
      - vendor: don't use canonical path in .cargo/config (rust-lang/cargo#7629)
      - Minor testsuite organization. (rust-lang/cargo#7628)
      - Remove failing plugin tests. (rust-lang/cargo#7630)
      a7fc0939