about summary refs log tree commit diff
path: root/src/doc
AgeCommit message (Collapse)AuthorLines
2019-01-17Auto merge of #57520 - alexreg:tidy-copyright-lint, r=Mark-Simulacrumbors-0/+0
Add lint for copyright headers to 'tidy' tool r? @Mark-Simulacrum CC @centril
2019-01-16Updated Book and Reference submodules.Alexander Regueiro-0/+0
2019-01-14Rollup merge of #57572 - Centril:unaccept-extern-in-path, r=petrochenkovMazdak Farrokhzad-40/+0
Unaccept `extern_in_paths` Based on completed fcp-close in https://github.com/rust-lang/rust/issues/55600, this removes `extern_in_path` (e.g. `extern::foo::bar`) from the language. The changes are primarily reversing https://github.com/rust-lang/rust/commit/32db83b16e06cb5cca72d0e6a648a8008eda0fac. Closes https://github.com/rust-lang/rust/issues/55600 r? @petrochenkov
2019-01-13remove extern_in_paths.Mazdak Farrokhzad-40/+0
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-11Merge pull request #234 from mark-i-m/mir_borrowckNiko Matsakis-30/+188
Fill out the borrowck chapter a bit more
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-04Mention old incr. comp. design docIgor Matuszewski-0/+3
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-01Add IRLO to glossaryPhilipp Hansch-0/+1
Someone was asking on Discord what it stands for. It's sometimes used in GitHub issues, Twitter and other places.
2019-01-01Auto merge of #57194 - matthiaskrgr:copyright_headers, r=Centrilbors-12/+0
remove more copyright headers r? @Mark-Simulacrum
2018-12-30docs(rustc): Link to the book's source in rustcPhilipp Hansch-1/+7
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-26Document that `-C opt-level=0` implies `-C debug-assertions`.daxpedda-1/+1
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-23Fix formatting, follow 100 char line length limitednix-1/+3
No idea why the Markdown stuff got dropped last time. Hopefully everything is fine now.
2018-12-23Do what the last commit said it didednix-1/+1
2018-12-23Clarify line about RLS being unable to handle rustcednix-16/+14
I based this clarification on this [answer](https://www.reddit.com/r/rust/comments/a8mk33/question_about_a_line_from_the_rust_compiler_book/ecbx1ma/) to my question on Reddit.
2018-12-23Fix linkWho? Me?!-1/+1
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-14Add graphs that I forgot to push in the original PROliver Scherer-0/+447
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-11Fix link to rustc_mir::hair::cx::exprDan Robertson-3/+4
2018-12-11update a couple of linksMark Mansi-7/+7
2018-12-11added example, reworked inference sectionMark Mansi-32/+93
2018-12-11a few updatesMark Mansi-9/+23
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-07Add some documentation about updating LLVMAlex Crichton-0/+150
2018-12-05fixed typo issues linkAvelino-1/+1
2018-12-04build the edition guideSteve Klabnik-0/+0
and update it so that links are correct
2018-12-03Provide a Python example.Edd Barrett-2/+3
2018-12-03Explain how to check if gdb supports Python.Edd Barrett-2/+4
2018-12-03Mention that tests need a Python-enabled gdb.Edd Barrett-0/+4