1. 04 12月, 2017 6 次提交
    • C
      Rollup merge of #46454 - GuillaumeGomez:search-overlap, r=QuietMisdreavus · 7c4f74d1
      Corey Farwell 提交于
      Fix search results overlap
      
      Fixes #46434.
      
      r? @QuietMisdreavus
      7c4f74d1
    • C
      Rollup merge of #46442 - est31:master, r=alexcrichton · 697c5ba0
      Corey Farwell 提交于
      Remove an unstable and dead compiler flag
      
      The last use has been removed by commit fb9ca16b .
      697c5ba0
    • C
      Rollup merge of #46432 - tromey:doc-fix-46307, r=estebank · fcf1e736
      Corey Farwell 提交于
      Fix documentation for DecodeUtf16Error
      
      Fixes #46307
      fcf1e736
    • C
      Rollup merge of #46260 - ExpHP:builtin-macro-doc-sync, r=steveklabnik · b9ffbff9
      Corey Farwell 提交于
      Make doc stubs for builtin macros reflect existing support for trailing commas
      
      This modifies the `macro_rules!` stubs in `std` for some of the compiler builtin macros in order to better reflect their currently supported grammar.  To my understanding these stubs have no impact on compiler output whatsoever, and only exist so that they may appear in the documentation.
      
      P.S. It is in fact true that `env!` supports trailing commas while `option_env!` currently does not.  (I have another issue for this)
      
      I don't imagine there's any way to automatically test these stubs, but I did *informally* test the new definitions on the playpen to see that they accept the desired invocations, as well as inspect the updated doc output.
      b9ffbff9
    • C
      Rollup merge of #45957 - dereckson:unix-agnosticity, r=shepmaster · 82ee2094
      Corey Farwell 提交于
      Use more convenient and UNIX-agnostic shebang
      
      When using bash-specific features, scripts using env to call bash
      are more convenient, as bash be installed in different places
      according the OS.
      82ee2094
    • B
      Auto merge of #46393 - kennytm:45861-step-2-3-make-tools-job-not-fail-fast, r=alexcrichton · f2b11f30
      bors 提交于
      [auto-toolstate][2+3/8] Move external tools tests into its own job with --no-fail-fast
      
      This PR performs these  things:
      
      1. The `aux` job now performs "cargotest" and "pretty" tests. The clippy/rustfmt/rls/miri tests are moved into its own job.
      2. These tests are run with `--no-fail-fast`, so that we can get the maximum number of failures of all tools from a single CI run.
      3. The test results are stored into a JSON file, ready to be uploaded in the future.
      
      This is step 2 and 3/8 of automatic management of broken tools #45861.
      f2b11f30
  2. 03 12月, 2017 25 次提交
  3. 02 12月, 2017 9 次提交
    • B
      Auto merge of #46349 - estebank:highlight-ref, r=arielb1 · 9053fdd4
      bors 提交于
      On type mismatch error highlight `&` when type matches
      
      When the only difference between the two types in a type error is that
      one is a reference to the other type (`T` vs `&T`) or both are
      references differing only in their mutability (`&T` vs `&mut T`), don't
      highlight the type (`T`).
      9053fdd4
    • E
      Remove an unstable and dead compiler flag · 60a842f5
      est31 提交于
      The last use has been removed by commit fb9ca16b .
      60a842f5
    • B
      Auto merge of #46347 - raventid:did-you-mean-increase-accuracy, r=estebank · 7a649872
      bors 提交于
      Add case insensitive comparison, besides Levenstein for DYM
      
      Closes #46332
      
      Draft version. The idea is that Levenstein does not work for some cases when we have multiple equal weights for strings. I didn't understand the case with `if found != name => Some(found)` so it means that new code does not work correctly yet.
      
      At least now I think that we might return all maximal weights from levenstein and think about next cases in priority order:
      
      1) There is exact match -> None
      2) There is exact match, but case insensitive -> Some(match)
      3) There is some match from levenstein -> Some(matches.take_any)
      4) There is no match -> None
      
      @estebank WDYT?
      7a649872
    • B
      Auto merge of #46343 - jseyfried:fix_hygiene_bug, r=nrc · e0d11f39
      bors 提交于
      Fix hygiene bug.
      
      Fixes #42708.
      r? @nrc
      e0d11f39
    • B
      Auto merge of #46326 - GuillaumeGomez:sidebar-text, r=QuietMisdreavus · 8bcbf91a
      bors 提交于
      Fix invalid HTML escape
      
      Fixes #46289.
      
      r? @QuietMisdreavus
      8bcbf91a
    • B
      Auto merge of #46288 - alexcrichton:bump-bootstrap, r=Mark-Simulacrum · c3942e75
      bors 提交于
      Bump to 1.24.0
      
      * Update the in-tree version number
      * Update the bootstrap compiler
      * Remove `cfg(stage0)` annotations
      * Update crate dependencies
      * Update Cargo itself
      c3942e75
    • B
      Auto merge of #46256 - estebank:suggest-deref, r=arielb1 · b15a8eaf
      bors 提交于
      Use suggestions instead of notes ref mismatches
      
      On type mismatch errors, use a suggestion when encountering minimal
      differences in type differences due to refs, instead of a note.
      b15a8eaf
    • S
      Use more convenient and UNIX-agnostic shebang · a4b4a733
      Sébastien Santoro 提交于
      When using bash-specific features, scripts using env to call bash
      are more convenient, as bash be installed in different places
      according the OS.
      
      Same applies for other languages' interpreters.
      a4b4a733
    • B
      Auto merge of #45904 - sunjay:gat-parser, r=nikomatsakis · ddaebe93
      bors 提交于
      Generic Associated Types Parsing & Name Resolution
      
      Hi!
      This PR adds parsing for generic associated types! 🎉 🎉 🎉
      
      Tracking Issue: #44265
      
      ## Notes For Reviewers
      * [x] I still need to add the stdout and stderr files to my ui tests. It takes me a *long* time to compile the compiler locally, so I'm going to add this as soon as possible in the next day or so.
      * [ ] My current ui tests aren't very good or very thorough. I'm reusing the `parse_generics` and `parse_where_clause` methods from elsewhere in the parser, so my changes work without being particularly complex. I'm not sure if I should duplicate all of the generics test cases for generic associated types. It might actually be appropriate to duplicate everything here, since we don't want to rely on an implementation detail in case it changes in the future. If you think so too, I'll adapt all of the generics test cases into the generic associated types test cases.
      * [ ] There is still more work required to make the run-pass tests pass here. In particular, we need to make the following errors disappear:
      ```
      error[E0110]: lifetime parameters are not allowed on this type
        --> ./src/test/run-pass/rfc1598-generic-associated-types/streaming_iterator.rs:23:41
         |
      23 |     bar: <T as StreamingIterator>::Item<'static>,
         |                                         ^^^^^^^ lifetime parameter not allowed on this type
      ```
      ```
      error[E0261]: use of undeclared lifetime name `'a`
        --> ./src/test/run-pass/rfc1598-generic-associated-types/iterable.rs:15:47
         |
      15 |     type Iter<'a>: Iterator<Item = Self::Item<'a>>;
         |                                               ^^ undeclared lifetime
      ```
      There is a FIXME comment in streaming_iterator. If you uncomment that line, you get the following:
      ```
      error: expected one of `!`, `+`, `,`, `::`, or `>`, found `=`
        --> ./src/test/run-pass/rfc1598-generic-associated-types/streaming_iterator.rs:29:45
         |
      29 | fn foo<T: for<'a> StreamingIterator<Item<'a>=&'a [i32]>>(iter: T) { /* ... */ }
         |                                             ^ expected one of `!`, `+`, `,`, `::`, or `>` here
      ```
      
      r? @nikomatsakis
      ddaebe93