1. 09 9月, 2017 10 次提交
  2. 08 9月, 2017 5 次提交
    • B
      Auto merge of #44142 - alexcrichton:dllimport-query, r=nikomatsakis · dead08cb
      bors 提交于
      Migrate a slew of metadata methods to queries
      
      This PR intends to make more progress on #41417, knocking off some low-hanging fruit.
      
      Closes #44190
      cc #44137
      dead08cb
    • B
      Auto merge of #43742 - epdtry:pprust-expr-fix, r=petrochenkov · d6ad402a
      bors 提交于
      pprust: fix parenthesization of exprs
      
      The pretty printer in `syntax::print::pprust` currently relies on the presence of `ExprKind::Paren` hints in order to correctly parenthesize expressions in its output.  If `Paren` nodes are missing, it sometimes produces wrong output, such as printing `1 - (2 - 3)` as `1 - 2 - 3`.  This PR fixes `pprust` to correctly print expressions regardless of the presence or absence of `Paren` nodes.  This should make `pprust` easier to use with programmatically constructed ASTs.
      
      A few notes:
      
       * I added a function for assigning precedence values to exprs in `syntax::util::parser`, since there is already code there for assigning precedence values to binops.  Let me know if I should move this somewhere more `pprust`-specific.
      
       * I also moved the `contains_exterior_struct_lit` function from `rustc_lint::unused::UnusedParens` into `syntax::util::parser`, since it's needed for determining the correct parenthesization of `if`/`while` conditional expressions.
      
       * I couldn't find a good way to compare two exprs for equivalence while ignoring semantically-irrelevant details like spans.  So the test for the new behavior relies on a slight hack: it adds `Paren` nodes everywhere, so that the pretty-printed version exactly reflects the structure of the AST, and then compares the printed strings.  This works, but let me know if there's a better way.
      d6ad402a
    • B
      Auto merge of #44399 - alexcrichton:tmp-travis-downgrade, r=alexcrichton · e1ef1882
      bors 提交于
      travis: Downgrade to previous images temporarily
      
      Travis is in the process of [rolling out an update][update] but looks like our
      tests are breaking, let's temporarily roll back to get the queue moving again.
      
      [update]: https://blog.travis-ci.com/2017-08-29-trusty-image-updates
      e1ef1882
    • A
      travis: Downgrade to previous images temporarily · 7ed29860
      Alex Crichton 提交于
      Travis is in the process of [rolling out an update][update] but looks like our
      tests are breaking, let's temporarily roll back to get the queue moving again.
      
      [update]: https://blog.travis-ci.com/2017-08-29-trusty-image-updates
      7ed29860
    • N
      update comment · c1dddcec
      Niko Matsakis 提交于
      c1dddcec
  3. 07 9月, 2017 25 次提交