- 06 10月, 2014 1 次提交
-
-
由 Jakub Wieczorek 提交于
Fixes #17405. Fixes #17518. Fixes #17800.
-
- 05 10月, 2014 19 次提交
-
-
由 bors 提交于
Closes #17765. Closes #15524. Closes #14772.
-
由 bors 提交于
The escaped newline in the middle of the variable reference breaks the short hash substitution, leaving the link text exmpty; rewrap so that each replacement is on its own line.
-
由 bors 提交于
I'm not sure how to add an automated test for this.
-
由 bors 提交于
Update our LLVM snapshot to master (as of ~ Wed Oct 1 18:49:58 2014 +0000). Since my patches have landed upstream this fixes #13429 and #7298.
-
由 bors 提交于
Rust 0.11.0 switched from sundown to the actively maintained hoedown; update the rustdoc documention to mention this.
-
由 Keegan McAllister 提交于
-
由 Keegan McAllister 提交于
-
由 bors 提交于
Closes issue #17767
-
由 P1start 提交于
Closes #14772.
-
由 P1start 提交于
Closes #15524.
-
由 bors 提交于
The examples for fetch_or, fetch_and and fetch_xor for std::sync::atomic::AtomicInt used AtomicUint instead of AtomicInt.
-
由 P1start 提交于
Closes #17765.
-
由 bors 提交于
This fixes an ICE and closes issue #17758
-
由 bors 提交于
There is an issue with lev_distance, where ``` fn main() { println!("{}", "\x80".lev_distance("\x80")) } ``` prints `2`. This is due to using the byte length instead of the char length.
-
由 Brian Campbell 提交于
The escaped newline in the middle of the variable reference breaks the short hash substitution, leaving the link text exmpty; rewrap so that each replacement is on its own line.
-
由 bors 提交于
This is a quick fix. In the long term, the `TyVisitor` interface should be expanded to better represent closure types. Closes issue #17737
-
由 Brian Campbell 提交于
-
由 Luqman Aden 提交于
-
由 Brian Koropoff 提交于
Closes issue #17767
-
- 04 10月, 2014 20 次提交
-
-
由 bors 提交于
-
由 Björn Steinbrink 提交于
-
由 Peter Minten 提交于
The examples for fetch_or, fetch_and and fetch_xor for std::sync::atomic::AtomicInt used AtomicUint instead of AtomicInt.
-
由 bors 提交于
Hopefully unblocks a snapshot
-
由 Brian Koropoff 提交于
-
由 Brian Koropoff 提交于
This fixes an ICE. Closes issue #17758
-
由 bors 提交于
Hi, These are a few small edits to the Guide that I made while reading online. Really well done and approachable. I have a few questions below, but I don't know if this is the proper place to ask them, so feel free to ignore the below. 1. Trailing commas seem to be a convention in Rust and are used quite a bit throughout the Guide, but are never explicitly mentioned. Maybe adding a short mention about them when they first appear in the Structs section might be helpful to those who are unfamiliar with or don't use them in other languages. 2. In the Iterators section, there is a block of code like this: ```rust let mut range = range(0i, 10i); loop { match range.next() { Some(x) => { println!("{}", x); } // no comma needed? None => { break } } } ``` My inclination would be to put a comma where the comment is to separate the two arms to get this to compile, but it runs fine either way. Is there a convention on commas for scenarios like this where each arm is enclosed in `{}`? All the best, O-I
-
由 Brian Koropoff 提交于
-
由 bors 提交于
`v.len()` counts code units, not UTF-16 bytes. The lower bound is one UTF-8 byte per code unit, not per two code units. I believe this is correct, but it’s late. Someone please double check.
-
由 Brian Koropoff 提交于
This is a quick fix that prevents an ICE by mimicing the visitor glue for boxed closures and bare functions. Ideally, the `TyVisitor` interface will be improved in the future to allow representing more information about unboxed closures such as Fn/FnMut/FnOnce status, capture mode, and captured free variable types and offsets. Closes issue #17737
-
由 bors 提交于
This began as an attempt to fix an ICE in borrowck (issue #17655), but the rabbit hole went pretty deep. I ended up plumbing support for capture-by-reference unboxed closures all the way into trans. Closes issue #17655.
-
由 Alex Crichton 提交于
Hopefully unblocks a snapshot
-
由 bors 提交于
-
由 Rahul Horé 提交于
Oddly (to me), this code runs fine without the comma separating the `Some` and `None` arms of the `match` construct. It seems like Rust doesn't require you to separate arms with commas if all the expressions are enclosed in braces.
-
由 Simon Sapin 提交于
`v.len()` counts code units, not UTF-16 bytes. The lower bound is one UTF-8 byte per code unit, not per two code units.
-
由 Rahul Horé 提交于
-
由 Rahul Horé 提交于
-
由 Rahul Horé 提交于
-
由 bors 提交于
Trying to get a couple of these into the next snapshot.
-
由 Alex Crichton 提交于
-