about summary refs log tree commit diff
path: root/src/doc
AgeCommit message (Collapse)AuthorLines
2022-09-09remove DS stuff from docs + change to use thumb_baseQuinn Painter-11/+2
2022-09-09Fix typo (#1459)Eric Holk-1/+1
2022-09-08Link UEFI target documentation from target listSeo Sanghyeon-3/+3
2022-09-07Rollup merge of #101343 - diminishedprime:patch-3, r=tmandryMatthias Krüger-0/+1
Add -api-level to pm command As of ~Aug 30th, `pm build` commands require an `api-level` flag. This flag should match the fuchsia api-level that's being targeted by the code. Since this is dependent on the version of the SDK that's being used, we may want to change this to something a bit more robust in the future.
2022-09-06Update src/doc/rustc/src/platform-support/fuchsia.mdMatt Hamrick-1/+1
Co-authored-by: Andrew Pollack <andrewpkq@gmail.com>
2022-09-05Document multipart_suggestion derive on SessionSubdiagnosticXiretza-2/+15
2022-09-03Rollup merge of #101347 - diminishedprime:patch-4, r=tmandryMatthias Krüger-0/+2
ffx component run should provide a collection In the future,`ffx component run` will not default to the using the `/core/ffx-laboratory` collection. Updated the run commands to include this.
2022-09-03Rollup merge of #101338 - diminishedprime:patch-2, r=tmandryDylan DPC-3/+11
Fix unsupported syntax in .manifest file Fuchsia .manifest files do not support a `#` comment syntax. Because of this, if you copy and paste the current example code for this file, and then remove the line you don't need, you still see an error. To make this a bit easier to follow, split this into two code blocks, one for rustc, and one for cargo.
2022-09-03Add reference for updating Windows PATH and fix typoSamyak Sarnayak-2/+4
Yes, the reference is a page on Java's documentation but that's the most complete and most official looking reference I could find.
2022-09-02ffx component run should provide a collectionMatt Hamrick-0/+2
In the future,`ffx component run` will not default to the using the `/core/ffx-laboratory` collection. Updated the run commands to include this.
2022-09-02Auto merge of #97802 - Enselic:add-no_ignore_sigkill-feature, r=joshtriplettbors-0/+54
Support `#[unix_sigpipe = "inherit|sig_dfl"]` on `fn main()` to prevent ignoring `SIGPIPE` When enabled, programs don't have to explicitly handle `ErrorKind::BrokenPipe` any longer. Currently, the program ```rust fn main() { loop { println!("hello world"); } } ``` will print an error if used with a short-lived pipe, e.g. % ./main | head -n 1 hello world thread 'main' panicked at 'failed printing to stdout: Broken pipe (os error 32)', library/std/src/io/stdio.rs:1016:9 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace by enabling `#[unix_sigpipe = "sig_dfl"]` like this ```rust #![feature(unix_sigpipe)] #[unix_sigpipe = "sig_dfl"] fn main() { loop { println!("hello world"); } } ``` there is no error, because `SIGPIPE` will not be ignored and thus the program will be killed appropriately: % ./main | head -n 1 hello world The current libstd behaviour of ignoring `SIGPIPE` before `fn main()` can be explicitly requested by using `#[unix_sigpipe = "sig_ign"]`. With `#[unix_sigpipe = "inherit"]`, no change at all is made to `SIGPIPE`, which typically means the behaviour will be the same as `#[unix_sigpipe = "sig_dfl"]`. See https://github.com/rust-lang/rust/issues/62569 and referenced issues for discussions regarding the `SIGPIPE` problem itself See the [this](https://rust-lang.zulipchat.com/#narrow/stream/219381-t-libs/topic/Proposal.3A.20First.20step.20towards.20solving.20the.20SIGPIPE.20problem) Zulip topic for more discussions, including about this PR. Tracking issue: https://github.com/rust-lang/rust/issues/97889
2022-09-02Add -api-level to pm commandMatt Hamrick-0/+1
As of ~Aug 30th, `pm build` commands require an `api-level` flag. This flag should match the fuchsia api-level that's being targeted by the code. Since this is dependent on the version of the SDK that's being used, we may want to change this to something a bit more robust in the future.
2022-09-02Fix unsupported syntax in .manifest fileMatt Hamrick-3/+11
Fuchsia .manifest files do not support a `#` comment syntax. Because of this, if you copy and paste the current example code for this file, and then remove the line you don't need, you still see an error. To make this a bit easier to follow, split this into two code blocks, one for rustc, and one for cargo.
2022-09-02Update for removal of RLS (#1450)Eric Huss-98/+43
2022-09-02Add {thumb,arm}v5te-none-eabi targetsQuinn Painter-0/+78
2022-09-01Rollup merge of #101271 - QuinnPainter:patch-1, r=Dylan-DPCMatthias Krüger-0/+0
Fix filename of armv4t-none-eabi.md The filename differed from the link in SUMMARY.md, causing it to 404.
2022-09-01Rollup merge of #101256 - andrewpollack:fuchsia-docs-adding, r=tmandryMatthias Krüger-10/+18
Fixes/adjustments to Fuchsia doc walkthrough Small fixes/adjustments missed during #100927
2022-09-01Rollup merge of #101251 - diminishedprime:patch-1, r=JohnTitorMatthias Krüger-1/+1
Fix bad target name in Walkthrough Walkthrough currently say: ``` rustup target add aarch_64-fuchsia ``` but should say ``` rustup target add aarch64-fuchsia ```
2022-09-01Fix filename of armv4t-none-eabi.mdQuinn Painter-0/+0
The filename differed from the link in SUMMARY.md, causing it to 404.
2022-09-01Auto merge of #100707 - dzvon:fix-typo, r=davidtwcobors-5/+5
Fix a bunch of typo This PR will fix some typos detected by [typos]. I only picked the ones I was sure were spelling errors to fix, mostly in the comments. [typos]: https://github.com/crate-ci/typos
2022-09-01Tweaks to fuchsia doc walkthroughAndrew Pollack-10/+18
2022-08-31Fix bad target name in WalkthroughMatt Hamrick-1/+1
Walkthrough currently say: ``` rustup target add aarch_64-fuchsia ``` but should say ``` rustup target add aarch64-fuchsia ```
2022-08-31Rollup merge of #101240 - JohnTitor:JohnTitor-patch-1, r=ehussMatthias Krüger-1/+1
Fix a typo on `wasm64-unknown-unknown` doc
2022-08-31Fix a typo on `wasm64-unknown-unknown` docYuki Okushi-1/+1
2022-08-31Document x86_64-fortanix-unknown-sgx platformJethro Beekman-1/+74
2022-08-31Rollup merge of #101216 - ehuss:sanitizer-links, r=JohnTitorRalf Jung-10/+26
Use in-page links for sanitizer docs. This updates the sanitizer documentation page so that the links in the summary at the top jump to the relevant sections within the page instead of leading away to a different site. I think this makes it a little easier to navigate this page which has gotten quite long. This also fixes the broken link for MemTagSanitizer which was not defined. It also adds MemTagSanitizer to the external summary list at the bottom of the page.
2022-08-31Fix a bunch of typoDezhi Wu-6/+6
This PR will fix some typos detected by [typos]. I only picked the ones I was sure were spelling errors to fix, mostly in the comments. [typos]: https://github.com/crate-ci/typos
2022-08-31Rollup merge of #101025 - semarie:openbsd-archs, r=petrochenkovMatthias Krüger-0/+4
Add tier-3 support for powerpc64 and riscv64 openbsd # powerpc64 - MCP for [powerpc64-unknown-openbsd tier-3 support](https://github.com/rust-lang/compiler-team/issues/551) - only need to add spec definition in rustc_target # riscv64 - MCP for [riscv64-unknown-openbsd tier-3 support](https://github.com/rust-lang/compiler-team/issues/552) - add spec definition in rustc_target - follow freebsd about avoiding linking with `libatomic`
2022-08-31Rollup merge of #101219 - ehuss:update-books, r=ehussYuki Okushi-0/+0
Update books ## nomicon 1 commits in 8e6aa3448515a0654e347b5e2510f1d4bc4d5a64..d880e6ac2acf133dce640da24b9fb692844f02d4 2022-08-15 15:36:13 -0700 to 2022-08-24 12:42:34 -0700 - Update lifetimes.md (rust-lang/nomicon#372) ## reference 2 commits in e647eb102890e8927f488bea12672b079eff8d9d..f62e93c28323ed9637d0a205a0c256498674a509 2022-08-16 11:35:27 -0700 to 2022-08-28 10:01:28 -0700 - Update examples of what implements `Termination` (rust-lang/reference#1256) - allow to quickly edit a page directly on github (rust-lang/reference#1254) ## book 7 commits in 42ca0ef484fcc8437a0682cee23abe4b7c407d52..0a5421ceb238357b3634fb75234eba4d1dad643c 2022-08-12 21:52:02 -0400 to 2022-08-28 19:51:04 -0400 - Add a missing line generated by 'cargo new' - Clarify ThreadPool-Worker analogy wording - Fixed incorrect mutex lock usage - Merge remote-tracking branch 'origin/pr/3314' - Put interactive book notice in a blockquote box to draw attention to it - Remove the word 'new' because someday it won't be new anymore - Merge remote-tracking branch 'origin/pr/3304' ## rustc-dev-guide 27 commits in d3daa1f28e169087becbc5e2b49ac91ca0405a44..04892c1a6fc145602ac7367945fda9d4ee83c9fb 2022-08-13 10:00:38 +0900 to 2022-08-29 20:07:51 +0200 - Fix the link to `Parser` struct - Remove a dangling link on "The `#[test]` attribute" - Update the stabilization guide to refer to the new placeholder system - Refine the lintstore section (rust-lang/rustc-dev-guide#1429) - typo - Updates text to refer to LLVM documentation. - Updates LLVM prereqs since upgrade to C++17. - we got 3 (rust-lang/rustc-dev-guide#1447) - A few corrections - Update some statements - correct typo in parallel-rustc.md - Correct some statements in parallel-rustc.md - update parallel-rustc.md - address review comment - make date-check more easy to use - update thir output (rust-lang/rustc-dev-guide#1445) - do not offer option to run code (rust-lang/rustc-dev-guide#1442) - fix quick-edit link (rust-lang/rustc-dev-guide#1441) - Document changes introduced by kind-less SessionDiagnostics - diagnostics: fix outdated use of string slugs (rust-lang/rustc-dev-guide#1436) - Add missing lifetime (rust-lang/rustc-dev-guide#1439) - more syntax fixes - fix incorrect #[note] syntax - Update slug style to use _ instead of - (rust-lang/rustc-dev-guide#1426) - remove incorrect info (rust-lang/rustc-dev-guide#1435) - fix lifetime name (rust-lang/rustc-dev-guide#1431) - Update the date reference around Git submodule bug (rust-lang/rustc-dev-guide#1430)
2022-08-31Rollup merge of #100927 - andrewpollack:fuchsia-docs-rustup, r=tmandryYuki Okushi-97/+426
Adding new Fuchsia rustup docs... reworking walkthrough Docs improvements: * Adding new `rustup` target add for Fuchsia targets * Reworking walkthrough to show directory building as it happens * Reworking walkthrough to use `hello_fuchsia_pkg/` directory cc. `@djkoloski`
2022-08-30Update booksEric Huss-0/+0
2022-08-30Update src/doc/rustc/src/platform-support/fuchsia.mdandrewpollack-1/+1
Co-authored-by: Tyler Mandry <tmandry@gmail.com>
2022-08-30Update src/doc/rustc/src/platform-support/fuchsia.mdandrewpollack-1/+1
Co-authored-by: Tyler Mandry <tmandry@gmail.com>
2022-08-30Use in-page links for sanitizer docs.Eric Huss-10/+26
2022-08-30Adding new Fuchsia rustup docs... reworking walkthroughAndrew Pollack-96/+425
2022-08-29Fix the link to `Parser` structYuki Okushi-2/+2
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
2022-08-29Remove a dangling link on "The `#[test]` attribute"Yuki Okushi-1/+0
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
2022-08-28Support `#[unix_sigpipe = "inherit|sig_dfl|sig_ign"]` on `fn main()`Martin Nordholts-0/+54
This makes it possible to instruct libstd to never touch the signal handler for `SIGPIPE`, which makes programs pipeable by default (e.g. with `./your-program | head -n 1`) without `ErrorKind::BrokenPipe` errors.
2022-08-28add riscv64gc-unknown-openbsd support (target riscv64-unknown-openbsd on ↵Sébastien Marie-0/+2
OpenBSD) - add platform-support documentation - add riscv64gc-unknown-openbsd spec - do not try to link with -latomic on openbsd
2022-08-28add powerpc64-unknown-openbsd supportSébastien Marie-0/+2
2022-08-27Update the stabilization guide to refer to the new placeholder systemest31-21/+5
The stabilization process is changed to now use `CURRENT_RUSTC_VERSION` instead of spelling out whatever version is currently the latest. This placeholder will be replaced during the release process with the correct version.
2022-08-27Refine the lintstore section (#1429)Tshepang Mbambo-13/+32
2022-08-27typoTshepang Mbambo-1/+1
2022-08-27Updates text to refer to LLVM documentation.Micah Weston-1/+2
2022-08-27Updates LLVM prereqs since upgrade to C++17.Micah Weston-1/+1
2022-08-27we got 3 (#1447)Tshepang Mbambo-39/+45
2022-08-26A few correctionsSparrowLii-5/+5
2022-08-26Update some statementsSparrowLii-33/+27
2022-08-26correct typo in parallel-rustc.mdSparrowLii-2/+2
2022-08-26Correct some statements in parallel-rustc.mdSparrowLii-10/+9