1. 21 1月, 2015 1 次提交
    • S
      Small fix in TRPL 3.9 · e361b388
      Steve Klabnik 提交于
      Multiple people have asked me if this is a reference to Hacker News, and
      I _certainly_ don't want to give them that impression.
      e361b388
  2. 20 1月, 2015 10 次提交
    • B
      Auto merge of #21364 - cmr:fix-ttseq-ice, r=alexcrichton · ffd8cb79
      bors 提交于
      Closes #21350
      ffd8cb79
    • B
      Auto merge of #21304 - lifthrasiir:htmldocck, r=alexcrichton · 3bf41daf
      bors 提交于
      The script is intended as a tool for doing every sort of verifications amenable to Rustdoc's HTML output. For example, link checkers would go to this script. It already parses HTML into a document tree form (with a slight caveat), so future tests can make use of it.
      
      As an example, relevant `rustdoc-*` run-make tests have been updated to use `htmldocck.py` and got their `verify.sh` removed. In the future they may go to a dedicated directory with htmldocck running by default. The detailed explanation of test scripts is provided as a docstring of htmldocck.
      
      cc #19723
      3bf41daf
    • B
      Auto merge of #21287 - alexcrichton:issue-19872, r=huonw · 9006c3c0
      bors 提交于
      cc #19872, this may help give some insight
      9006c3c0
    • B
      Auto merge of #21257 - alexcrichton:issue-20064, r=pnkfelix · e375a892
      bors 提交于
      These two attributes are used to change the entry point into a Rust program, but
      for now they're being put behind feature gates until we have a chance to think
      about them a little more. The #[start] attribute specifically may have its
      signature changed.
      
      This is a breaking change to due the usage of these attributes generating errors
      by default now. If your crate is using these attributes, add this to your crate
      root:
      
          #![feature(start)] // if you're using the #[start] attribute
          #![feature(main)]  // if you're using the #[main] attribute
      
      cc #20064
      e375a892
    • B
      Auto merge of #21165 - alexcrichton:second-pass-type-id, r=aturon · 65b61ffb
      bors 提交于
      This commit aims to stabilize the `TypeId` abstraction by moving it out of the
      `intrinsics` module into the `any` module of the standard library. Specifically,
      
      * `TypeId` is now defined at `std::any::TypeId`
      * `TypeId::hash` has been removed in favor of an implementation of `Hash`.
      
      This commit also performs a final pass over the `any` module, confirming the
      following:
      
      * `Any::get_type_id` remains unstable as *usage* of the `Any` trait will likely
        never require this, and the `Any` trait does not need to be implemented for
        any other types. As a result, this implementation detail can remain unstable
        until associated statics are implemented.
      * `Any::downcast_ref` is now stable
      * `Any::downcast_mut` is now stable
      * `BoxAny` remains unstable. While a direct impl on `Box<Any>` is allowed today
        it does not allow downcasting of trait objects like `Box<Any + Send>` (those
        returned from `Thread::join`). This is covered by #18737.
      * `BoxAny::downcast` is now stable.
      65b61ffb
    • B
      Auto merge of #19490 - oli-obk:json_non_string_key_maps, r=alexcrichton · 7f8c687f
      bors 提交于
      importing object type string key maps is still supported
      writing them should be explicit, and can be done as follows
      
      ```rust
      let some_tree_map : TreeMap<String, Json> = ...;
      Json::Object(some_tree_map).to_writer(&mut writer);
      ```
      
      related to #8335, #9028, #9142
      7f8c687f
    • B
      Auto merge of #21278 - thchittenden:issue-21033-struct-var-pattern-fix, r=alexcrichton · 4032b85a
      bors 提交于
      Closes #21033. The new strategy for parsing a field pattern is to look 1 token ahead and if it's a colon, parse as "fieldname: pat", otherwise parse the shorthand form "(box) (ref) (mut) fieldname)". The previous strategy was to parse "(ref) (mut) fieldname" then if we encounter a colon, throw an error if either "ref" or "mut" were encountered. 
      4032b85a
    • B
      Auto merge of #20082 - pczarn:btree-bounded-iter, r=Gankro · 54c9a465
      bors 提交于
      Part of collections reform v1, #18424
      Also, iteration is simplified:
      ```
      before
      test btree::map::bench::iter_1000                          ... bench:     17177 ns/iter (+/- 6302)
      test btree::map::bench::iter_100000                        ... bench:   1735731 ns/iter (+/- 23908)
      test btree::map::bench::iter_20                            ... bench:       386 ns/iter (+/- 148)
      after
      test btree::map::bench::iter_1000                          ... bench:     15777 ns/iter (+/- 346)
      test btree::map::bench::iter_100000                        ... bench:   1602604 ns/iter (+/- 73629)
      test btree::map::bench::iter_20                            ... bench:       339 ns/iter (+/- 91)
      ```
      cc @gereeter @cgaebel
      r? @Gankro
      54c9a465
    • T
      Fixes #21033 with accompanying test. · d8372139
      Tom Chittenden 提交于
      d8372139
    • P
      Implement range and range_mut for BTree · 429c23d5
      Piotr Czarnecki 提交于
      Simplify BTree's iterators, too.
      429c23d5
  3. 19 1月, 2015 17 次提交
  4. 18 1月, 2015 12 次提交