]> git.lizzy.rs Git - rust.git/log
rust.git
9 years agorollup merge of #21191: Zoxc/lto
Alex Crichton [Thu, 15 Jan 2015 22:12:04 +0000 (14:12 -0800)]
rollup merge of #21191: Zoxc/lto

Fixes #21184

9 years agorollup merge of #21190: FlaPer87/remove_duplicated_func
Alex Crichton [Thu, 15 Jan 2015 22:12:03 +0000 (14:12 -0800)]
rollup merge of #21190: FlaPer87/remove_duplicated_func

small cleanup

r? @nikomatsakis

9 years agorollup merge of #21172: brson/tuple
Alex Crichton [Thu, 15 Jan 2015 22:12:03 +0000 (14:12 -0800)]
rollup merge of #21172: brson/tuple

This outer attribute doesn't actually apply to anything is seems
to be incorrect in what it is saying.

9 years agorollup merge of #21170: Diggsey/issue-21058
Alex Crichton [Thu, 15 Jan 2015 22:12:02 +0000 (14:12 -0800)]
rollup merge of #21170: Diggsey/issue-21058

While it's unstable and will probably be replaced or "reformed" at some point, it's useful in the mean time to be able to introspect the type system when debugging, and not be limited to sized types.

Fixes #21058

9 years agorollup merge of #21169: aidanhs/aphs-contributing-style-link
Alex Crichton [Thu, 15 Jan 2015 22:12:01 +0000 (14:12 -0800)]
rollup merge of #21169: aidanhs/aphs-contributing-style-link

9 years agorollup merge of #21168: aidanhs/aphs-doc-vec-heap
Alex Crichton [Thu, 15 Jan 2015 22:12:00 +0000 (14:12 -0800)]
rollup merge of #21168: aidanhs/aphs-doc-vec-heap

...to make it slightly clearer that there's not much point in boxing a vec.

On a different note, I read the contribution guidelines (https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#pull-request-procedure) which say I should update the copyright date for this file. But I can see that nobody else has done this so far this year, despite there being a fair number of commits.

Does that instruction need removing?

9 years agorollup merge of #21167: FlaPer87/coherence-impls
Alex Crichton [Thu, 15 Jan 2015 22:12:00 +0000 (14:12 -0800)]
rollup merge of #21167: FlaPer87/coherence-impls

Fixes #21080

r? @nikomatsakis

[breaking-change]

9 years agorollup merge of #21164: richo/doc/servo-link
Alex Crichton [Thu, 15 Jan 2015 22:11:59 +0000 (14:11 -0800)]
rollup merge of #21164: richo/doc/servo-link

Tiny docfix to make the urls point to the canonical endpoint.

9 years agorollup merge of #21161: japaric/ufcs-hash
Alex Crichton [Thu, 15 Jan 2015 22:11:58 +0000 (14:11 -0800)]
rollup merge of #21161: japaric/ufcs-hash

expansion now uses `::std::hash::Hash::hash(&*__self_0_0, __arg_0)` instead of
`(*__self_0_0).hash(__arg_0)`

closes #21160

r? @alexcrichton

9 years agorollup merge of #21156: nick29581/plugins-fix
Alex Crichton [Thu, 15 Jan 2015 22:11:57 +0000 (14:11 -0800)]
rollup merge of #21156: nick29581/plugins-fix

Closes #21130

r? @Aatch

9 years agorollup merge of #21151: brson/beta
Alex Crichton [Thu, 15 Jan 2015 22:11:56 +0000 (14:11 -0800)]
rollup merge of #21151: brson/beta

9 years agorollup merge of #21148: bombless/patch-1
Alex Crichton [Thu, 15 Jan 2015 22:11:55 +0000 (14:11 -0800)]
rollup merge of #21148: bombless/patch-1

9 years agorollup merge of #21144: nagisa/asm-str-fix
Alex Crichton [Thu, 15 Jan 2015 22:11:55 +0000 (14:11 -0800)]
rollup merge of #21144: nagisa/asm-str-fix

Fixes #21045

9 years agorollup merge of #21141: tcard/master
Alex Crichton [Thu, 15 Jan 2015 22:11:54 +0000 (14:11 -0800)]
rollup merge of #21141: tcard/master

Really small correction.

This anti-example in the Closures section is supposed to fail because of a borrow, but it was failing at the type inference because of insufficient type information.

This makes it fail for the expected reason.

9 years agorollup merge of #21133: iKevinY/mobile-rustdoc
Alex Crichton [Thu, 15 Jan 2015 22:11:53 +0000 (14:11 -0800)]
rollup merge of #21133: iKevinY/mobile-rustdoc

Just a couple of tweaks to improve the appearance of pages like [The Rust Reference](http://doc.rust-lang.org/reference.html) on mobile to advance the progress of #20850. Changing the viewport wasn't quite good enough to make it mobile-friendly, as large tables forced the page to become wider than the screen width. Using `overflow-x`, tables that are too large become horizontally scrollable instead of forcing the *entire page* to become horizontally scrollable.

Also, there was at least one case where an extremely long piece of inline code was wider than the actual width of the screen (`std::ptr::copy_nonoverlapping_memory`), so I changed `word-wrap` to allow inline code to break in the middle of words instead of only text within `pre` tags.

This isn't a change included in this PR, but rather something up for discussion. Currently, code blocks that contain long lines simply wrap onto the next line. What if rather than wrapping, they were horizontally scrollable instead? I'm not sure what the general preference is regarding this.

r? @steveklabnik

9 years agorollup merge of #21127: erickt/opt-stack
Alex Crichton [Thu, 15 Jan 2015 22:11:53 +0000 (14:11 -0800)]
rollup merge of #21127: erickt/opt-stack

libsyntax compiled without optimization uses a lot of stack, which can cause it to run out of stack space. This PR factors out some arm handlers from `print_expr` as well as converts `advance_left` into a loop. This helps to cut down on the stack usage.

9 years agorollup merge of #21126: sleepynate/dlist-examples
Alex Crichton [Thu, 15 Jan 2015 22:11:52 +0000 (14:11 -0800)]
rollup merge of #21126: sleepynate/dlist-examples

Just some documentation test examples for the DList collection.

9 years agorollup merge of #21124: steveklabnik/fix_redirect
Alex Crichton [Thu, 15 Jan 2015 22:11:52 +0000 (14:11 -0800)]
rollup merge of #21124: steveklabnik/fix_redirect

Why redirect Tutorial -> Guide -> Book when you can just Tutorial -> Book?

Suggested here: http://www.reddit.com/r/rust/comments/2schav/is_it_possible_to_automatically_redirect/

9 years agorollup merge of #21120: fhahn/issue-model-lexer-questionmark
Alex Crichton [Thu, 15 Jan 2015 22:11:50 +0000 (14:11 -0800)]
rollup merge of #21120: fhahn/issue-model-lexer-questionmark

This PR updates `grammar/verify.rs` to work with master and handles the question mark of `?Sized` correctly (#15879).

9 years agorollup merge of #21115: dotdash/iter_vec
Alex Crichton [Thu, 15 Jan 2015 22:11:50 +0000 (14:11 -0800)]
rollup merge of #21115: dotdash/iter_vec

There are two places left where we used to only know the byte
size of/offset into an array and had to cast to i8 and back to get the
right addresses. But by now, we always know the sizes in terms of the
number of elements in the array. In fact we have to add an extra Mul
instruction so we can use the weird cast-to-u8 code. So we should really
just embrace our new knowledge and use simple GEPs to do the address
calculations.

Fixes #3729

9 years agorollup merge of #21110: rohitjoshi/patch-1
Alex Crichton [Thu, 15 Jan 2015 22:11:48 +0000 (14:11 -0800)]
rollup merge of #21110: rohitjoshi/patch-1

When I submitted a PR #20326, mistakenly was committed using my work email. Correct the email address.

NOTE: Steve klabnik has updated  email address  in http://blog.rust-lang.org/2015/01/09/Rust-1.0-alpha.html

9 years agorollup merge of #21109: steveklabnik/gh17224
Alex Crichton [Thu, 15 Jan 2015 22:11:48 +0000 (14:11 -0800)]
rollup merge of #21109: steveklabnik/gh17224

Fixes #17224

9 years agorollup merge of #21107: nikomatsakis/assoc-type-ice-hunt-take-1
Alex Crichton [Thu, 15 Jan 2015 22:11:47 +0000 (14:11 -0800)]
rollup merge of #21107: nikomatsakis/assoc-type-ice-hunt-take-1

Fixes for #20831 and #21010

r? @nick29581

9 years agorollup merge of #21105: csouth3/kill-box-import
Alex Crichton [Thu, 15 Jan 2015 22:11:46 +0000 (14:11 -0800)]
rollup merge of #21105: csouth3/kill-box-import

Closes #21093.
r? @steveklabnik
cc @alexcrichton

I tested with `make check-docs` and this passes that.  Hope that was enough.

9 years agorollup merge of #21103: nagisa/result-typo
Alex Crichton [Thu, 15 Jan 2015 22:11:45 +0000 (14:11 -0800)]
rollup merge of #21103: nagisa/result-typo

r? @steveklabnik, I think?

9 years agorollup merge of #21089: nikomatsakis/issue-20676-invalid-vtable-for-object
Alex Crichton [Thu, 15 Jan 2015 22:11:45 +0000 (14:11 -0800)]
rollup merge of #21089: nikomatsakis/issue-20676-invalid-vtable-for-object

Support UFCS style calls to a method defined in `Trait` where `Self` is bound to a trait object. Fixes #20676.

r? @alexcrichton

9 years agorollup merge of #21088: aochagavia/obsolete
Alex Crichton [Thu, 15 Jan 2015 22:11:44 +0000 (14:11 -0800)]
rollup merge of #21088: aochagavia/obsolete

Only the most recent changes (since November 2014) get a special error.

Fixes #20599

9 years agorollup merge of #21085: pnkfelix/pp-flowgraph-kill-labels
Alex Crichton [Thu, 15 Jan 2015 22:11:42 +0000 (14:11 -0800)]
rollup merge of #21085: pnkfelix/pp-flowgraph-kill-labels

Add `--xpretty flowgraph,unlabelled` variant to the (unstable) flowgraph printing `rustc` option.

This makes the tests much easier to maintain; the particular details of the labels attached to exiting scopes is not worth the effort required to keep it up to date as things change in the compiler internals.

9 years agorollup merge of #21075: iKevinY/intro-changes
Alex Crichton [Thu, 15 Jan 2015 22:11:41 +0000 (14:11 -0800)]
rollup merge of #21075: iKevinY/intro-changes

- Make punctuation/formatting consistent with the changes made to *The Rust Programming Language* in #20782.
- Use title casing for "Safety and Speed" section.
- Reword some phrases to improve clarity.

9 years agorollup merge of #21071: sfaxon/mobile-friendly-book
Alex Crichton [Thu, 15 Jan 2015 22:11:40 +0000 (14:11 -0800)]
rollup merge of #21071: sfaxon/mobile-friendly-book

Helps with mobile friendliness of The Rust Book #20850

9 years agorollup merge of #21066: japaric/issue-20575
Alex Crichton [Thu, 15 Jan 2015 22:11:40 +0000 (14:11 -0800)]
rollup merge of #21066: japaric/issue-20575

closes #20575

9 years agorollup merge of #21059: steveklabnik/gh16072
Alex Crichton [Thu, 15 Jan 2015 22:11:40 +0000 (14:11 -0800)]
rollup merge of #21059: steveklabnik/gh16072

Fixes #16072

r? @huonw

9 years agorollup merge of #21054: steveklabnik/gh17950
Alex Crichton [Thu, 15 Jan 2015 22:11:39 +0000 (14:11 -0800)]
rollup merge of #21054: steveklabnik/gh17950

Fixes #17950

9 years agorollup merge of #21052: nick29581/methods-ext
Alex Crichton [Thu, 15 Jan 2015 22:11:39 +0000 (14:11 -0800)]
rollup merge of #21052: nick29581/methods-ext

Allows modifiers to be used on methods, associated types, etc.

r? @sfackler

9 years agorollup merge of #21046: steveklabnik/gh16654
Alex Crichton [Thu, 15 Jan 2015 22:11:38 +0000 (14:11 -0800)]
rollup merge of #21046: steveklabnik/gh16654

These should help out with the in-tree parts of #16654

9 years agorollup merge of #21041: steveklabnik/gh17554
Alex Crichton [Thu, 15 Jan 2015 22:11:37 +0000 (14:11 -0800)]
rollup merge of #21041: steveklabnik/gh17554

Fixes #17554

9 years agorollup merge of #21040: steveklabnik/gh20037
Alex Crichton [Thu, 15 Jan 2015 22:11:37 +0000 (14:11 -0800)]
rollup merge of #21040: steveklabnik/gh20037

Fixes #20037.

9 years agorollup merge of #21038: steveklabnik/gh20471
Alex Crichton [Thu, 15 Jan 2015 22:11:36 +0000 (14:11 -0800)]
rollup merge of #21038: steveklabnik/gh20471

Fixes #20471.

9 years agorollup merge of #21036: renato-zannon/into-iter-impls
Alex Crichton [Thu, 15 Jan 2015 22:11:36 +0000 (14:11 -0800)]
rollup merge of #21036: renato-zannon/into-iter-impls

fixes #21027

9 years agorollup merge of #21031: steveklabnik/gh19067
Alex Crichton [Thu, 15 Jan 2015 22:11:35 +0000 (14:11 -0800)]
rollup merge of #21031: steveklabnik/gh19067

Fixes #19067

9 years agorollup merge of #21029: steveklabnik/gh19924
Alex Crichton [Thu, 15 Jan 2015 22:11:35 +0000 (14:11 -0800)]
rollup merge of #21029: steveklabnik/gh19924

Fixes #19924

9 years agorollup merge of #21028: steveklabnik/gh17368
Alex Crichton [Thu, 15 Jan 2015 22:11:35 +0000 (14:11 -0800)]
rollup merge of #21028: steveklabnik/gh17368

Fixes #17368

9 years agorollup merge of #21023: steveklabnik/gh20840
Alex Crichton [Thu, 15 Jan 2015 22:11:34 +0000 (14:11 -0800)]
rollup merge of #21023: steveklabnik/gh20840

Fixes #20840

9 years agorollup merge of #21020: steveklabnik/gh20844
Alex Crichton [Thu, 15 Jan 2015 22:11:34 +0000 (14:11 -0800)]
rollup merge of #21020: steveklabnik/gh20844

Thank you @bluss for the suggested implementation.

Fixes #20844

9 years agorollup merge of #21015: steveklabnik/gh20852
Alex Crichton [Thu, 15 Jan 2015 22:11:33 +0000 (14:11 -0800)]
rollup merge of #21015: steveklabnik/gh20852

Fixes #20852

9 years agorollup merge of #21014: steveklabnik/gh20876
Alex Crichton [Thu, 15 Jan 2015 22:11:33 +0000 (14:11 -0800)]
rollup merge of #21014: steveklabnik/gh20876

Fixes #20876

9 years agorollup merge of #21013: steveklabnik/gh20914
Alex Crichton [Thu, 15 Jan 2015 22:11:33 +0000 (14:11 -0800)]
rollup merge of #21013: steveklabnik/gh20914

Fixes #20914

9 years agorollup merge of #21011: steveklabnik/gh20993
Alex Crichton [Thu, 15 Jan 2015 22:11:32 +0000 (14:11 -0800)]
rollup merge of #21011: steveklabnik/gh20993

Fixes #20993

9 years agorollup merge of #21005: huonw/deriving-docs
Alex Crichton [Thu, 15 Jan 2015 22:11:32 +0000 (14:11 -0800)]
rollup merge of #21005: huonw/deriving-docs

Syntax and a few fixed bugs etc.

9 years agorollup merge of #21001: camjackson/master
Alex Crichton [Thu, 15 Jan 2015 22:11:31 +0000 (14:11 -0800)]
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`

9 years agorollup merge of #20988: ciphergoth/task-to-thread
Alex Crichton [Thu, 15 Jan 2015 22:11:30 +0000 (14:11 -0800)]
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).

9 years agorollup merge of #20986: alkor/doc-fixes
Alex Crichton [Thu, 15 Jan 2015 22:11:29 +0000 (14:11 -0800)]
rollup merge of #20986: alkor/doc-fixes

Corrections in TRPL macros guide

9 years agorollup merge of #20985: vhbit/ios-install
Alex Crichton [Thu, 15 Jan 2015 22:11:29 +0000 (14:11 -0800)]
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

9 years agorollup merge of #20976: jbcrail/rm-unused-import
Alex Crichton [Thu, 15 Jan 2015 22:11:29 +0000 (14:11 -0800)]
rollup merge of #20976: jbcrail/rm-unused-import

The BorrowFrom trait was unused by the tests.

9 years agorollup merge of #20964: sfackler/recursion-syntax
Alex Crichton [Thu, 15 Jan 2015 22:11:28 +0000 (14:11 -0800)]
rollup merge of #20964: sfackler/recursion-syntax

9 years agorollup merge of #20929: laurilehmijoki/master
Alex Crichton [Thu, 15 Jan 2015 22:11:28 +0000 (14:11 -0800)]
rollup merge of #20929: laurilehmijoki/master

The sentence is easier to read once we move the word "again" away from the last position.

9 years agorollup merge of #20892: CarVac/master
Alex Crichton [Thu, 15 Jan 2015 22:11:28 +0000 (14:11 -0800)]
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`.

9 years agorollup merge of #20632: gchp/reference
Alex Crichton [Thu, 15 Jan 2015 22:11:27 +0000 (14:11 -0800)]
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`.

9 years agorollup merge of #20463: amaranth/black_box_output
Alex Crichton [Thu, 15 Jan 2015 22:11:27 +0000 (14:11 -0800)]
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.

9 years agoauto merge of #21077 : eddyb/rust/expr-qpath, r=nikomatsakis
bors [Thu, 15 Jan 2015 17:12:55 +0000 (17:12 +0000)]
auto merge of #21077 : eddyb/rust/expr-qpath, r=nikomatsakis

Working towards #16293, this adds support for `<T as Trait>::method` in expressions.

9 years agorustc: implement fully qualified UFCS expressions.
Eduard Burtescu [Thu, 15 Jan 2015 07:46:12 +0000 (09:46 +0200)]
rustc: implement fully qualified UFCS expressions.

9 years agosyntax: parse fully qualified UFCS expressions.
Eduard Burtescu [Tue, 13 Jan 2015 04:03:12 +0000 (06:03 +0200)]
syntax: parse fully qualified UFCS expressions.

9 years agosyntax: add fully qualified UFCS expressions.
Eduard Burtescu [Tue, 13 Jan 2015 04:02:56 +0000 (06:02 +0200)]
syntax: add fully qualified UFCS expressions.

9 years agoAdd explanation of main to rustdoc docs
Steve Klabnik [Mon, 12 Jan 2015 20:42:27 +0000 (15:42 -0500)]
Add explanation of main to rustdoc docs

Fixes #17554

9 years agoremove try_node_id_to_type in favor of node_id_to_type_opt
Flavio Percoco [Thu, 15 Jan 2015 10:59:13 +0000 (11:59 +0100)]
remove try_node_id_to_type in favor of node_id_to_type_opt

9 years agoauto merge of #20990 : estsauver/rust/playpen_20732, r=alexcrichton
bors [Thu, 15 Jan 2015 09:12:47 +0000 (09:12 +0000)]
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.

9 years agoDisable -C lto optimizations on opt_level=0
John Kåre Alsaker [Thu, 15 Jan 2015 08:22:27 +0000 (09:22 +0100)]
Disable -C lto optimizations on opt_level=0

Fixes #21184

9 years agoForbid impls for builtin traits on types that are not structs/enums
Flavio Percoco [Thu, 15 Jan 2015 00:40:33 +0000 (01:40 +0100)]
Forbid impls for builtin traits on types that are not structs/enums

9 years agoAllow get_tydesc intrinsic to accept unsized types
Diggory Blake [Thu, 15 Jan 2015 06:54:51 +0000 (06:54 +0000)]
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

9 years agoauto merge of #20980 : richo/rust/final-power, r=alexcrichton
bors [Thu, 15 Jan 2015 05:12:30 +0000 (05:12 +0000)]
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

9 years agoRemove erroneous stability attribute.
Brian Anderson [Thu, 15 Jan 2015 02:58:26 +0000 (18:58 -0800)]
Remove erroneous stability attribute.

This outer attribute doesn't actually apply to anything is seems
to be incorrect in what it is saying.

9 years agoauto merge of #20290 : jroesch/rust/generalize-impl-bounds, r=nikomatsakis
bors [Thu, 15 Jan 2015 01:42:25 +0000 (01:42 +0000)]
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

9 years agouse better span
Jorge Aparicio [Thu, 15 Jan 2015 01:03:17 +0000 (20:03 -0500)]
use better span

9 years agoMake link to style guide direct
Aidan Hobson Sayers [Thu, 15 Jan 2015 00:52:33 +0000 (00:52 +0000)]
Make link to style guide direct

9 years agoExplicitly note that vector contents are on the heap
Aidan Hobson Sayers [Thu, 15 Jan 2015 00:38:49 +0000 (00:38 +0000)]
Explicitly note that vector contents are on the heap

9 years agoDon't impl builtin traits on non structs/enums
Flavio Percoco [Thu, 15 Jan 2015 00:40:09 +0000 (01:40 +0100)]
Don't impl builtin traits on non structs/enums

9 years agofix unused import error
Jorge Aparicio [Thu, 15 Jan 2015 00:21:14 +0000 (19:21 -0500)]
fix unused import error

9 years agodoc: fix links to servo
Richo Healey [Thu, 15 Jan 2015 00:13:33 +0000 (16:13 -0800)]
doc: fix links to servo

9 years agouse UFCS in `#[deriving(Hash)]`
Jorge Aparicio [Wed, 14 Jan 2015 23:22:16 +0000 (18:22 -0500)]
use UFCS in `#[deriving(Hash)]`

expansion now uses `::std::hash::Hash::hash(&*__self_0_0, __arg_0)` instead of
`(*__self_0_0).hash(__arg_0)`

closes #21160

9 years agoRefactor compare_impl_method to use all bounds
Jared Roesch [Wed, 14 Jan 2015 21:43:17 +0000 (13:43 -0800)]
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).

9 years agoRevert "rustc_trans: Fix type projection debuginfo" -- it potentially papers over...
Niko Matsakis [Wed, 14 Jan 2015 17:44:21 +0000 (12:44 -0500)]
Revert "rustc_trans: Fix type projection debuginfo" -- it potentially papers over a lack
of normalization that should have taken place.

This reverts commit f7745a9be3eb2d9438f08b383156f0a33cbb0cdf.

9 years agoNormalize associated types in the type_is_newtype_immediate pass. Fixes #21010.
Niko Matsakis [Tue, 13 Jan 2015 21:03:07 +0000 (16:03 -0500)]
Normalize associated types in the type_is_newtype_immediate pass. Fixes #21010.

9 years agoFix propagation of the HAS_PROJECTION flag in object types. Fixes #20831 some more.
Niko Matsakis [Tue, 13 Jan 2015 19:49:10 +0000 (14:49 -0500)]
Fix propagation of the HAS_PROJECTION flag in object types. Fixes #20831 some more.

9 years agoFix Repr output so that it does not ICE when a self-type is
Niko Matsakis [Tue, 13 Jan 2015 19:01:27 +0000 (14:01 -0500)]
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).

9 years agoFix DeBruijn accounting. It used to be that all trait-refs were binders,
Niko Matsakis [Tue, 13 Jan 2015 19:00:59 +0000 (14:00 -0500)]
Fix DeBruijn accounting. It used to be that all trait-refs were binders,
but now only poly-trait-refs are binders. Fixes #20831.

9 years agoRemove old obsolete syntax tests
Adolfo Ochagavía [Tue, 13 Jan 2015 21:34:36 +0000 (22:34 +0100)]
Remove old obsolete syntax tests

9 years agoRemove old obsolete syntax errors
Adolfo Ochagavía [Sun, 11 Jan 2015 15:52:51 +0000 (16:52 +0100)]
Remove old obsolete syntax errors

9 years agoFix interaction of --no-analysis and --emit dep-info
Nick Cameron [Wed, 14 Jan 2015 20:30:34 +0000 (09:30 +1300)]
Fix interaction of --no-analysis and --emit dep-info

Closes #21130

9 years agoSyntax extensions on trait and impl items.
Nick Cameron [Tue, 2 Dec 2014 18:07:41 +0000 (10:07 -0800)]
Syntax extensions on trait and impl items.

Allows modifiers to be used on methods, associated types, etc.

9 years agomk: The beta channel produces things called 'beta'
Brian Anderson [Wed, 14 Jan 2015 18:32:42 +0000 (10:32 -0800)]
mk: The beta channel produces things called 'beta'

9 years agofix wrong link
York Xiang [Wed, 14 Jan 2015 17:11:28 +0000 (01:11 +0800)]
fix wrong link

9 years agoDisallow a form of invalid asm! macro
Simonas Kazlauskas [Wed, 14 Jan 2015 15:02:20 +0000 (17:02 +0200)]
Disallow a form of invalid asm! macro

Fixes #21045

9 years agoTRPL: Anti-example failing for the wrong reason.
Toni Cárdenas [Wed, 14 Jan 2015 14:24:41 +0000 (15:24 +0100)]
TRPL: Anti-example failing for the wrong reason.

Really small correction.

This anti-example in the Closures section is supposed to fail because of a borrow, but it was failing at the type inference because of insufficient type information.

This makes it fail for the expected reason.

9 years agoAdd examples for DList methods.
nathan dotz [Sun, 11 Jan 2015 22:02:51 +0000 (17:02 -0500)]
Add examples for DList methods.

9 years agoauto merge of #21082 : brson/rust/finally, r=alexcrichton
bors [Wed, 14 Jan 2015 12:19:58 +0000 (12:19 +0000)]
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

9 years agoauto merge of #21076 : sfackler/rust/bufferedreader-undef, r=Gankro
bors [Wed, 14 Jan 2015 09:52:08 +0000 (09:52 +0000)]
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

9 years agoImprove Rust Documentation & Reference on mobile
Kevin Yap [Wed, 14 Jan 2015 04:15:09 +0000 (20:15 -0800)]
Improve Rust Documentation & Reference on mobile

- Tables that are too wide for the screen scroll horizontally.
- Inline code that would force the page to become wider than the width
  of the screen is broken in the middle of the word.

9 years agoFix playpen links to not all be the same
Earl St Sauver [Mon, 12 Jan 2015 09:37:01 +0000 (01:37 -0800)]
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.

9 years agosyntax: factor out print_expr arms to reduce non-optimized stack usage
Erick Tryzelaar [Wed, 14 Jan 2015 05:16:56 +0000 (21:16 -0800)]
syntax: factor out print_expr arms to reduce non-optimized stack usage

9 years agosyntax: Rewrite pp advance_left to use a constant stack size
Erick Tryzelaar [Wed, 14 Jan 2015 05:14:56 +0000 (21:14 -0800)]
syntax: Rewrite pp advance_left to use a constant stack size