- 29 3月, 2017 25 次提交
-
-
由 bors 提交于
On-demandify the typechecking of item bodies r? @nikomatsakis
-
由 bors 提交于
Replace hoedown with pull in rustdoc cc @rust-lang/docs
-
由 bors 提交于
Rollup of 5 pull requests - Successful merges: #40682, #40731, #40783, #40838, #40864 - Failed merges:
-
由 Taylor Cramer 提交于
-
由 Corey Farwell 提交于
Update various book modules This includes an important fix for rustc contributors in https://github.com/rust-lang/book/pull/571 I'm going to update the other ones as well here while we're at it; no need to spam PRs. r? @nrc
-
由 Corey Farwell 提交于
Improve std::net docs Fixes #29363 Summary: * Added a _lot_ of missing links, both to other types/methods and to IETF RFCs, and changed occurences of just "RFC" to "IETF RFC" * Expanded a bunch of top-level docs, specifically the module docs & the docs for `TcpListener`, `TcpStream`, `UdpSocket`, `IpAddr`, `Ipv4Addr`, `Ipv6Addr`, `SocketAddr`, `SocketAddrV4`, `SocketAddrV6`, * Expanded method docs for `SocketAddrV6`, `AddrParseError`, * Various edits for clarity, consistency, and accuracy See the commit descriptions for more detail. Things not done quite as laid out in the task list in #29363: * `AddrParseError` still doesn't have examples, but I wasn't quite sure how to do them; other `FromStr` error types don't have any, either * I didn't link to an IETF RFC in `IpAddr`, but in `Ipv4Addr` and `Ipv6Addr` and linked tho those from `IpAddr`; this seems more appropriate to me * Similarly, I didn't really exand `SocketAddr`'s docs, but elaborated on `SocketAddrV4` and `SocketAddrV6`'s and linked to them from `SocketAddr` Theres definitely still room for improvement, but this should be a good first effort
😄 -
由 Corey Farwell 提交于
Document Cursor::new position is 0 ... even if contained `Vec` is not empty. E. g. for ``` let v = vec![10u8, 20]; let mut c = io::Cursor::new(v); c.write_all(b"aaaa").unwrap(); println!("{:?}", c.into_inner()); ``` result is ``` [97, 97, 97, 97] ``` and not ``` [10, 20, 97, 97, 97, 97] ```
-
由 Corey Farwell 提交于
Specialize Vec::from_iter for vec::IntoIter It's fairly common to expose an API which takes an `IntoIterator` and immediately collects that into a vector. It's also common to buffer a bunch of items into a vector and then pass that into one of these APIs. If the iterator hasn't been advanced, we can make this `from_iter` simply reassemble the original `Vec` with no actual iteration or reallocation. r? @aturon
-
由 Corey Farwell 提交于
Update docs for std::str fixes #29375 I noticed there are docs for the `str` primitive type, which contained extensive examples, so my additions give a more general explanation of `&str`. But please let me know if something can be explained more or changed. r? @steveklabnik
-
由 bors 提交于
store a copy of the Issue32230 info within TypeError The data can't be looked up from the region variable directly, because the region variable might have been destroyed at the end of a snapshot. Fixes #40000. Fixes #40743. beta-nominating because regression. r? @nikomatsakis
-
由 bors 提交于
Rollup of 19 pull requests - Successful merges: #40317, #40516, #40524, #40606, #40683, #40751, #40778, #40813, #40818, #40819, #40824, #40828, #40832, #40833, #40837, #40849, #40852, #40853, #40865 - Failed merges:
-
由 Guillaume Gomez 提交于
-
由 Guillaume Gomez 提交于
-
由 Guillaume Gomez 提交于
-
由 Guillaume Gomez 提交于
-
由 Guillaume Gomez 提交于
-
由 Guillaume Gomez 提交于
-
由 Guillaume Gomez 提交于
-
由 Guillaume Gomez 提交于
-
由 Guillaume Gomez 提交于
-
由 Guillaume Gomez 提交于
-
由 Guillaume Gomez 提交于
-
由 Guillaume Gomez 提交于
-
由 Guillaume Gomez 提交于
-
由 Guillaume Gomez 提交于
-
- 28 3月, 2017 15 次提交
-
-
由 Alex Crichton 提交于
appveyor: Downgrade MinGW to 6.2.0 It looks like the 6.3.0 MinGW comes with a gdb which has issues (#40184) that an attempted workaround (#40777) does not actually fix (#40835). The original motivation for upgradin MinGW was to fix build flakiness (#40546) due to newer builds not exhibiting the same bug, so let's hope that 6.2.0 isn't too far back in time and still contains the fix we need. Closes #40835
-
由 Alex Crichton 提交于
Fix broken Markdown and bad links in the error index This makes sure RFC links point to the RFC text not the pull request. r? @steveklabnik
-
由 Alex Crichton 提交于
rustbuild: Fix compiler docs again The docs need to be built with the rustbuild feature so the correct stability attributes (rustc_private) get applied. r? @alexcrichton
-
由 Alex Crichton 提交于
bugfix: finalize resolutions of macros in trait positions Fixes #40845. r? @nrc
-
由 Alex Crichton 提交于
change string references in asciiext
-
由 Alex Crichton 提交于
Fix typo in char::to_uppercase documentation Original documentation appears to have been copied from `char::to_lowercase` in a manner that made it imply that `char::to_uppercase` actually mapped unicode characters to their **lowercase** equivalent.
-
由 Alex Crichton 提交于
libcore: fix compilation on 16bit target (MSP430). Since PR #40601 has been merged, libcore no longer compiles on MSP430. The reason is this code in `break_patterns`: ```rust let mut random = len; random ^= random << 13; random ^= random >> 17; random ^= random << 5; random &= modulus - 1; ``` It assumes that `len` is at least a 32 bit integer. As a workaround replace `break_patterns` with an empty function for 16bit targets. cc @stjepang cc @alexcrichton
-
由 Alex Crichton 提交于
rustdoc to accept `#` at the start of a markdown file #40560 This may be a bit odd if `#` and `%` lines are mixed up, but that's not something I've found while doing my search and replace.
-
由 Alex Crichton 提交于
FromStr implementation example Referencing #29375. Added example implementation of FromStr trait to API Documentation
-
由 Alex Crichton 提交于
Link ParseBoolError to from_str method of bool Referencing task in #29375. Sorry for not opening another branch on my fork for this. Was working on this early this morning and forgot to branch off master
-
由 Alex Crichton 提交于
Don't stutter in operator trait descriptions Fixes first item on #29365. r? @steveklabnik
-
由 Alex Crichton 提交于
macros: fix ICE on some nested macro definitions Fixes #40770. r? @nrc
-
由 Alex Crichton 提交于
Update cargo submodule I'm not really sure what we want the cadence here to be. We'll at the very least update the Cargo submodule right before all releases, but otherwise I figured we could just do it whenever needed or otherwise weekly (or something like that). In any case, I don't have a super strong particular reason to do this, it's just been a week or so since the release!
-
由 Alex Crichton 提交于
save-analysis: allow clients to get data directly without writing to a file.
-
由 Alex Crichton 提交于
on-demand-ify `custom_coerce_unsized_kind` and `inherent-impls` This "on-demand" task both checks for errors and computes the custom unsized kind, if any. This task is only defined on impls of `CoerceUnsized`; invoking it on any other kind of impl results in a bug. This is just to avoid having an `Option`, could easily be changed. r? @EddyB
-