| Age | Commit message (Collapse) | Author | Lines |
|
|
|
|
|
|
|
Suggested here: http://stackoverflow.com/a/27962076/24817
|
|
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.
|
|
Fixes #21067.
|
|
Fixes #21184
|
|
small cleanup
r? @nikomatsakis
|
|
This outer attribute doesn't actually apply to anything is seems
to be incorrect in what it is saying.
|
|
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
|
|
...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?
|
|
Fixes #21080
r? @nikomatsakis
[breaking-change]
|
|
Tiny docfix to make the urls point to the canonical endpoint.
|
|
expansion now uses `::std::hash::Hash::hash(&*__self_0_0, __arg_0)` instead of
`(*__self_0_0).hash(__arg_0)`
closes #21160
r? @alexcrichton
|
|
Closes #21130
r? @Aatch
|
|
|
|
Fixes #21045
|
|
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.
|
|
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
|
|
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.
|
|
Just some documentation test examples for the DList collection.
|
|
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/
|
|
This PR updates `grammar/verify.rs` to work with master and handles the question mark of `?Sized` correctly (#15879).
|
|
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
|
|
Fixes #17224
|
|
Fixes for #20831 and #21010
r? @nick29581
|
|
Closes #21093.
r? @steveklabnik
cc @alexcrichton
I tested with `make check-docs` and this passes that. Hope that was enough.
|
|
r? @steveklabnik, I think?
|
|
Support UFCS style calls to a method defined in `Trait` where `Self` is bound to a trait object. Fixes #20676.
r? @alexcrichton
|
|
Only the most recent changes (since November 2014) get a special error.
Fixes #20599
|
|
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.
|
|
- 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.
|
|
Helps with mobile friendliness of The Rust Book #20850
|
|
closes #20575
|
|
Fixes #16072
r? @huonw
|
|
Allows modifiers to be used on methods, associated types, etc.
r? @sfackler
|
|
Fixes #17554
|
|
Fixes #20037.
|
|
Fixes #20471.
|
|
fixes #21027
|
|
Fixes #19067
|
|
Fixes #19924
|
|
Fixes #17368
|
|
Fixes #20840
|
|
Thank you @bluss for the suggested implementation.
Fixes #20844
|
|
Fixes #20852
|
|
Fixes #20876
|
|
Fixes #20914
|
|
Fixes #20993
|
|
Syntax and a few fixed bugs etc.
|