1. 03 10月, 2018 1 次提交
  2. 30 9月, 2018 1 次提交
    • Z
      don't elide lifetimes in paths in librustc/ · 5b22d9b2
      Zack M. Davis 提交于
      This seemed like a good way to kick the tires on the
      elided-lifetimes-in-paths lint (#52069)—seems to work! This was also
      pretty tedious—it sure would be nice if `cargo fix` worked on this
      codebase (#53896)!
      5b22d9b2
  3. 28 9月, 2018 1 次提交
  4. 23 9月, 2018 1 次提交
    • A
      avoid loading constructor attributes in AdtDef decoding · 2c28c4ed
      Ariel Ben-Yehuda 提交于
      During metadata loading, the AdtDefs for every ADT in the universe need
      to be loaded (for example, for coherence of builtin traits). For that,
      the attributes of the AdtDef need to be loaded too.
      
      The attributes of a struct are duplicated between 2 def ids - the
      constructor def-id, and the "type" def id. Loading attributes for both
      def-ids, which was done in #53721, slowed the compilation of small
      crates by 2-3%. This PR makes sure we only load the attributes for the
      "type" def-id, avoiding the slowdown.
      2c28c4ed
  5. 20 9月, 2018 1 次提交
  6. 13 9月, 2018 2 次提交
  7. 06 9月, 2018 1 次提交
  8. 02 9月, 2018 1 次提交
  9. 28 8月, 2018 3 次提交
  10. 26 8月, 2018 1 次提交
  11. 23 8月, 2018 1 次提交
  12. 22 8月, 2018 5 次提交
  13. 20 8月, 2018 3 次提交
  14. 19 8月, 2018 1 次提交
  15. 10 8月, 2018 2 次提交
  16. 09 8月, 2018 1 次提交
  17. 27 7月, 2018 1 次提交
  18. 25 7月, 2018 1 次提交
  19. 24 7月, 2018 1 次提交
  20. 20 7月, 2018 1 次提交
  21. 18 7月, 2018 3 次提交
  22. 16 7月, 2018 1 次提交
  23. 14 7月, 2018 1 次提交
  24. 08 7月, 2018 1 次提交
  25. 02 7月, 2018 2 次提交
  26. 01 7月, 2018 1 次提交
    • Z
      in which hir::Visibility recalls whence it came (i.e., becomes Spanned) · 4ae89129
      Zack M. Davis 提交于
      There are at least a couple (and plausibly even three) diagnostics that
      could use the spans of visibility modifiers in order to be reliably
      correct (rather than hacking and munging surrounding spans to try to
      infer where the visibility keyword must have been).
      
      We follow the naming convention established by the other `Spanned` HIR
      nodes: the "outer" type alias gets the "prime" node-type name, the
      "inner" enum gets the name suffixed with an underscore, and the variant
      names are prefixed with the prime name and `pub use` exported from here
      (from HIR).
      
      Thanks to veteran reviewer Vadim Petrochenkov for suggesting this
      uniform approach. (A previous draft, based on the reasoning that
      `Visibility::Inherited` should not have a span, tried to hack in a named
      `span` field on `Visibility::Restricted` and a positional field on
      `Public` and `Crate`. This was ... not so uniform.)
      4ae89129
  27. 28 6月, 2018 1 次提交