about summary refs log tree commit diff
path: root/src/doc
AgeCommit message (Collapse)AuthorLines
2019-01-13Update the const fn tracking issue to the new metabugvarkor-2/+2
2019-01-12Stabilise irrefutable if-let and while-let patternsvarkor-28/+0
This stabilises RFC 2086 (https://github.com/rust-lang/rust/issues/44495). Co-Authored-By: Sebastian Malton <sebastian@malton.name>
2019-01-08stabilise cfg_attrdylan_DPC-20/+0
2019-01-05Rollup merge of #57314 - wiktorkuchta:master, r=Centrilkennytm-14/+14
Fix repeated word typos Inspired by #57295 (I skipped 'be be' because of it) and my [PR in another repo ](https://github.com/e-maxx-eng/e-maxx-eng/pull/389) Not a stupid `sed`, I actually tried to fix case by case.
2019-01-05Auto merge of #56145 - weiznich:re_rebalance_coherence, r=nikomatsakisbors-0/+23
Implement the Re-rebalance coherence RFC This is the first time I touch anything in the compiler so just tell me if I got something wrong. Big thanks to @sgrif for the pointers where to look for those things. cc #55437
2019-01-04Auto merge of #56079 - mark-i-m:patch-1, r=nikomatsakisbors-0/+6
Link to rustc guide As proposed in https://github.com/rust-lang-nursery/rustc-guide/issues/239
2019-01-03Update src/doc/unstable-book/src/language-features/re-rebalance-coherence.mdvarkor-1/+1
Co-Authored-By: weiznich <Georg_semmler_05@web.de>
2019-01-03Add some docs about the new feature to the unstable bookGeorg Semmler-0/+23
2019-01-03Fix repeated word typosWiktor Kuchta-14/+14
Found with `git grep -P '\b([a-z]+)\s+\1\b'`
2019-01-01Auto merge of #57194 - matthiaskrgr:copyright_headers, r=Centrilbors-12/+0
remove more copyright headers r? @Mark-Simulacrum
2018-12-29Auto merge of #56225 - alexreg:type_alias_enum_variants, r=petrochenkovbors-0/+36
Implement RFC 2338, "Type alias enum variants" This PR implements [RFC 2338](https://github.com/rust-lang/rfcs/pull/2338), allowing one to write code like the following. ```rust #![feature(type_alias_enum_variants)] enum Foo { Bar(i32), Baz { i: i32 }, } type Alias = Foo; fn main() { let t = Alias::Bar(0); let t = Alias::Baz { i: 0 }; match t { Alias::Bar(_i) => {} Alias::Baz { i: _i } => {} } } ``` Since `Self` can be considered a type alias in this context, it also enables using `Self::Variant` as both a constructor and pattern. Fixes issues #56199 and #56611. N.B., after discussing the syntax for type arguments on enum variants with @petrochenkov and @eddyb (there are also a few comments on the [tracking issue](https://github.com/rust-lang/rust/issues/49683)), the consensus seems to be treat the syntax as follows, which ought to be backwards-compatible. ```rust Option::<u8>::None; // OK Option::None::<u8>; // OK, but lint in near future (hard error next edition?) Alias::<u8>::None; // OK Alias::None::<u8>; // Error ``` I do not know if this will need an FCP, but let's start one if so.
2018-12-28remove remaining copyright headersMatthias Krüger-12/+0
2018-12-27Update references to closed issueIan Douglas Scott-2/+2
Issue #28979 was closed with a link to #55467.
2018-12-26Added chapter to Unstable Book.Alexander Regueiro-0/+36
2018-12-24Auto merge of #56770 - satyarohith:patch-1, r=Centrilbors-2/+2
docs(rustc): make hello() public Running the example code [here](https://doc.rust-lang.org/rustc/what-is-rustc.html#basic-usage) throws error: ``` error[E0603]: function `hello` is private --> src/main.rs:4:10 | 4 | foo::hello(); | ^^^^^ ``` Making `hello()` public fixes the problem.
2018-12-23Rollup merge of #57049 - cramertj:repr-packed, r=Centrilkennytm-8/+0
Stabilize #[repr(packed(N))] Fixes https://github.com/rust-lang/rust/issues/33158
2018-12-21Remove unstable-book repr-packed entryTaylor Cramer-8/+0
2018-12-20new --static-root-path flag for controlling static file locationsQuietMisdreavus-0/+15
2018-12-14Fixes broken linksRoberto Vidal-3/+3
2018-12-14Auto merge of #56351 - davidtwco:issue-55396-stabilize-linker-flavor, r=nagisabors-61/+7
Stabilize `linker-flavor` flag. Part of #55396. This commit moves the linker-flavor flag from a debugging option to a codegen option, thus stabilizing it. There are no feature flags associated with this flag. r? @nagisa
2018-12-13fix: make hello publicSatya Rohith-2/+2
2018-12-13Stabilize `linker-flavor` flag.David Wood-61/+7
This commit moves the linker-flavor flag from a debugging option to a codegen option, thus stabilizing it. There are no feature flags associated with this flag.
2018-12-08Auto merge of #56615 - integer32llc:update-book, r=GuillaumeGomezbors-0/+0
Update the book to fix some edition-related bugs I'd love to have this included in a point release if one happens, but the changes aren't worth doing a point release on their own IMO. I'd definitely like to see this backported to beta. The most urgent changes included here are: - Chapter 19.6, on macros (including the macro changes that just stabilized), [is cut off](https://github.com/rust-lang/book/issues/1668) because of an ill-placed newline in a comment that [pulldown-cmark interprets incorrectly](https://github.com/raphlinus/pulldown-cmark/issues/124). - [The `Cargo.toml` shown in the Guessing Game example in Chapter 2 (and one in Chapter 14) doesn't have `edition="2018"`](https://github.com/rust-lang/book/pull/1671), which can be confusing depending on whether the readers have it in theirs or not, think they should remove it if they have it, and the rest of the chapter assumes it's there and the code doesn't compile if you don't have it. - The redirects implemented as part of only shipping the 2018 edition of the book sometimes lead to [having to click through 2 redirect pages](https://github.com/rust-lang/book/pull/1667) when it could be just one. There are other small corrections included that were made since the last time the book was updated, but those aren't urgent. cc @steveklabnik
2018-12-08Add missing comma in Generatorsmorganamilo-1/+1
2018-12-07Update the book to fix some edition-related bugsCarol (Nichols || Goulding)-0/+0
2018-12-04build the edition guideSteve Klabnik-0/+0
and update it so that links are correct
2018-12-03Rollup merge of #56418 - petrochenkov:wintidy, r=nagisakennytm-0/+0
Fix failing tidy (line endings on Windows) Updates to `rustc-guide` and `edition-guide` including https://github.com/rust-lang/rustc-guide/pull/246 and https://github.com/rust-lang-nursery/edition-guide/pull/122.
2018-12-03Rollup merge of #56402 - scottmcm:better-marker-trait-example, r=Centrilkennytm-6/+8
Improve the unstable book example for #[marker] trait The previous one didn't actually use the Display&Debug bounds in any way, so I think this one is a bit more meaningful.
2018-12-02Fix failing tidy (line endings on Windows)Vadim Petrochenkov-0/+0
2018-12-01Improve the unstable book example for `#[marker]`Scott McMurray-6/+8
The previous one didn't actually use the Display&Debug bounds in any way, so I think this one is a bit more meaningful.
2018-11-30Removed chapter from Unstable Book.Alexander Regueiro-24/+0
2018-12-01Rollup merge of #56365 - alexreg:stabilise-self_struct_ctor, r=Centrilkennytm-33/+0
Stabilize self_struct_ctor feature. [**Tracking Issue**](https://github.com/rust-lang/rust/issues/51994)
2018-11-30Removed feature gate.Alexander Regueiro-33/+0
2018-11-30Add the edition guide to doc.rust-lang.orgSteve Klabnik-0/+0
2018-11-30update nomiconSteve Klabnik-0/+0
2018-11-29Rollup merge of #56257 - mark-i-m:rustc-guide-links, r=nikomatsakisGuillaume Gomez-2/+2
rustc-guide has moved to rust-lang/ r? @nikomatsakis
2018-11-29Rollup merge of #56148 - mark-i-m:rustc-guide-submodule, r=nikomatsakisGuillaume Gomez-0/+0
Add rustc-guide as a submodule Adding this as a submodule will allow two things: - Linking to the guide from doc.rlo - Doing a link check as part of the rust CI build Key question: Do we want to wait for the book to be filled out more? e.g. do we ever want to move it out of the nursery? r? @nikomatsakis cc @steveklabnik
2018-11-29Rollup merge of #56080 - mark-i-m:patch-2, r=steveklabnikGuillaume Gomez-0/+3
Reduce the amount of bold text at doc.rlo Currently, all of the text is either huge or small. IMHO this is hard to read, so I propose that we make the second-level headings smaller, without making them any less prominent. # Before: ![image](https://user-images.githubusercontent.com/8827840/48737315-50447e80-ec13-11e8-8243-6211dbba1aa1.png) # After: ![image](https://user-images.githubusercontent.com/8827840/48737258-32771980-ec13-11e8-814e-e7851954c05a.png)
2018-11-27remove uses of feature gateMark Mansi-1/+0
2018-11-27remove unstable book entryMark Mansi-22/+0
2018-11-26rustc-guide has movedWho? Me?!-1/+1
2018-11-26rustc-guide has movedMark Mansi-2/+2
2018-11-26Add rustc-guide as a submoduleMark Mansi-0/+0
2018-11-25Rollup merge of #56072 - da-x:stabilize-literal-matcher, r=petrochenkovPietro Albini-17/+0
Stabilize macro_literal_matcher This followed FCP in #35625. Closes #35625
2018-11-25Rollup merge of #56045 - qnighy:additional-sizedness, r=cramertjPietro Albini-2/+0
Check arg/ret sizedness at ExprKind::Path This PR solves three problems: - #50940: ICE on casting unsized tuple struct constructors - Unsized tuple struct constructors were callable in presence of `unsized_locals`. - https://github.com/rust-lang/rust/issues/48055#issuecomment-437178966: we cannot relax `Sized` bounds on stable functions because of fn ptr casting These are caused by lack of `Sized`ness checks for arguments/retvals at **reference sites of `FnDef` items** (not call sites of the functions). Therefore we can basically add more `Sized` obligations on typeck. However, adding `Sized` obligations arbitrarily breaks type inference; to prevent that I added a new method `require_type_is_sized_deferred` which doesn't interfere usual type inference.
2018-11-21Stabilize macro_literal_matcherDan Aloni-17/+0
2018-11-21Modify doc to reflect the unsized-locals improvement.Masaki Hara-2/+0
2018-11-20fix more linksSteve Klabnik-4/+2
2018-11-20update booksSteve Klabnik-0/+0
2018-11-19Reduce the amount of bold text at doc.rust-lang.orgWho? Me?!-0/+3