about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2016-07-14libfmt_macros: resolve all implicit refs while parsingWang Xuerui-11/+46
2016-07-13Auto merge of #34752 - ollie27:rustdoc_search, r=GuillaumeGomezbors-46/+80
rustdoc: Fix methods in seach results Currently methods from extern crates are sometimes added to the search index when they shouldn't be or added with the original path rather than the reexported path. This fixes that by making sure `cache().paths` only contains local paths like the description for it states. It also fixes a few minor issues with link rendering and redirect generation which would point to local crate docs even if the docs for that crate hadn't been generated. Also a bug with methods implemented on traits which caused wrong paths and so dead links in the search results has been fixed. For example: [before](https://doc.rust-lang.org/nightly/std/?search=is_disjoint) [after](https://ollie27.github.io/rust_doc_test/std/?search=is_disjoint) [before](https://doc.rust-lang.org/nightly/std/?search=map_or) [after](https://ollie27.github.io/rust_doc_test/std/?search=map_or) [before](https://doc.rust-lang.org/nightly/std/?search=unsafecell%3A%3Anew) [after](https://ollie27.github.io/rust_doc_test/std/?search=unsafecell%3A%3Anew) [before](https://doc.rust-lang.org/nightly/std/?search=rng%3A%3Agen_) [after](https://ollie27.github.io/rust_doc_test/std/?search=rng%3A%3Agen_) [before](https://doc.rust-lang.org/nightly/std/?search=downcast_ref) [after](https://ollie27.github.io/rust_doc_test/std/?search=downcast_ref) Fixes #20246
2016-07-13Auto merge of #34608 - apasel422:ll, r=blussbors-352/+283
Replace `LinkedList`'s use of `Box` with `Shared` Closes #34417
2016-07-13Auto merge of #34660 - jseyfried:fix_parse_stmt, r=nrcbors-119/+125
Fix bugs in macro-expanded statement parsing Fixes #34543. This is a [breaking-change]. For example, the following would break: ```rust macro_rules! m { () => { println!("") println!("") //^ Semicolons are now required on macro-expanded non-braced macro invocations //| in statement positions. let x = 0 //^ Semicolons are now required on macro-expanded `let` statements //| that are followed by more statements, so this would break. let y = 0 //< (this would still be allowed to reduce breakage in the wild) } fn main() { m!() } ``` r? @eddyb
2016-07-12Auto merge of #34756 - habnabit:mutex-refunwindsafe, r=alexcrichtonbors-0/+7
Mutex and RwLock need RefUnwindSafe too Incomplete, because I don't know what the appropriate stability annotation is here, but this is an attempt to bring the documentation for `std::panic` in line with reality. Right now, it says: >Types like `&Mutex<T>`, however, are unwind safe because they implement poisoning by default. But only `Mutex<T>`, not `&Mutex<T>`, is unwind-safe.
2016-07-13Start a best-effort warning cycle.Jeffrey Seyfried-6/+59
2016-07-13cleanup: Refactor parser method `finish_parsing_statement` -> `parse_full_stmt`.Jeffrey Seyfried-13/+13
2016-07-13Allow macro-expanded macros in trailing expression positions to expand into ↵Jeffrey Seyfried-2/+3
statements: ```rust macro_rules! m { () => { let x = 1; x } } macro_rules! n { () => { m!() //< This can now expand into statements }} fn main() { n!(); } ``` and revert needless fallout fixes.
2016-07-13Fix bug in the pretty printer.Jeffrey Seyfried-3/+2
2016-07-12Auto merge of #34739 - therealbstern:ipv4unspec, r=alexcrichtonbors-0/+4
Mark Ipv4Addr is_unspecified as stable and provide reference. Per [#27709 (comment)](https://github.com/rust-lang/rust/issues/27709#issuecomment-231280999), no RFC is needed here. IPv4 "unspecified" has been defined in [Stevens], and has been part of the IPv4 stack for quite some time. This property should become stable, since this use of 0.0.0.0 is not going anywhere. [Stevens][_UNIX Network Programming Volume 1, Second Edition_. Stevens, W. Richard. Prentice-Hall, 1998. p. 891] Please let me know if I got the rustdoc wrong or something. I tried to be as terse as possible while still conveying the appropriate information. This also has a slight impact on PR #34694, but that one came first, so this shouldn't block it, IMO.
2016-07-12Auto merge of #34705 - alexcrichton:clean-deprecated, r=brsonbors-770/+234
std: Clean out deprecated APIs This primarily removes a lot of `sync::Static*` APIs and rejiggers the associated implementations. While doing this it was discovered that the `is_poisoned` method can actually result in a data race for the Mutex/RwLock primitives, so the inner `Cell<bool>` was changed to an `AtomicBool` to prevent the associated data race. Otherwise the usage/gurantees should be the same they were before.
2016-07-12std: Clean out deprecated APIsAlex Crichton-770/+234
This primarily removes a lot of `sync::Static*` APIs and rejiggers the associated implementations. While doing this it was discovered that the `is_poisoned` method can actually result in a data race for the Mutex/RwLock primitives, so the inner `Cell<bool>` was changed to an `AtomicBool` to prevent the associated data race. Otherwise the usage/gurantees should be the same they were before.
2016-07-12Auto merge of #34757 - sourcefrog:debug-filetype, r=alexcrichtonbors-3/+3
Derive Debug on FileType. Partially fixes #32054
2016-07-12rustdoc: Fix methods in seach resultsOliver Middleton-46/+80
Currently methods from extern crates are sometimes added to the search index when they shouldn't be or added with the original path rather than the reexported path. This fixes that by making sure `cache().paths` only contains local paths like the description for it states. It also fixes a few minor issues with link rendering and redirect generation which would point to local crate docs even if the docs for that crate hadn't been generated. Also a bug with methods implemented on traits which caused wrong paths and so dead links in the search results has been fixed.
2016-07-12Auto merge of #34778 - GuillaumeGomez:rollup, r=GuillaumeGomezbors-19/+357
Rollup of 7 pull requests - Successful merges: #34736, #34737, #34740, #34742, #34749, #34750, #34770 - Failed merges: #33951
2016-07-12Rollup merge of #34770 - davidko:patch-1, r=steveklabnikGuillaume Gomez-2/+2
Fixed some typos I believe these are typos?
2016-07-12Rollup merge of #34750 - GuillaumeGomez:error_doc, r=steveklabnikGuillaume Gomez-0/+70
Add examples for std::Error module Fixes #29352. r? @steveklabnik
2016-07-12Rollup merge of #34749 - GuillaumeGomez:any_doc, r=steveklabnikGuillaume Gomez-2/+158
Improve std::any module doc Fixes #29340. r? @steveklabnik
2016-07-12Rollup merge of #34742 - abhijeetbhagat:master, r=steveklabnikGuillaume Gomez-1/+3
Update on struct expressions Update doc for struct expressions (#32769)
2016-07-12Rollup merge of #34740 - GuillaumeGomez:boxed_doc, r=steveklabnikGuillaume Gomez-3/+46
Improve boxed docs Fixes #29343. r? @steveklabnik
2016-07-12Rollup merge of #34737 - frewsxcv:libstd-process-child, r=GuillaumeGomezGuillaume Gomez-11/+29
Various `std::process` doc improvements. None
2016-07-12Rollup merge of #34736 - GuillaumeGomez:cells_doc, r=steveklabnikGuillaume Gomez-0/+49
Add missing examples for std::cell types Fixes #29344. r? @steveklabnik
2016-07-12Auto merge of #34755 - jonas-schievink:minor-differences, r=eddybbors-254/+135
Move variant_size_differences out of trans Also enhances the error message a bit, fixes #30505 on the way, and adds a test (which was missing). Closes #34018
2016-07-11Auto merge of #34637 - GuillaumeGomez:syntax_codes, r=jonathandturnerbors-12/+146
Syntax codes r? @jonathandturner cc @steveklabnik This is a first big shot. I'll do the second one later in the week once this one is merged.
2016-07-12Fix fallout.Jeffrey Seyfried-5/+5
2016-07-12Parse macro-expanded statements like ordinary statements.Jeffrey Seyfried-3/+9
2016-07-12Clean up statement parsing without changing the semantics of `parse_stmt`.Jeffrey Seyfried-112/+59
2016-07-11Mark Ipv4Addr is_unspecified as stable and provide reference.Ben Stern-0/+4
2016-07-11Fixed some typosDavid-2/+2
2016-07-11Move E0533 to E0558 (because of external change)Guillaume Gomez-24/+24
2016-07-11Fix typosggomez-26/+28
2016-07-11Update make tidyGuillaume Gomez-2/+3
2016-07-11Add E0537 error explanationGuillaume Gomez-1/+31
2016-07-11Add E0536 error explanationGuillaume Gomez-3/+27
2016-07-11Add E0535 error explanationGuillaume Gomez-1/+31
2016-07-11Add E0534 error explanationGuillaume Gomez-2/+35
2016-07-11Add E0533 error explanationGuillaume Gomez-2/+16
2016-07-11Auto merge of #34686 - alexcrichton:new-stage, r=luqmanabors-42/+11
rustc: Update stage0 to beta-2016-07-06 Hot off the presses, let's update our stage0 compiler!
2016-07-11`std::process` doc improvements.Corey Farwell-11/+29
* Link to `process::Command` from `process::Child`. * Move out inline Markdown link in doc comment. * Link to `process::Child::wait` from `process::Child`. * Link to `process::Child` from `process::ChildStdin`. * Link to `process::Child` from `process::ChildStdout`. * Link to `process::Child` from `process::ChildStderr`.
2016-07-11Improve boxed docsGuillaume Gomez-3/+46
2016-07-11Add missing examples for std::cell typesGuillaume Gomez-0/+49
2016-07-11Register reads on the corrent HIR itemJonas Schievink-2/+8
2016-07-11Set unwind_safe_lock_refs stability to 1.12.0.Aaron Gallagher-3/+2
This is the first (and presumably only) use of this feature.
2016-07-11Auto merge of #34725 - GuillaumeGomez:doc_slice, r=steveklabnikbors-9/+236
Improve slice docs Fixes #29337. r? @steveklabnik
2016-07-11Don't register reads for external itemsJonas Schievink-1/+6
Presumably, this ICEs when translating an inlined item from another crate. There shouldn't be a need to track dependencies in that case.
2016-07-11Calculate the 2 largest variants using iteratorsJonas Schievink-21/+22
No need to store all sizes in a vector
2016-07-11Get rid of `node_levels` and `node_lint_levels`Jonas Schievink-13/+0
2016-07-10Derive Debug on FileType.Martin Pool-3/+3
Partially fixes #32054
2016-07-10Mutex and RwLock need RefUnwindSafe too.Aaron Gallagher-0/+8
2016-07-10Add examples for std::Error moduleGuillaume Gomez-0/+70