Commit Graph

37144 Commits

Author SHA1 Message Date
Alex Crichton
8d0b937964 rollup merge of #21029: steveklabnik/gh19924
Fixes #19924
2015-01-15 14:11:35 -08:00
Alex Crichton
b8751b8410 rollup merge of #21028: steveklabnik/gh17368
Fixes #17368
2015-01-15 14:11:35 -08:00
Alex Crichton
cfbf313282 rollup merge of #21023: steveklabnik/gh20840
Fixes #20840
2015-01-15 14:11:34 -08:00
Alex Crichton
6155ce53b6 rollup merge of #21020: steveklabnik/gh20844
Thank you @bluss for the suggested implementation.

Fixes #20844
2015-01-15 14:11:34 -08:00
Alex Crichton
e06863ef64 rollup merge of #21015: steveklabnik/gh20852
Fixes #20852
2015-01-15 14:11:33 -08:00
Alex Crichton
ff9ae8815b rollup merge of #21014: steveklabnik/gh20876
Fixes #20876
2015-01-15 14:11:33 -08:00
Alex Crichton
c6a9877039 rollup merge of #21013: steveklabnik/gh20914
Fixes #20914
2015-01-15 14:11:33 -08:00
Alex Crichton
73660a11c9 rollup merge of #21011: steveklabnik/gh20993
Fixes #20993
2015-01-15 14:11:32 -08:00
Alex Crichton
9a77e0fb80 rollup merge of #21005: huonw/deriving-docs
Syntax and a few fixed bugs etc.
2015-01-15 14:11:32 -08:00
Alex Crichton
dbbe506c10 rollup merge of #21001: camjackson/master
With the code samples as they are, the compiler says:
`feature has been added to Rust, directive not necessary`
2015-01-15 14:11:31 -08:00
Alex Crichton
c478c6ac91 rollup merge of #20988: ciphergoth/task-to-thread
"Tasks" are no longer a thing in Rust; refer to threads instead. Work is still needed on [threads.md](threads.md).
2015-01-15 14:11:30 -08:00
Alex Crichton
37d20f256a rollup merge of #20986: alkor/doc-fixes
Corrections in TRPL macros guide
2015-01-15 14:11:29 -08:00
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
Steve Klabnik
fd603cd263 Clarify function return style.
Suggested here: http://stackoverflow.com/a/27962076/24817
2015-01-15 14:47:21 -05: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
Björn Steinbrink
b75cee8425 Avoid unnecessary closures when deriving RustcDecodable
Currently, we build a closure that does nothing but pass its argument
through to another function, this is rather wasteful and creates lots of
unnecessary closures.
2015-01-15 16:59:51 +01:00
Andrew Paseltiner
716effa349 support deriving Hash for nullary structs
fixes #16530
2015-01-15 10:16:44 -05:00
Steve Klabnik
462dd64716 Add explanation of main to rustdoc docs
Fixes #17554
2015-01-15 09:58:58 -05:00
Michael Woerister
45c6423cbc debuginfo: Fix ICE when compiling for-loops with lines-tables-only. 2015-01-15 15:22:56 +01:00
Flavio Percoco
f99d43ecc0 remove try_node_id_to_type in favor of node_id_to_type_opt 2015-01-15 11:59:13 +01: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
John Kåre Alsaker
2c71adaaa2 Disable -C lto optimizations on opt_level=0
Fixes #21184
2015-01-15 09:22:27 +01:00
Flavio Percoco
de7b3cf02e Forbid impls for builtin traits on types that are not structs/enums 2015-01-15 08:53:37 +01:00
Diggory Blake
81c5fd8e1f Allow get_tydesc intrinsic to accept unsized types
Fix tabs

Added missing ty_str cases when generating type descriptions

Reduce code duplication and improve test
2015-01-15 06:54:51 +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
Nick Cameron
33fd10d5e0 save-analysis: fix declid of methods 2015-01-15 16:53:29 +13:00
Brian Anderson
e5ad89d176 Remove erroneous stability attribute.
This outer attribute doesn't actually apply to anything is seems
to be incorrect in what it is saying.
2015-01-14 18:58:26 -08: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
Jorge Aparicio
28b0d4029e use better span 2015-01-14 20:03:17 -05:00
Aidan Hobson Sayers
9002fdbc50 Make link to style guide direct 2015-01-15 00:52:33 +00:00
Aidan Hobson Sayers
e6f7f23a6f Explicitly note that vector contents are on the heap 2015-01-15 00:50:56 +00:00
Flavio Percoco
a7025582cc Don't impl builtin traits on non structs/enums 2015-01-15 01:42:31 +01:00
Jorge Aparicio
86948adfde fix unused import error 2015-01-14 19:22:49 -05:00
Richo Healey
5e646755f4 doc: fix links to servo 2015-01-14 16:13:58 -08:00
Jorge Aparicio
59e9cfa0cf use UFCS in #[deriving(Hash)]
expansion now uses `::std:#️⃣:Hash::hash(&*__self_0_0, __arg_0)` instead of
`(*__self_0_0).hash(__arg_0)`

closes #21160
2015-01-14 18:41:27 -05: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
Niko Matsakis
2479dfcbf7 Revert "rustc_trans: Fix type projection debuginfo" -- it potentially papers over a lack
of normalization that should have taken place.

This reverts commit f7745a9be3.
2015-01-14 16:35:14 -05:00
Niko Matsakis
2868404fca Normalize associated types in the type_is_newtype_immediate pass. Fixes #21010. 2015-01-14 16:35:14 -05:00
Niko Matsakis
ff6085f401 Fix propagation of the HAS_PROJECTION flag in object types. Fixes #20831 some more. 2015-01-14 16:35:14 -05:00
Niko Matsakis
b92ec6a78a Fix Repr output so that it does not ICE when a self-type is
absent. This occurs while printing object type projections for
debugging (note that the `UserString` impl is much more careful about
this).
2015-01-14 16:35:14 -05:00
Niko Matsakis
02aacaba8f Fix DeBruijn accounting. It used to be that all trait-refs were binders,
but now only poly-trait-refs are binders. Fixes #20831.
2015-01-14 16:35:14 -05:00