1. 08 2月, 2018 1 次提交
  2. 23 1月, 2018 2 次提交
  3. 21 12月, 2017 2 次提交
  4. 16 12月, 2017 1 次提交
  5. 15 12月, 2017 1 次提交
  6. 11 12月, 2017 1 次提交
    • N
      move `resolve_lifetimes` into a proper query · b7794c0d
      Niko Matsakis 提交于
      Now that we made `resolve_lifetimes` into a query, elision errors no
      longer abort compilation, which affects some tests.
      
      Also, remove `dep_graph_crosscontaminate_tables` -- there is no a path in
      the dep-graph, though red-green handles it. The same scenario
      is (correctly) tested by issue-42602.rs in any case.
      b7794c0d
  7. 06 12月, 2017 1 次提交
  8. 05 12月, 2017 1 次提交
  9. 23 11月, 2017 1 次提交
  10. 18 11月, 2017 1 次提交
    • T
      Fix impl Trait Lifetime Handling · bc4810d9
      Taylor Cramer 提交于
      After this change, impl Trait existentials are
      desugared to a new `abstract type` definition
      paired with a set of lifetimes to apply.
      
      In-scope generics are included as parents of the
      `abstract type` generics. Parent regions are
      replaced with static, and parent regions
      referenced in the `impl Trait` type are duplicated
      at the end of the `abstract type`'s generics.
      bc4810d9
  11. 16 11月, 2017 2 次提交
    • C
      Add proper names to impl Trait parameters. · 7e9948f9
      Chris Vittal 提交于
      Uses Symbol::intern and hir.node_to_pretty_string to create a name for
      the impl Trait parameter that is just impl and then a ' + ' separated
      list of bounds that the user typed.
      7e9948f9
    • C
      Split hir::TyImplTrait, move checks to HIR lowering · 8fd48e7d
      Christopher Vittal 提交于
      Replace hir::TyImplTrait with TyImplTraitUniversal and
      TyImplTraitExistential.
      
      Add an ImplTraitContext enum to rustc::hir::lowering to track the kind
      and allowedness of an impl Trait.
      
      Significantly alter lowering to thread ImplTraitContext and one other
      boolean parameter described below throughought much of lowering.
      
      The other parameter is for tracking if lowering a function is in a trait
      impl, as there is not enough information to otherwise know this
      information during lowering otherwise.
      
      This change also removes the checks from ast_ty_to_ty for impl trait
      allowedness as they are now all taking place in HIR lowering.
      8fd48e7d
  12. 08 11月, 2017 5 次提交
  13. 05 11月, 2017 1 次提交
  14. 03 11月, 2017 2 次提交
  15. 28 10月, 2017 1 次提交
  16. 15 10月, 2017 1 次提交
  17. 08 10月, 2017 1 次提交
  18. 06 10月, 2017 1 次提交
  19. 30 9月, 2017 1 次提交
  20. 24 9月, 2017 1 次提交
  21. 23 9月, 2017 1 次提交
  22. 18 9月, 2017 1 次提交
  23. 11 9月, 2017 3 次提交
  24. 05 9月, 2017 2 次提交
    • A
      rustc: Migrate lang items to a query · a2e2aba0
      Alex Crichton 提交于
      This commit moves the calculation of the `LanguageItems` structure into a
      query rather than being calculated before the `TyCtxt` exists, with the eventual
      end goal of removing some `CrateStore` methods.
      a2e2aba0
    • A
      rustc: Hide the `named_region_map` behind queries · fd61fa5a
      Alex Crichton 提交于
      This commit makes the `named_region_map` field of `GlobalCtxt` private by
      encapsulating the fields behind new queries, and the new queries are also
      targeted at particular `HirId` nodes instead of accessing the entire map.
      fd61fa5a
  25. 19 8月, 2017 1 次提交
  26. 16 8月, 2017 1 次提交
  27. 10 8月, 2017 1 次提交
    • A
      rustc: Rearchitect lints to be emitted more eagerly · 0374e6aa
      Alex Crichton 提交于
      In preparation for incremental compilation this commit refactors the lint
      handling infrastructure in the compiler to be more "eager" and overall more
      incremental-friendly. Many passes of the compiler can emit lints at various
      points but before this commit all lints were buffered in a table to be emitted
      at the very end of compilation. This commit changes these lints to be emitted
      immediately during compilation using pre-calculated lint level-related data
      structures.
      
      Linting today is split into two phases, one set of "early" lints run on the
      `syntax::ast` and a "late" set of lints run on the HIR. This commit moves the
      "early" lints to running as late as possible in compilation, just before HIR
      lowering. This notably means that we're catching resolve-related lints just
      before HIR lowering. The early linting remains a pass very similar to how it was
      before, maintaining context of the current lint level as it walks the tree.
      
      Post-HIR, however, linting is structured as a method on the `TyCtxt` which
      transitively executes a query to calculate lint levels. Each request to lint on
      a `TyCtxt` will query the entire crate's 'lint level data structure' and then go
      from there about whether the lint should be emitted or not.
      
      The query depends on the entire HIR crate but should be very quick to calculate
      (just a quick walk of the HIR) and the red-green system should notice that the
      lint level data structure rarely changes, and should hopefully preserve
      incrementality.
      
      Overall this resulted in a pretty big change to the test suite now that lints
      are emitted much earlier in compilation (on-demand vs only at the end). This in
      turn necessitated the addition of many `#![allow(warnings)]` directives
      throughout the compile-fail test suite and a number of updates to the UI test
      suite.
      0374e6aa
  28. 29 7月, 2017 1 次提交
  29. 11 7月, 2017 1 次提交