Commit Graph

36957 Commits

Author SHA1 Message Date
Alex Crichton
73149be578 rollup merge of #20985: vhbit/ios-install
It was broken as tried to copy dylibs which are actually never been
built for iOS

Fixes #20358
2015-01-15 14:11:29 -08:00
Alex Crichton
199d2ab0d8 rollup merge of #20976: jbcrail/rm-unused-import
The BorrowFrom trait was unused by the tests.
2015-01-15 14:11:29 -08:00
Alex Crichton
0ad0b0ee55 rollup merge of #20964: sfackler/recursion-syntax 2015-01-15 14:11:28 -08:00
Alex Crichton
eb94c357d0 rollup merge of #20929: laurilehmijoki/master
The sentence is easier to read once we move the word "again" away from the last position.
2015-01-15 14:11:28 -08:00
Alex Crichton
d3c5cf1b35 rollup merge of #20892: CarVac/master
`uint` was recently deprecated, so in following the use of `i32` in the first parts, replace all copies of `uint` with `u32`.
2015-01-15 14:11:28 -08:00
Alex Crichton
855c3e5af5 rollup merge of #20632: gchp/reference
I noticed that the `deriving` keyword is deprecated and that `derive` is the replacement. This updates the reference (and other docs) to remove the use `deriving`.
2015-01-15 14:11:27 -08:00
Alex Crichton
baee2049eb rollup merge of #20463: amaranth/black_box_output
By returning the passed value black_box can be used on data being
passed to a function being benchmarked. This ensures the compiler
does not optimize the function for the input which could result in
the entire function being optimized away.
2015-01-15 14:11:27 -08:00
bors
9ade482b3b auto merge of #21077 : eddyb/rust/expr-qpath, r=nikomatsakis
Working towards #16293, this adds support for `<T as Trait>::method` in expressions.
2015-01-15 17:12:55 +00:00
Eduard Burtescu
85ba8178e2 rustc: implement fully qualified UFCS expressions. 2015-01-15 18:51:15 +02:00
Eduard Burtescu
b51026e09c syntax: parse fully qualified UFCS expressions. 2015-01-15 18:51:14 +02:00
Eduard Burtescu
2cdc86c180 syntax: add fully qualified UFCS expressions. 2015-01-15 18:51:14 +02:00
bors
1c78ad937b auto merge of #20990 : estsauver/rust/playpen_20732, r=alexcrichton
In #20732, that all links in some modules point to the same code
examples was reported. The ID's generated for documents in
librustdoc are not all unique, which means the code rendered as
text is not being properly selected.

This change makes the link to the code section that is next to
the current link.
2015-01-15 09:12:47 +00:00
bors
0c96037ec1 auto merge of #20980 : richo/rust/final-power, r=alexcrichton
Originally, this was going to be discussed and revisted, however I've been working on this for months, and a rebase on top of master was about 1 flight's worth of work so I just went ahead and did it.

This gets you as far as being able to target powerpc with, eg:

    LD_LIBRARY_PATH=./x86_64-unknown-linux-gnu/stage2/lib/ x86_64-unknown-linux-gnu/stage2/bin/rustc -C linker=powerpc-linux-gnu-gcc --target powerpc-unknown-linux-gnu hello.rs

Would really love to get this out before 1.0. r? @alexcrichton
2015-01-15 05:12:30 +00:00
bors
451e134c18 auto merge of #20290 : jroesch/rust/generalize-impl-bounds, r=nikomatsakis
This should fix both #20020 and #20107. This moves out the code into its own file.

I have a couple concerns that can either be addressed in this PR or in a future one.

- The error reporting for the fulfillment context should be span aware because currently it is attached to the top
  of the file which is less then desirable.
- There is a failure in the test file: run-pass/issue-2611-3.rs, this seems like it should be a failure to me, but I am not sure.

As a nit I'm not enthused about the file name, and am open to better suggestions. 

r? @nikomatsakis
2015-01-15 01:42:25 +00:00
Jared Roesch
6a66b32270 Refactor compare_impl_method to use all bounds
Refactor compare_impl_method into its own file. Modify the
code to stop comparing individual parameter bounds.
Instead we now use the predicates list attached to the trait
and implementation generics. This ensures consistency even
when bounds are declared in different places (i.e on
a parameter vs. in a where clause).
2015-01-14 13:43:17 -08:00
bors
896cb36eca auto merge of #21082 : brson/rust/finally, r=alexcrichton
No in-tree users. Ugly interface. Closes #14332.

I just happened to notice that this module still lives and has no users. Assuming we don't want it.

r? @aturon cc @alexcrichton
2015-01-14 12:19:58 +00:00
bors
d52398ef8c auto merge of #21076 : sfackler/rust/bufferedreader-undef, r=Gankro
It's passed to the underlying reader, so uninitialized memory == sad
times.

We might want to shrink the default buffer size as well. 64k is pretty
huge. Java uses 8k by default, and Go uses 4k for reference.

r? @alexcrichton
2015-01-14 09:52:08 +00:00
Earl St Sauver
2a320f21d0 Fix playpen links to not all be the same
Fixes #20732, that all links in some modules point to the same code
examples was reported. The ID's generated for documents in
librustdoc are not all unique, which means the code rendered as
text is not being properly selected.

This change removes the unique id generation and instead changes the
frontend code to grab the correct code sample by it's relative
position in the dom.
2015-01-13 22:25:11 -08:00
bors
3614e1de6c auto merge of #21061 : japaric/rust/range, r=nick29581 2015-01-14 04:42:01 +00:00
Richo Healey
78278d0c76 Bump to ensure llvm is rebuilt 2015-01-13 19:03:31 -08:00
Richo Healey
4ab2c47ce6 Clean up conditions for clobbers 2015-01-13 19:01:37 -08:00
Richo Healey
c51379386c Generalise pointer width tests using pointer_width 2015-01-13 18:59:45 -08:00
bors
170c4399e6 auto merge of #21018 : tomjakubowski/rust/rustdoc-where-xcrate, r=alexcrichton
Various fixes for `rustdoc`, including showing where clauses
finally on re-exported items.
2015-01-14 00:41:55 +00:00
Brian Anderson
f0fe4bb114 Address feedback 2015-01-13 15:44:33 -08:00
bors
c366e433c1 auto merge of #20957 : Ms2ger/rust/closures, r=alexcrichton
Returning the vectors directly makes the code a lot cleaner.
2015-01-13 21:29:00 +00:00
bors
4fd1e6235d auto merge of #20367 : retep998/rust/master, r=alexcrichton
Also adjusted some of the FFI definitions because apparently they don't use the long pointer prefix.
Gives a free performance boost because `SRWLock` is several times faster than `CriticalRegion` on every Windows system tested.
Fixes #19962
2015-01-13 19:11:47 +00:00
bors
e94a9f033e auto merge of #20997 : nikomatsakis/rust/assoc-types-enum-field-access, r=nick29581
Various fixes to enum field access. Builds on PR #20955.

r? @nick29581
2015-01-13 14:21:39 +00:00
Greg Chapple
4b14f67df3 Replace usage of deriving with derive in docs 2015-01-13 13:57:09 +00:00
bors
6ba9acd8ab auto merge of #20963 : nick29581/rust/ast_map, r=eddyb 2015-01-13 11:56:31 +00:00
Travis Watkins
9f5fc563d3 Fix test failures 2015-01-13 05:43:30 -06:00
Ms2ger
756466bfd0 Rewrite each_attr to return a vector. 2015-01-13 10:41:56 +01:00
Ms2ger
27db3f0585 Return the Vec from csearch::get_item_attrs.
Using a closure unnecessarily obfuscates the code.
2015-01-13 10:28:06 +01:00
Ms2ger
56f3554f52 Return the Vec from decoder::get_item_attrs.
Using a closure unnecessarily obfuscates the code.
2015-01-13 10:28:06 +01:00
bors
f1241f14dc auto merge of #20960 : erickt/rust/fix-associated-types-debuginfo, r=michaelwoerister
Closes #20797
2015-01-13 09:06:35 +00:00
Brian Anderson
e46620af45 std: Deprecate finally module
No in-tree users. Ugly interface. Closes #14332.
2015-01-13 00:59:30 -08:00
Travis Watkins
2cc81ac531 Return passed value from black_box
By returning the passed value black_box can be used on data being
passed to a function being benchmarked. This ensures the compiler
does not optimize the function for the input which could result in
the entire function being optimized away.
2015-01-13 01:29:01 -06:00
bors
4fc9b41238 auto merge of #20955 : nikomatsakis/rust/assoc-types-struct-field-access, r=nick29581
Normalize the types of fields we project out of a struct or tuple struct.
Fixes #20954.

r? @nick29581
2015-01-13 05:01:34 +00:00
Steven Fackler
89f1848b55 Initialize memory for BufferedReader buffer
It's passed to the underlying reader, so uninitialized memory == sad
times.

We might want to shrink the default buffer size as well. 64k is pretty
huge. Java uses 8k by default, and Go uses 4k for reference.
2015-01-12 19:50:33 -08:00
Peter Atashian
ee1ca88213 Change Mutex to use SRWLock on Windows.
Signed-off-by: Peter Atashian <retep998@gmail.com>
2015-01-12 21:35:39 -05:00
bors
3d5fbae338 auto merge of #20944 : brson/rust/weve-met-with-a-terrible-fate-havent-we, r=brson
Closes #13871
2015-01-13 01:08:03 +00:00
Jorge Aparicio
c1d48a8508 cleanup: &foo[0..a] -> &foo[..a] 2015-01-12 17:59:37 -05:00
bors
3d0d9bb6fb auto merge of #20896 : sfackler/rust/atomic-rename, r=alexcrichton
Change any use of AtomicInt to AtomicIsize and AtomicUint to AtomicUsize

Closes #20893

[breaking-change]
2015-01-12 22:56:20 +00:00
Nick Cameron
bc3a330abb Some random things 2015-01-13 09:15:59 +13:00
Nick Cameron
22a059ddd1 Add view items to the ast map 2015-01-13 09:15:59 +13:00
bors
3a44a19af2 auto merge of #20894 : swgillespie/rust/emacs-issue-20422, r=pnkfelix
rust-mode.el recently started highlighting keywords that were substrings of identifiers. Identifiers such as `xyz_type` would have `type` highlighted, which isn't normal. This patch re-introduces `_` as a word constituent, so that keywords following a `_` don't get syntax highlighted as keywords. Fixes issue #20422
2015-01-12 19:20:56 +00:00
Tom Jakubowski
616db5a501 rustdoc: Show type bindings on object types
Fix #20299
2015-01-12 09:43:24 -08:00
Lauri Lehmijoki
eabf208285 Ease parsing of an English sentence 2015-01-12 19:42:52 +02:00
Tom Jakubowski
072a89642b rustdoc: Remove traces of old closures 2015-01-12 09:25:20 -08:00
Tom Jakubowski
8a69d35e1e rustdoc: Fix where clauses on re-exports
Projection predicates on re-exports, for the time being, are rendered as
equality predicates because that's easier. It would be nice to fix this
in the future.

Some gymnastics were needed to remove redundant bounds from the `types`
and `lifetimes` fields, remove implicit `Sized` bounds, and re-create
`?Sized` bounds.

Fix #20203, fix #20924, fix #20911, fix #20534
2015-01-12 09:25:07 -08:00
bors
055cc2ee74 auto merge of #20789 : nikomatsakis/rust/issue-20765-normalize-where-clause, r=nrc
Normalize bounds that we extract from where clauses. Fixes #20765.

r? @nick29581 
cc @jroesch
2015-01-12 15:10:38 +00:00