about summary refs log tree commit diff
path: root/src/doc
AgeCommit message (Collapse)AuthorLines
2017-02-28sort unstable book alphabeticallySteve Klabnik-75/+75
I made these the same order as they were in the compiler, but for no good reason. Much easier to find out what you need when they're sorted alphabetically
2017-02-28Rollup merge of #40131 - MajorBreakfast:patch-3, r=steveklabnikCorey Farwell-2/+2
Make lifetime elision docs clearer Previously it said "It's forbidden to allow reasoning about types based on the item signature alone." I think that sentence is wrong. Rust **uses** the item signatures to perform type inference within the body. I think what's meant is the other way around: It does not infer types for item signatures. r? @steveklabnik
2017-02-28Rollup merge of #40124 - koba-e964:patch-1, r=steveklabnikCorey Farwell-1/+1
Remove unnecessary "for"
2017-02-28Unit-like structs doc: Improve code sampleJosef Brandl-1/+2
2017-02-28Structs doc: Change "pointers" to "references"Josef Brandl-1/+1
2017-02-27Make lifetime elision docs clearerJosef Brandl-2/+2
2017-02-27Auto merge of #38165 - Yamakaky:better-backtrace, r=petrochenkovbors-1/+14
Improve backtrace formating while panicking. Fixes #37783. Done: - Fix alignment of file paths for better readability - `RUST_BACKTRACE=full` prints all the informations (current behaviour) - `RUST_BACKTRACE=(short|yes)` is the default and does: - Skip irrelevant frames at the beginning and the end - Remove function address - Remove the current directory from the absolute paths - Remove `::hfabe6541873` at the end of the symbols - `RUST_BACKTRACE=(0|no)` disables the backtrace. - `RUST_BACKTRACE=<everything else>` is equivalent to `short` for backward compatibility. - doc - More uniform printing across platforms. Removed, TODO in a new PR: - Remove path prefix for libraries and libstd Example of short backtrace: ```rust fn fail() { panic!(); } fn main() { let closure = || fail(); closure(); } ``` Short: ``` thread 'main' panicked at 'explicit panic', t.rs:2 Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace. stack backtrace: 0: t::fail at ./t.rs:2 1: t::main::{{closure}} at ./t.rs:6 2: t::main at ./t.rs:7 ``` Full: ``` thread 'main' panicked at 'This function never returns!', t.rs:2 stack backtrace: 0: 0x558ddf666478 - std::sys::imp::backtrace::tracing::imp::unwind_backtrace::hec84c9dd8389cc5d at /home/yamakaky/dev/rust/rust/src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:49 1: 0x558ddf65d90e - std::sys_common::backtrace::_print::hfa25f8b31f4b4353 at /home/yamakaky/dev/rust/rust/src/libstd/sys_common/backtrace.rs:71 2: 0x558ddf65cb5e - std::sys_common::backtrace::print::h9b711e11ac3ba805 at /home/yamakaky/dev/rust/rust/src/libstd/sys_common/backtrace.rs:60 3: 0x558ddf66796e - std::panicking::default_hook::{{closure}}::h736d216e74748044 at /home/yamakaky/dev/rust/rust/src/libstd/panicking.rs:355 4: 0x558ddf66743c - std::panicking::default_hook::h16baff397e46ea10 at /home/yamakaky/dev/rust/rust/src/libstd/panicking.rs:371 5: 0x558ddf6682bc - std::panicking::rust_panic_with_hook::h6d5a9bb4eca42c80 at /home/yamakaky/dev/rust/rust/src/libstd/panicking.rs:559 6: 0x558ddf64ea93 - std::panicking::begin_panic::h17dc549df2f10b99 at /home/yamakaky/dev/rust/rust/src/libstd/panicking.rs:521 7: 0x558ddf64ec42 - t::diverges::he6bc43fc925905f5 at /tmp/p/t.rs:2 8: 0x558ddf64ec5a - t::main::h0ffc20356b8a69c0 at /tmp/p/t.rs:6 9: 0x558ddf6687f5 - core::ops::FnOnce::call_once::hce41f19c0db56f93 10: 0x558ddf667cde - std::panicking::try::do_call::hd4c8c97efb4291df at /home/yamakaky/dev/rust/rust/src/libstd/panicking.rs:464 11: 0x558ddf698d77 - __rust_try 12: 0x558ddf698c57 - __rust_maybe_catch_panic at /home/yamakaky/dev/rust/rust/src/libpanic_unwind/lib.rs:98 13: 0x558ddf667adb - std::panicking::try::h2c56ed2a59ec1d12 at /home/yamakaky/dev/rust/rust/src/libstd/panicking.rs:440 14: 0x558ddf66cc9a - std::panic::catch_unwind::h390834e0251cc9af at /home/yamakaky/dev/rust/rust/src/libstd/panic.rs:361 15: 0x558ddf6809ee - std::rt::lang_start::hb73087428e233982 at /home/yamakaky/dev/rust/rust/src/libstd/rt.rs:57 16: 0x558ddf64ec92 - main 17: 0x7fecb869e290 - __libc_start_main 18: 0x558ddf64e8b9 - _start 19: 0x0 - <unknown> ```
2017-02-28Remove unnecessary "for"Hiroki Kobayashi-1/+1
2017-02-27Auto merge of #40115 - MajorBreakfast:patch-2, r=steveklabnikbors-1/+2
Loop docs: Present perfect instead of simple past Sounds better with present perfect because there's a link to the present. I'm not a native speaker, though. So, plz check whether it really is better ;) r? @steveklabnik
2017-02-27Auto merge of #40102 - pmer:pmer/use-macos-term-in-docs, r=steveklabnikbors-6/+6
doc: Use "macOS" terminology consistently One line in the documentation used the term macOS while the other six used OSX. Be consistent and use the current product brand of macOS.
2017-02-26Loop docs: Present perfect instead of simple pastJosef Brandl-1/+2
2017-02-26Auto merge of #40078 - tclfs:patch-3, r=GuillaumeGomezbors-1/+1
Fix a typo
2017-02-25doc: Use "macOS" terminology consistentlyPaul Merrill-6/+6
One line in the documentation used the term macOS while the other six used OSX. Be consistent and use the name current product brand of macOS.
2017-02-25Rollup merge of #40069 - Rufflewind:master, r=steveklabnikEduard-Mihai Burtescu-2/+20
Add Gankro's table to nomicon/src/phantom-data.md Original: https://github.com/rust-lang/rust/issues/30069#issuecomment-159928136 Testing confirms that: - `PhantomData<fn() -> T>` does not actually enable drop checking. - `PhantomData<fn(T) -> T>` is neither variant nor contravariant.
2017-02-25Add Gankro's table to nomicon/src/phantom-data.mdPhil Ruffwind-2/+20
Original: https://github.com/rust-lang/rust/issues/30069#issuecomment-159928136 Testing confirms that: - PhantomData<fn() -> T> does not actually enable drop checking. - PhantomData<fn(T) -> T> is neither variant nor contravariant.
2017-02-24Fix a typoTang Chenglong-1/+1
2017-02-24Rollup merge of #40071 - tomwhoiscontrary:pr-lets-apostrophes, r=GuillaumeGomezGuillaume Gomez-1/+1
Correct another typo in procedural macros chapter of the Book. Another (and the only remaining) instance of the lets/let's mistake fixed in c8292fc / 36b00cf. r? @steveklabnik
2017-02-24Rollup merge of #40050 - DaseinPhaos:patch-3, r=steveklabnikGuillaume Gomez-2/+2
Update exception-safety.md Fix variable name typo
2017-02-24Rollup merge of #39845 - JDemler:master, r=steveklabnikGuillaume Gomez-0/+73
Add Documentation for Custom Attributes and Error Reporting in Procedural Macros This fixes #39821 . I'm not sure if the process of how to access custom attributes should be documented as well. But I feel, that this should rather be documented in `syn`
2017-02-24Rollup merge of #39777 - mina86:gib, r=steveklabnikGuillaume Gomez-1/+1
book: binary prefixed are defined by IEC and not in SI Binary prefixes (such as Gi for ‘gibi-’ in GiB) are defined by International Electrotechnical Commission (IEC) and not in the International System of Units (SI). Though to be honest I’d just reword the previous paragraph to use ‘1 GiB’.
2017-02-24Correct another typo in procedural macros chapter of the Book.Tom Anderson-1/+1
2017-02-23Update exception-safety.mdLuxko-1/+1
2017-02-23Update exception-safety.mdLuxko-1/+1
Fix variable name typo
2017-02-21get linkcheck cleanSteve Klabnik-11/+12
2017-02-21fix some linksSteve Klabnik-27/+10
2017-02-21TRPL Nightly -> Unstable BookSteve Klabnik-1093/+1261
Port the chapters from TRPL's "Nightly Rust" section to the Unstable Book, and remove it from TRPL.
2017-02-21write introSteve Klabnik-0/+20
2017-02-21Import basic book contentsSteve Klabnik-90/+655
2017-02-21Create "The Unstable Book"Steve Klabnik-0/+182
part of #39588
2017-02-21move the reference to the bookshelfSteve Klabnik-9/+7
2017-02-21Redirect to the new referenceSteve Klabnik-4410/+3
2017-02-21Add footnote style.Steve Klabnik-0/+798
Until https://github.com/azerupi/mdBook/issues/210 is resolved, we'll import the css file.
2017-02-21Get linkchecker cleanSteve Klabnik-36/+39
This affects the book, some missed things in the reference, the grammar, and the standard library. Whew!
2017-02-21statements and expressionsSteve Klabnik-60/+67
2017-02-21typesSteve Klabnik-11/+11
2017-02-21memory modelSteve Klabnik-1/+1
2017-02-21ItemsCorey Farwell-69/+113
2017-02-21linkageSteve Klabnik-0/+2
2017-02-21unsafetySteve Klabnik-2/+2
2017-02-21influencesSteve Klabnik-4/+4
2017-02-21Items and attributesCorey Farwell-2/+5
2017-02-21Crates and source filesCorey Farwell-14/+19
2017-02-21Procedural macrosCorey Farwell-0/+2
2017-02-21Macros By ExampleCorey Farwell-11/+21
2017-02-21MacrosCorey Farwell-3/+7
2017-02-21PathsCorey Farwell-4/+10
2017-02-21TokensCorey Farwell-7/+17
2017-02-21CommentsCorey Farwell-1/+3
2017-02-21IdentifiersCorey Farwell-3/+4
2017-02-21String table productionsCorey Farwell-6/+8