1. 19 1月, 2021 1 次提交
  2. 18 1月, 2021 2 次提交
  3. 17 1月, 2021 7 次提交
  4. 15 1月, 2021 1 次提交
  5. 14 1月, 2021 2 次提交
  6. 13 1月, 2021 1 次提交
    • J
      Separate out a `hir::Impl` struct · dfb41f47
      Joshua Nelson 提交于
      This makes it possible to pass the `Impl` directly to functions, instead
      of having to pass each of the many fields one at a time. It also
      simplifies matches in many cases.
      dfb41f47
  7. 10 1月, 2021 2 次提交
  8. 08 1月, 2021 1 次提交
  9. 03 1月, 2021 1 次提交
  10. 02 1月, 2021 1 次提交
  11. 01 1月, 2021 1 次提交
  12. 31 12月, 2020 1 次提交
  13. 30 12月, 2020 2 次提交
  14. 23 12月, 2020 1 次提交
  15. 21 12月, 2020 1 次提交
  16. 19 12月, 2020 1 次提交
  17. 18 12月, 2020 1 次提交
    • B
      Auto merge of #79945 - jackh726:existential_trait_ref, r=nikomatsakis · 8e9a538a
      bors 提交于
      Move binder for dyn to each list item
      
      This essentially changes `ty::Binder<&'tcx List<ExistentialTraitRef>>` to `&'tcx List<ty::Binder<ExistentialTraitRef>>`.
      
      This is a first step in moving the `dyn Trait` representation closer to Chalk, which we've talked about in `@rust-lang/wg-traits.`
      
      r? `@nikomatsakis`
      8e9a538a
  18. 17 12月, 2020 1 次提交
    • Y
      Rollup merge of #79051 - LeSeulArtichaut:if-let-guard, r=matthewjasper · 286e4923
      Yuki Okushi 提交于
      Implement if-let match guards
      
      Implements rust-lang/rfcs#2294 (tracking issue: #51114).
      
      I probably should do a few more things before this can be merged:
      - [x] Add tests (added basic tests, more advanced tests could be done in the future?)
      - [x] Add lint for exhaustive if-let guard (comparable to normal if-let statements)
      - [x] Fix clippy
      
      However since this is a nightly feature maybe it's fine to land this and do those steps in follow-up PRs.
      
      Thanks a lot `@matthewjasper`  for helping me with lowering to MIR! Would you be interested in reviewing this?
      r? `@ghost` for now
      286e4923
  19. 16 12月, 2020 1 次提交
    • B
      Auto merge of #78399 - vn-ki:gsgdt-graphviz, r=oli-obk · 39aca5ff
      bors 提交于
      make MIR graphviz generation use gsgdt
      
      gsgdt [https://crates.io/crates/gsgdt] is a crate which provides an
      interface for stringly typed graphs. It also provides generation of
      graphviz dot format from said graph.
      
      This is the first in a series of PRs on moving graphviz code out of rustc into normal crates and then implementating graph diffing on top of these crates.
      
      r? `@oli-obk`
      39aca5ff
  20. 15 12月, 2020 2 次提交
    • R
      Convenience funcs for `some_option.unwrap_or(...)` · ae288df5
      Rich Kadel 提交于
      This ensures consistent handling of default values for options that are
      None if not specified on the command line.
      ae288df5
    • R
      Improve warnings on incompatible options involving -Zinstrument-coverage · 3043a7b5
      Rich Kadel 提交于
      Adds checks for:
      
      * `no_core` attribute
      * explicitly-enabled `legacy` symbol mangling
      * mir_opt_level > 1 (which enables inlining)
      
      I removed code from the `Inline` MIR pass that forcibly disabled
      inlining if `-Zinstrument-coverage` was set. The default `mir_opt_level`
      does not enable inlining anyway. But if the level is explicitly set and
      is greater than 1, I issue a warning.
      
      The new warnings show up in tests, which is much better for diagnosing
      potential option conflicts in these cases.
      3043a7b5
  21. 12 12月, 2020 1 次提交
  22. 07 12月, 2020 1 次提交
  23. 06 12月, 2020 3 次提交
  24. 05 12月, 2020 1 次提交
  25. 30 11月, 2020 1 次提交
    • B
      Auto merge of #79329 - camelid:int-lit-suffix-error, r=davidtwco · 3be53bc4
      bors 提交于
      Update error to reflect that integer literals can have float suffixes
      
      For example, `1` is parsed as an integer literal, but it can be turned
      into a float with the suffix `f32`. Now the error calls them "numeric
      literals" and notes that you can add a float suffix since they can be
      either integers or floats.
      3be53bc4
  26. 29 11月, 2020 1 次提交
    • B
      Update tests to remove old numeric constants · d55d791a
      bstrie 提交于
      Part of #68490.
      
      Care has been taken to leave the old consts where appropriate, for testing backcompat regressions, module shadowing, etc. The intrinsics docs were accidentally referring to some methods on f64 as std::f64, which I changed due to being contrary with how we normally disambiguate the shadow module from the primitive. In one other place I changed std::u8 to std::ops since it was just testing path handling in macros.
      
      For places which have legitimate uses of the old consts, deprecated attributes have been optimistically inserted. Although currently unnecessary, they exist to emphasize to any future deprecation effort the necessity of these specific symbols and prevent them from being accidentally removed.
      d55d791a
  27. 28 11月, 2020 1 次提交