about summary refs log tree commit diff
path: root/src/doc
AgeCommit message (Collapse)AuthorLines
2021-04-08Auto merge of #83500 - camelid:split-debuginfo-docs-cleanup, r=steveklabnikbors-5/+5
Fix some typos in docs for `-C split-debuginfo`
2021-04-07Fix some typos in docs for `-C split-debuginfo`Camelid-5/+5
2021-04-08Stablize `non_ascii_idents` feature.Charles Lew-48/+0
2021-04-05Rollup merge of #83853 - Amanieu:asm_no_high_x86_64, r=nagisaDylan DPC-2/+2
Disallow the use of high byte registes as operands on x86_64 They are still allowed on x86 though. Fixes #83495 r? `@nagisa`
2021-04-05Apply suggestions from code reviewJoshua Nelson-1/+1
Co-authored-by: Camelid <camelidcamel@gmail.com> Co-authored-by: Nemo157 <github@nemo157.com>
2021-04-05Disallow the use of high byte registes as operands on x86_64Amanieu d'Antras-2/+2
They are still allowed on x86 though. Fixes #83495
2021-04-05Rename non_autolinks -> bare_urlsJoshua Nelson-15/+8
2021-04-05Rollup merge of #83841 - Amanieu:asm_clobber_feature, r=nagisaDylan DPC-1/+7
Allow clobbering unsupported registers in asm! Previously registers could only be marked as clobbered if the target feature for that register was enabled. This restriction is now removed. cc #81092 r? ``@nagisa``
2021-04-05Rollup merge of #83820 - petrochenkov:nolinkargs, r=nagisaDylan DPC-32/+0
Remove attribute `#[link_args]` Closes https://github.com/rust-lang/rust/issues/29596 The attribute could always be replaced with `-C link-arg`, but cargo didn't provide a reasonable way to pass such flags to rustc. Now cargo supports `cargo:rustc-link-arg*` directives in build scripts (https://doc.rust-lang.org/cargo/reference/unstable.html#extra-link-arg), so this attribute can be removed.
2021-04-05Rollup merge of #80525 - devsnek:wasm64, r=nagisaDylan DPC-0/+1
wasm64 support There is still some upstream llvm work needed before this can land.
2021-04-04wasm64Gus Caplan-0/+1
2021-04-04Update clobber example in the asm documentationAmanieu d'Antras-1/+7
2021-04-03Mention CI build of LLVM in build instructionAngelicosPhosphoros-0/+3
2021-04-03Remove attribute `#[link_args]`Vadim Petrochenkov-32/+0
2021-04-04Fix rustdocs test command typo (#1103)二手掉包工程师-1/+1
2021-04-02Add newer range patterns to unstable bookJubilee Young-0/+50
2021-04-02Update the "LLVM updates" sectionYuki Okushi-8/+12
2021-04-02Fix a link about Rustdoc internalsYuki Okushi-3/+4
2021-04-02Auto merge of #80965 - camelid:rename-doc-spotlight, r=jyn514bors-50/+55
Rename `#[doc(spotlight)]` to `#[doc(notable_trait)]` Fixes #80936. "spotlight" is not a very specific or self-explaining name. Additionally, the dialog that it triggers is called "Notable traits". So, "notable trait" is a better name. * Rename `#[doc(spotlight)]` to `#[doc(notable_trait)]` * Rename `#![feature(doc_spotlight)]` to `#![feature(doc_notable_trait)]` * Update documentation * Improve documentation r? `@Manishearth`
2021-04-01Add quickstart for adding a new optimization (#1094)Camelid-0/+49
2021-04-01Add back example of {{cwd}} (#1099)Joshua Nelson-1/+1
I force-pushed this in the last commit and accidentally deleted the github suggestion.
2021-03-31Document test input normalizationJoshua Nelson-1/+21
2021-03-29Update booksEric Huss-0/+0
2021-03-28Add notes about nightly rustc version for the rustc-driver examplesJohnTitor-9/+15
2021-03-28Update rustc-driver-*.rs examples (#1095)Undxxx-9/+15
2021-03-27Update rustup cross-compilation docs linkJon Jensen-1/+1
2021-03-22Auto merge of #79278 - mark-i-m:stabilize-or-pattern, r=nikomatsakisbors-36/+0
Stabilize or_patterns (RFC 2535, 2530, 2175) closes #54883 This PR stabilizes the or_patterns feature in Rust 1.53. This is blocked on the following (in order): - [x] The crater run in https://github.com/rust-lang/rust/pull/78935#issuecomment-731564021 - [x] The resolution of the unresolved questions and a second crater run (https://github.com/rust-lang/rust/pull/78935#issuecomment-735412705) - It looks like we will need to pursue some sort of edition-based transition for `:pat`. - [x] Nomination and discussion by T-lang - [x] Implement new behavior for `:pat` based on consensus (https://github.com/rust-lang/rust/pull/80100). - [ ] An FCP on stabilization EDIT: Stabilization report is in https://github.com/rust-lang/rust/pull/79278#issuecomment-772815177
2021-03-21Update doc/reference submoduleNikita Popov-0/+0
In particular this pulls in an update to the auto-deref recursion_limit example, to no longer rely on the Freeze query.
2021-03-19remove unstable book chaptermark-36/+0
2021-03-19Fix rust compiler meeting info (#1087)Santiago Pastorino-18/+24
* Remove dead link * Make general text a bit better * Fix Zulip link * Improve description of what the compiler meeting is about
2021-03-19Rollup merge of #82846 - GuillaumeGomez:doc-alias-list, r=jyn514Dylan DPC-0/+7
rustdoc: allow list syntax for #[doc(alias)] attributes Fixes https://github.com/rust-lang/rust/issues/81205. It now allows to have: ```rust #[doc(alias = "x")] // and: #[doc(alias("y", "z"))] ``` cc ``@jplatte`` r? ``@jyn514``
2021-03-17Rollup merge of #83206 - ehuss:update-books, r=ehussYuki Okushi-0/+0
Update books ## nomicon 1 commits in adca786547d08fe676b2fc7a6f08c2ed5280ca38..6fe476943afd53a9a6e91f38a6ea7bb48811d8ff 2021-02-16 16:34:20 +0900 to 2021-03-10 07:28:57 +0900 - Merge pull request rust-lang-nursery/nomicon#257 from skade/opaque-types-fix ## reference 3 commits in 3b6fe80c205d2a2b5dc8a276192bbce9eeb9e9cf..e32a2f928f8b78d534bca2b9e7736413314dc556 2021-02-22 22:09:17 -0800 to 2021-03-08 23:24:30 -0800 - Clarify that ::foo paths are not necessarily based off of the "crate root" (rust-lang-nursery/reference#974) - Comment typo (rust-lang-nursery/reference#977) - Fix misspelled word discrimnant (rust-lang-nursery/reference#976) ## book 2 commits in 0f87daf683ae3de3cb725faecb11b7e7e89f0e5a..fc2f690fc16592abbead2360cfc0a42f5df78052 2021-03-01 08:54:04 -0500 to 2021-03-05 14:03:22 -0500 - Fix wrapping - fix: redundant double introduction of shadowing (rust-lang/book#2633) ## rust-by-example 1 commits in 3e0d98790c9126517fa1c604dc3678f396e92a27..eead22c6c030fa4f3a167d1798658c341199e2ae 2021-02-25 08:23:10 -0300 to 2021-03-04 16:26:43 -0300 - Fix grammar "terminates" -&gt; "terminate" (rust-lang/rust-by-example#1423) ## rustc-dev-guide 15 commits in c431f8c29a41413dddcb3bfa0d71c9cabe366317..67ebd4b55dba44edfc351621cef6e5e758169c55 2021-02-28 16:35:20 -0500 to 2021-03-11 13:36:25 -0800 - Remove extra the (rust-lang/rustc-dev-guide#1088) - Fix double-word typos (rust-lang/rustc-dev-guide#1084) - I-nominated are nominated for discussion (rust-lang/rustc-dev-guide#1080) - Complete unfinished statement - Check `BASE_SHA` only if it's a PR (rust-lang/rustc-dev-guide#1083) - Update lins - Apply suggestions from code review - Add stub about the THIR - Switch from Travis to GHA (rust-lang/rustc-dev-guide#1073) - Adjust a bit better P- label text - Fix typos (rust-lang/rustc-dev-guide#1079) - Update cmake version in prerequisites.md (rust-lang/rustc-dev-guide#1077) - Fix typo: suceed -&gt; succeed - Add article on using WPA to profile rustc memory usage on Windows (rust-lang/rustc-dev-guide#1074) - Use more accurate estimate of generated LLVM IR with llvm-lines ## embedded-book 1 commits in a96d096cffe5fa2c84af1b4b61e1492f839bb2e1..f61685755fad7d3b88b4645adfbf461d500563a2 2021-02-17 08:08:52 +0000 to 2021-03-08 01:06:44 +0000 - Swap to GHA (rust-embedded/book#285)
2021-03-16Update booksEric Huss-0/+0
2021-03-16Show details in cfg version unstable bookIvan Tham-3/+4
2021-03-15Rename `#[doc(spotlight)]` to `#[doc(notable_trait)]`Camelid-50/+55
"spotlight" is not a very specific or self-explaining name. Additionally, the dialog that it triggers is called "Notable traits". So, "notable trait" is a better name. * Rename `#[doc(spotlight)]` to `#[doc(notable_trait)]` * Rename `#![feature(doc_spotlight)]` to `#![feature(doc_notable_trait)]` * Update documentation * Improve documentation
2021-03-12Rollup merge of #82979 - GuillaumeGomez:run-button-pos, r=Nemo157Yuki Okushi-0/+1
Fix "run" button position in error index This isn't really a rustdoc issue but I still made the same fix in the `rustdoc.css` file (doesn't hurt). Before: ![Screenshot from 2021-03-10 16-35-49](https://user-images.githubusercontent.com/3050060/110655807-aa402800-81bf-11eb-8a88-bc979efd1697.png) After: ![Screenshot from 2021-03-10 16-40-08](https://user-images.githubusercontent.com/3050060/110655843-b4622680-81bf-11eb-8670-42975d92b4eb.png) cc ````@jyn514```` (considering this is quite a big bug and an easy fix) r? ````@Nemo157````
2021-03-11Remove extra the (#1088)Santiago Pastorino-1/+1
2021-03-12Fix double-word typos (#1084)Camelid-4/+4
Inspired by #1079. I used this command to find these typos: rg --multiline --pcre2 '\b([a-zA-Z]+) \1\b' src -tmd There were a couple false positives of the form "that that" meaning "that it" or "that this".
2021-03-11I-nominated are nominated for discussion (#1080)Santiago Pastorino-3/+4
* I-nominated are nominated for discussion * Generalize meeting expression Co-authored-by: Camelid <camelidcamel@gmail.com> Co-authored-by: Camelid <camelidcamel@gmail.com>
2021-03-11Complete unfinished statementSantiago Pastorino-3/+2
2021-03-11Check `BASE_SHA` only if it's a PR (#1083)Yuki Okushi-1/+1
2021-03-10Update linsLéo Lanteri Thauvin-3/+5
2021-03-10Apply suggestions from code reviewLéo Lanteri Thauvin-7/+10
Co-authored-by: Camelid <camelidcamel@gmail.com>
2021-03-10Add stub about the THIRLeSeulArtichaut-19/+45
2021-03-10Switch from Travis to GHA (#1073)Yuki Okushi-45/+83
2021-03-10Auto merge of #76570 - cratelyn:implement-rfc-2945-c-unwind-abi, r=Amanieubors-0/+15
Implement RFC 2945: "C-unwind" ABI ## Implement RFC 2945: "C-unwind" ABI This branch implements [RFC 2945]. The tracking issue for this RFC is #74990. The feature gate for the issue is `#![feature(c_unwind)]`. This RFC was created as part of the ffi-unwind project group tracked at rust-lang/lang-team#19. ### Changes Further details will be provided in commit messages, but a high-level overview of the changes follows: * A boolean `unwind` payload is added to the `C`, `System`, `Stdcall`, and `Thiscall` variants, marking whether unwinding across FFI boundaries is acceptable. The cases where each of these variants' `unwind` member is true correspond with the `C-unwind`, `system-unwind`, `stdcall-unwind`, and `thiscall-unwind` ABI strings introduced in RFC 2945 [3]. * This commit adds a `c_unwind` feature gate for the new ABI strings. Tests for this feature gate are included in `src/test/ui/c-unwind/`, which ensure that this feature gate works correctly for each of the new ABIs. A new language features entry in the unstable book is added as well. * We adjust the `rustc_middle::ty::layout::fn_can_unwind` function, used to compute whether or not a `FnAbi` object represents a function that should be able to unwind when `panic=unwind` is in use. * Changes are also made to `rustc_mir_build::build::should_abort_on_panic` so that the function ABI is used to determind whether it should abort, assuming that the `panic=unwind` strategy is being used, and no explicit unwind attribute was provided. [RFC 2945]: https://github.com/rust-lang/rfcs/blob/master/text/2945-c-unwind-abi.md
2021-03-10Adjust a bit better P- label textSantiago Pastorino-2/+2
2021-03-10Fix "run" button position in error indexGuillaume Gomez-0/+1
2021-03-10Fix typos (#1079)Santiago Pastorino-2/+2
2021-03-10Allow doc alias attributes to use both list and valueGuillaume Gomez-0/+7