about summary refs log tree commit diff
path: root/src/doc
AgeCommit message (Collapse)AuthorLines
2019-02-20fix typoAndre Bogus-1/+1
2019-02-20Rollup merge of #58544 - TheBiggerGuy:rustc-doc-cli-args, r=TimNNkennytm-2/+2
Fix doc for rustc "-g" flag The rustc `-g` CLI flag was miss documented to be a synonym of `-C debug-level=2` and not `-C debuglevel=2`. Also add links to the codegen docs for each synonym. I am unsure of this will conflict with work on #52938
2019-02-20Rollup merge of #58534 - dwijnand:mention-capping-forbid-lints, r=oli-obkkennytm-1/+3
Mention capping forbid lints I felt the description of forbid was misleading/incomplete without mentioning how --cap-lints interacts with it.
2019-02-20Rollup merge of #56470 - llogiq:process-termination-doctest, r=GuillaumeGomezkennytm-0/+17
Modify doctest's auto-`fn main()` to allow `Result`s This lets the default `fn main()` ~~return `impl Termination`~~ unwrap Results, which allows the use of `?` in most tests without adding it manually. This fixes #56260 ~~Blocked on `std::process::Termination` stabilization.~~ Using `Termination` would have been cleaner, but this should work OK.
2019-02-17Add links to codegen docs for rustc synonym flagsGuy Taylor-2/+2
The rustc "-g" and "-o" fags are synonyms of the "-c" codegen flags. This adds a link to the codegen docs for each synonym.
2019-02-17Fix doc for rustc "-g" flagGuy Taylor-1/+1
The rustc "-g" CLI flag was miss documented to be a synonym of "-C debug-level=2" and not the correct "-C debuginfo=2".
2019-02-17Modify doctest's auto-`fn main()` to allow `Result`sAndre Bogus-0/+17
This lets the default `fn main()` unwrap any `Result`s, which allows the use of `?` in most tests without adding it manually.
2019-02-17Mention capping forbid lintsDale Wijnand-1/+3
I felt the description of forbid was misleading/incomplete without mentioning how --cap-lints interacts with it.
2019-02-14Rollup merge of #57856 - lzutao:fix-old-first-edition, r=steveklabnikMazdak Farrokhzad-4/+4
Convert old first edition links to current edition one r? @steveklabnik
2019-02-13Convert old doc links to current editionLzu Tao-4/+4
Use footnote style to bypass the tidy check
2019-02-12Add documentation about -Clinker-plugin-lto to rustc book.Michael Woerister-1/+110
2019-02-10Rollup merge of #58350 - petrochenkov:embed, r=frewsxcvGuillaume Gomez-0/+0
Fix failing tidy (line endings on Windows) Updates to `embedded-book` including https://github.com/rust-embedded/book/pull/127.
2019-02-10Fix failing tidy (line endings on Windows)Vadim Petrochenkov-0/+0
2019-02-09Some writing improvement, conciseness of introRobert Hayek-4/+3
2019-02-07Auto merge of #57998 - niklasf:align-enum, r=nagisabors-0/+42
Allow #[repr(align(x))] on enums (#57996) Tracking issue: #57996 Implements an extension of [RFC 1358](https://github.com/rust-lang/rfcs/blob/master/text/1358-repr-align.md) behind a feature flag (`repr_align_enum`). Originally introduced here for structs: #39999. It seems like only HIR-level changes are required, since enums are already aware of their alignment (due to alignment of their limbs). cc @bitshifter
2019-02-05Add Rustlings to the doc indexliv-0/+6
2019-02-04Update embedded book dependencyJames Munns-0/+0
2019-02-04Add embedded bookJames Munns-0/+16
2019-01-31Clarify semantics of #[repr(align(x))] on enumsNiklas Fiekas-0/+16
2019-01-30Allow #[repr(align(x))] on enums (#57996)Niklas Fiekas-0/+26
2019-01-29Add link to the edition guide.Siddhartha Sahu-0/+4
2019-01-27Change generator trait to use pinningWim Looman-13/+18
2019-01-26Change crate-visibility-modifier issue number in The Unstable BookHirokazu Hata-2/+2
2019-01-24Remove quote_*! macros and associated APIsMark Simulacrum-1/+2
2019-01-21Auto merge of #55045 - kleimkuhler:add-std-is_sorted, r=KodrAusbors-0/+11
Add `is_sorted` to `Iterator` and `[T]` This is an initial implementation for the first step of [RFC 2351](https://github.com/rust-lang/rfcs/blob/master/text/2351-is-sorted.md) Tracking issue: https://github.com/rust-lang/rust/issues/53485
2019-01-18Rollup merge of #57212 - phansch:improve_rustc_book_contributing, r=steveklabnikMazdak Farrokhzad-1/+7
docs(rustc): Link to the book's source in rustc This makes the source of [the rustc book](https://doc.rust-lang.org/rustc/what-is-rustc.html) book a bit more discoverable.
2019-01-18Rollup merge of #57132 - daxpedda:master, r=steveklabnikMazdak Farrokhzad-1/+1
Document that `-C opt-level=0` implies `-C debug-assertions`. I couldn't find it stated anywhere else (https://doc.rust-lang.org/nightly/rustc/codegen-options/index.html#opt-level). It was a problem before here: https://github.com/rust-lang/rust/issues/39449, it got lost in the migration to the new documentation I assume. On a sidenote: I think that `-C opt-level=0` having a sideeffect on another flag should be changed. Having compiler flags affecting others doesn't make much sense to me, they are used to fine tune anyway. In any case, this plays no role in this PR.
2019-01-17Add is_sorted unstable documentationKevin Leimkuhler-0/+11
2019-01-17Bless test.Wesley Norris-1/+9
Bless test, remove submodule, and fix book entry. bless test again? maybe it'll work this time...
2019-01-17Add book section and fix typo.Wesley Norris-0/+4
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-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-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