about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2015-03-11Auto merge of #23156 - GuillaumeGomez:remove-proc, r=alexcrichtonbors-76/+8
This is the implementation of the [RFC 584](https://github.com/rust-lang/rfcs/pull/584).
2015-03-11Change comment in parse-fail testGuillaume Gomez-2/+2
2015-03-11Auto merge of #23256 - apasel422:bound, r=alexcrichtonbors-0/+1
2015-03-11Auto merge of #23251 - tbu-:pr_rm_core_str_checked_add, r=alexcrichtonbors-1/+4
2015-03-11Remove ProcType and ProcExpGuillaume Gomez-41/+0
2015-03-10Auto merge of #23126 - alexcrichton:char-third-pass, r=aturonbors-389/+333
This commit performs another pass over the `std::char` module for stabilization. Some minor cleanup is performed such as migrating documentation from libcore to libunicode (where the `std`-facing trait resides) as well as a slight reorganiation in libunicode itself. Otherwise, the stability modifications made are: * `char::from_digit` is now stable * `CharExt::is_digit` is now stable * `CharExt::to_digit` is now stable * `CharExt::to_{lower,upper}case` are now stable after being modified to return an iterator over characters. While the implementation today has not changed this should allow us to implement the full set of case conversions in unicode where some characters can map to multiple when doing an upper or lower case mapping. * `StrExt::to_{lower,upper}case` was added as unstable for a convenience of not having to worry about characters expanding to more characters when you just want the whole string to get into upper or lower case. This is a breaking change due to the change in the signatures of the `CharExt::to_{upper,lower}case` methods. Code can be updated to use functions like `flat_map` or `collect` to handle the difference. [breaking-change] Closes #20333
2015-03-10std: Stabilize more of the `char` moduleAlex Crichton-389/+333
This commit performs another pass over the `std::char` module for stabilization. Some minor cleanup is performed such as migrating documentation from libcore to libunicode (where the `std`-facing trait resides) as well as a slight reorganiation in libunicode itself. Otherwise, the stability modifications made are: * `char::from_digit` is now stable * `CharExt::is_digit` is now stable * `CharExt::to_digit` is now stable * `CharExt::to_{lower,upper}case` are now stable after being modified to return an iterator over characters. While the implementation today has not changed this should allow us to implement the full set of case conversions in unicode where some characters can map to multiple when doing an upper or lower case mapping. * `StrExt::to_{lower,upper}case` was added as unstable for a convenience of not having to worry about characters expanding to more characters when you just want the whole string to get into upper or lower case. This is a breaking change due to the change in the signatures of the `CharExt::to_{upper,lower}case` methods. Code can be updated to use functions like `flat_map` or `collect` to handle the difference. [breaking-change]
2015-03-10Remove proc keywordGuillaume Gomez-37/+10
2015-03-10Auto merge of #23249 - tbu-:pr_rm_core_str_macros, r=alexcrichtonbors-41/+40
2015-03-10derive common traits for `collections::Bound`Andrew Paseltiner-0/+1
2015-03-10Auto merge of #23250 - liigo:plain-summary-line, r=alexcrichtonbors-3/+4
this feature was broken by mistake some days ago: @2b11a80 (line 2201: https://github.com/rust-lang/rust/commit/2b11a80#diff-05c3c8b7c08a25764218b8c18d8204b7L2201) r? @alexcrichton
2015-03-10Auto merge of #23028 - Munksgaard:get_attrs_opt, r=eddybbors-17/+13
This is more flexible and less error-prone. `get_attrs` and `get_attrs_opt` can be used on many more items than the old `get_attrs` could. This is all courtesy of @huonw, and directly taken from here: https://github.com/rust-lang/rust/pull/22348/files#diff-0f85fcb07fb739876892e633fa0e2be6R5575 Also thanks to @Manishearth for pointing it out to me.
2015-03-10get_attrs: use tcx.map.attrsPhilip Munksgaard-2/+1
This is more flexible and less error-prone. `get_attrs` can now be used on many more types of items.
2015-03-10with_attrs -> attrsPhilip Munksgaard-15/+12
We don't need to take a closure, instead just return the list of attributes.
2015-03-10Remove unneeded `saturating_add`Tobias Bucher-1/+4
2015-03-10rustdoc: get back 'plain summary line' in sidebarLiigo Zhuang-3/+4
this feature was broken by mistake some days ago: @2b11a80
2015-03-10Remove unneeded macro witcheryTobias Bucher-41/+40
2015-03-10Rollup merge of #23231 - killercup:patch-7, r=ManishearthManish Goregaokar-2/+2
Fixes #23230. I think these are the only places I need to update. r? @steveklabnik
2015-03-10Rollup merge of #23226 - pnkfelix:add-tests-for-some-feature-gates, ↵Manish Goregaokar-2/+142
r=alexcrichton Add tests checking that a number of feature gates are gating their features Namely: * `quote` * `link_args` * `link_llvm_intrinsics` * `thread_local` * `unsafe_destructor` Also updates test for `plugin_registrar` to make it clear that it is only testing the `plugin_registrar` feature gate. Cc #22820. (Latter is not fixed, since there are still a bunch more feature-gates that need tests. But I wanted to stop here and move on to something else.)
2015-03-10Rollup merge of #23195 - steveklabnik:gh19808, r=alexcrichtonManish Goregaokar-0/+7
Fixes #19808
2015-03-10Rollup merge of #23185 - steveklabnik:gh20051, r=alexcrichtonManish Goregaokar-8/+8
Fixes #20051
2015-03-10Rollup merge of #23125 - danburkert:master, r=brsonManish Goregaokar-0/+63
2015-03-10Rollup merge of #23105 - alexcrichton:rand-wrapping, r=brsonManish Goregaokar-121/+125
There was a buildbot failure recently of an arithmetic overflow in the isaac module of the rand crate, so I've imported the isaac implementation from out-of-tree which makes somewhat more liberal usage of the wrapping primitives. Hopefull this quelches any future overflow!
2015-03-10Rollup merge of #23201 - pnkfelix:fsk-struct-ooe-23112, r=nikomatsakisManish Goregaokar-26/+137
For FRU, eval field exprs (into scratch temps) before base expr Fix #23112.
2015-03-09rand: Use wrapping operations everywhereAlex Crichton-121/+125
There was a buildbot failure recently of an arithmetic overflow in the isaac module of the rand crate, so I've imported the isaac implementation from out-of-tree which makes somewhat more liberal usage of the wrapping primitives. Hopefull this quelches any future overflow!
2015-03-10Auto merge of #23186 - steveklabnik:gh14686, r=alexcrichtonbors-0/+7
Fixes #14686
2015-03-09Auto merge of #23038 - nikomatsakis:issue-22978-defaulted-coherence, r=flaper87bors-131/+299
Fixes #22978. r? @FlaPer87
2015-03-09Auto merge of #22561 - richo:as_slice-as_str, r=Manishearthbors-63/+63
This may not be quite ready to go out, I fixed some docs but suspect I missed a bunch. I also wound up fixing a bunch of redundant `[]` suffixes, but on closer inspection I don't believe that can land until after a snapshot.
2015-03-09Shrink table in the referenceSteve Klabnik-8/+8
Fixes #20051
2015-03-09Add note about pre/post increment to the design FAQ.Steve Klabnik-0/+7
Fixes #14686
2015-03-09Explain super in the crates guide.Steve Klabnik-0/+7
Fixes #19808
2015-03-09Rustdoc: Add Headline Style for `tymethod`Pascal Hertleif-2/+2
Fixes #23230
2015-03-09Address nit by @flaper87Niko Matsakis-1/+1
2015-03-09Auto merge of #21824 - sfackler:should_panic, r=alexcrichtonbors-128/+136
2015-03-09Add tests checking that a number of feature gates are gating their features.Felix S. Klock II-2/+142
Namely: * `quote` * `link_args` * `link_llvm_intrinsics` * `thread_local` * `unsafe_destructor` Also updates test for `plugin_registrar` to make it clear that it is only testing the `plugin_registrar` feature gate. Cc #22820.
2015-03-09Rename #[should_fail] to #[should_panic]Steven Fackler-128/+136
2015-03-09Auto merge of #23219 - Manishearth:rollup, r=Manishearthbors-31/+38
2015-03-09fix rmakeManish Goregaokar-1/+1
2015-03-09doc: Fix extraneous as_slice()'s in docstringsRicho Healey-24/+24
2015-03-09remove uses of as_slice where deref coercions can be usedRicho Healey-39/+39
2015-03-09For FRU, evaluate field expressions (into scratch temps) before base expression.Felix S. Klock II-26/+137
Fix #23112.
2015-03-09Auto merge of #23209 - richo:normalize-test-names, r=alexcrichtonbors-7/+1
Motivated by the test output not lining up when it could, I normalized all of the issue-* tests. While doing it, I found some lexer tests that could be unignored and fixed an int -> isize.
2015-03-09Rollup merge of #23203 - eLobato:patch-1, r=ManishearthManish Goregaokar-345/+925
A minor change to avoid making the reader think 'where is this'.
2015-03-09Rollup merge of #23202 - shepmaster:intro-threads-not-concurrent, r=steveklabnikManish Goregaokar-13/+13
If we end the `scoped` call with a semicolon, the `JoinGuard` will be dropped and not returned from the `map`. The thread will start up and we immediately block, making for a very expensive sequential loop.
2015-03-09Rollup merge of #23187 - steveklabnik:gh17481, r=ManishearthManish Goregaokar-4/+0
Fixes #17481
2015-03-09Rollup merge of #23183 - steveklabnik:gh22572, r=ManishearthManish Goregaokar-11/+3
They're opt-in now. Fixes #22572
2015-03-09Rollup merge of #23144 - FuGangqiang:doc_err, r=alexcrichtonManish Goregaokar-1/+1
in the [doc page](http://doc.rust-lang.org/std/num/index.html), `FromStrRadix::from_str_radix` is not quoted.
2015-03-09Rollup merge of #23210 - richo:rust-o, r=alexcrichtonManish Goregaokar-2/+21
rustc will ICE if you specify an outfile path that is bare without a directory. As a workaround, before this -o ./foo will work It wasn't clear to me where I could put a test that actually invokes rustc from a shell, although I think I can add doctests to that machinery in librustc_driver that will arrange for this to be called with arguments that would trigger the ICE
2015-03-09Rollup merge of #23209 - richo:normalize-test-names, r=alexcrichtonManish Goregaokar-7/+1
Motivated by the test output not lining up when it could, I normalized all of the issue-* tests. While doing it, I found some lexer tests that could be unignored and fixed an int -> isize.
2015-03-08normalize the current directory as Path{""}Richo Healey-1/+1