1. 09 4月, 2015 2 次提交
    • A
      Remove pretty-expanded from failing tests · ec7c800d
      Alex Crichton 提交于
      This commit removes pretty-expanded from all tests that wind up calling panic!
      one way or another now that its internals are unstable.
      ec7c800d
    • A
      std: Destabilize the internals of panic! · 65e3f032
      Alex Crichton 提交于
      Now that we have a `#[allow_internal_unstable]` attribute for macros there's no
      need for these two `begin_unwind` functions to be stable. Right now the `panic!`
      interface is the only one we wish to stabilize, so remove the stability markers
      from these functions.
      
      While this is a breaking change, it is highly unlikely to break any actual code.
      It is recommended to use the `panic!` macro instead if it breaks explicit calls
      into `std::rt`.
      
      [breaking-change]
      cc #24208
      65e3f032
  2. 08 4月, 2015 16 次提交
    • B
      Auto merge of #23998 - nrc:impl-self, r=nikomatsakis · 926f38e5
      bors 提交于
      Closes #23909
      
      r? @nikomatsakis (or anyone else, really)
      926f38e5
    • B
      Auto merge of #24120 - aturon:range-perf, r=alexcrichton · 3a66c7f6
      bors 提交于
      A recent change to the implementation of range iterators meant that,
      even when stepping by 1, the iterators *always* involved checked
      arithmetic.
      
      This commit reverts to the earlier behavior (while retaining the
      refactoring into traits).
      
      Fixes #24095
      Closes #24119
      cc #24014 
      
      r? @alexcrichton 
      3a66c7f6
    • B
      Auto merge of #24078 - whipsch:extra-token-msg, r=huonw · ce97c197
      bors 提交于
      Addresses issue #22425.  See `src/test/compile-fail/macro-incomplete-parse.rs` for a relevant test:
      
          macro-incomplete-parse.rs:15:9: 15:10 error: macro expansion ignores token `,` and any following
          macro-incomplete-parse.rs:15         , //~ ERROR macro expansion ignores token `,`
                                               ^
          macro-incomplete-parse.rs:27:1: 27:17 note: caused by the macro expansion here; the usage of `ignored_item` is likely invalid in this context
          macro-incomplete-parse.rs:27 ignored_item!();
                                       ^~~~~~~~~~~~~~~~
          macro-incomplete-parse.rs:20:14: 20:15 error: macro expansion ignores token `,` and any following
          macro-incomplete-parse.rs:20     () => ( 1, 2 ) //~ ERROR macro expansion ignores token `,`
                                                    ^
          macro-incomplete-parse.rs:30:5: 30:21 note: caused by the macro expansion here; the usage of `ignored_expr` is likely invalid in this context
          macro-incomplete-parse.rs:30     ignored_expr!();
                                           ^~~~~~~~~~~~~~~~
          macro-incomplete-parse.rs:24:14: 24:15 error: macro expansion ignores token `,` and any following
          macro-incomplete-parse.rs:24     () => ( 1, 2 ) //~ ERROR macro expansion ignores token `,`
                                                    ^
          macro-incomplete-parse.rs:32:9: 32:23 note: caused by the macro expansion here; the usage of `ignored_pat` is likely invalid in this context
          macro-incomplete-parse.rs:32         ignored_pat!() => (),
                                               ^~~~~~~~~~~~~~
      
      This does not address the case of improper expansion inside of an impl { } as seen in issue #21607.
      
      
      I'm not sure if the note text is ideal, but it can be refined if needed.
      ce97c197
    • B
      Auto merge of #23293 - tbu-:pr_additive_multiplicative, r=alexcrichton · dd6c4a8f
      bors 提交于
      Previously it could not be implemented for types outside `libcore/iter.rs` due
      to coherence issues.
      dd6c4a8f
    • A
      Fix range performance regression · dddcbcfe
      Aaron Turon 提交于
      A recent change to the implementation of range iterators meant that,
      even when stepping by 1, the iterators *always* involved checked
      arithmetic.
      
      This commit reverts to the earlier behavior (while retaining the
      refactoring into traits).
      
      Fixes #24095
      cc #24014
      dddcbcfe
    • T
      Make `sum` and `product` inherent methods on `Iterator` · 97f24a85
      Tobias Bucher 提交于
      In addition to being nicer, this also allows you to use `sum` and `product` for
      iterators yielding custom types aside from the standard integers.
      
      Due to removing the `AdditiveIterator` and `MultiplicativeIterator` trait, this
      is a breaking change.
      
      [breaking-change]
      97f24a85
    • B
      Auto merge of #24169 - Manishearth:rollup, r=Manishearth · d9146bf8
      bors 提交于
      - Successful merges: #24132, #24139, #24147, #24148, #24150, #24166
      - Failed merges: 
      d9146bf8
    • M
      4e067f52
    • M
      Rollup merge of #24150 - wg:master, r=alexcrichton · c4bd1c2b
      Manish Goregaokar 提交于
      This fix allows the gdb debuginfo tests to pass on FreeBSD when using the newer 7.8 package.
      c4bd1c2b
    • M
      Rollup merge of #24148 - xfq:patch-2, r=steveklabnik · fe2cff74
      Manish Goregaokar 提交于
      People use programming language *implementations* like Ruby MRI, CPython, and SpiderMonkey for executing programs.
      fe2cff74
    • M
      Rollup merge of #24147 - lstat:needstest-22560, r=alexcrichton · 2b346436
      Manish Goregaokar 提交于
      Closes #22560
      2b346436
    • M
      Rollup merge of #24139 - xfq:patch-1, r=steveklabnik · 6295406d
      Manish Goregaokar 提交于
      Use HTTPS where possible to avoid plaintext HTTP connections.
      6295406d
    • M
      Rollup merge of #24132 - kwantam:master, r=alexcrichton · 7b2e1184
      Manish Goregaokar 提交于
      @mahkoh points out in #15628 that unicode.py does not use
      normative data for Grapheme classes. This pr fixes that issue,
      and does some minor cleanup of the unicode.py script.
      
      In addition, GC_RegionalIndicator is renamed GC_Regional_Indicator
      in order to stay in line with the Unicode class name definitions.
      I have updated refs in u_str.rs, and verified that there are no
      refs elsewhere in the codebase. However, in principle someone
      using the unicode tables for their own purposes might see breakage
      from this.
      7b2e1184
    • T
      Change my email · f728e395
      Tero Hänninen 提交于
      f728e395
    • B
      Auto merge of #24156 - Manishearth:rollup, r=Manishearth · 1fd89b62
      bors 提交于
      1fd89b62
    • M
      doc ignore (fixup #24059) · ae64d8e4
      Manish Goregaokar 提交于
      ae64d8e4
  3. 07 4月, 2015 22 次提交