about summary refs log tree commit diff
path: root/src/doc
AgeCommit message (Collapse)AuthorLines
2023-01-11Change `src/test` to `tests` in source files, fix tidy and testsAlbert Larsan-4/+4
2023-01-09Accept old spelling of Fuchsia target triplesDavid Koloski-0/+2
Because the old spelling is widely used, some projects may need time to migrate their uses to the new triple spelling. The old spelling may eventually be removed altogether.
2023-01-05Add vendor to Fuchsia's target tripleDavid Koloski-52/+52
Historically, Rust's Fuchsia targets have been labeled x86_64-fuchsia and aarch64-fuchsia. However, they should technically contain vendor information. This CL changes Fuchsia's target triples to include the "unknown" vendor since Clang now does normalization and handles all triple spellings. This was previously attempted in #90510, which was closed due to inactivity.
2023-01-04Rollup merge of #106464 - djkoloski:update_fuchsia_platform_support_docs, ↵Michael Goulet-0/+3
r=tmandry Update Fuchsia walkthrough with new configs The new `download-ci-llvm` configuration option dosn't work with `lld = true` (see #100853). The Fuchsia walkthrough should recommend setting it to `false`. r? `@tmandry`
2023-01-04Update Fuchsia walkthrough with new configsDavid Koloski-0/+3
The new `download-ci-llvm` configuration option dosn't work with `lld = true` (see #100853). The Fuchsia walkthrough should recommend setting it to `false`.
2023-01-04Rollup merge of #106274 - jyn514:dump-mono-stats, r=lqdMatthias Krüger-0/+20
Add JSON output to -Zdump-mono-stats Follow-up to https://github.com/rust-lang/rust/pull/105481 r? `@lqd` cc `@wesleywiser`
2023-01-03Auto merge of #105712 - amg98:feat/vita-support, r=wesleywiserbors-0/+129
PlayStation Vita support Just the compiler definitions for no-std projects and std support using newlib Earlier PR: https://github.com/rust-lang/rust/pull/105606
2023-01-02Add json output to `-Zdump-mono-stats`Joshua Nelson-0/+20
This allows analyzing the output programatically; for example, finding the item with the highest `total_estimate`. I also took the liberty of adding `untracked` tests to `rustc_session` and documentation to the unstable book for `dump-mono-items`.
2023-01-02Update booksrustbot-0/+0
2022-12-30Added link from Targets to Platform Support in the bookTrevor Gross-1/+4
2022-12-27Fix doc comment parsingkraktus-2/+2
This can actually make a difference for the user if they rely on unicode formating. Prompted by https://github.com/dtolnay/syn/issues/771
2022-12-19Update booksrustbot-0/+0
2022-12-17Auto merge of #105421 - jacobbramley:jb/branch-prot-check, r=nagisabors-1/+1
Check AArch64 branch-protection earlier in the pipeline. As suggested in #93516. r? `@nagisa`
2022-12-16remove relative links from `rustc-book` and `unstable-book`Ezra Shaw-23/+23
Co-authored-by: Joshua Nelson <github@jyn.dev>
2022-12-14Added PlayStation Vita supportAndrés Martínez-0/+129
2022-12-10doc: document remap matching behaviour in rustc flagsAlexis (Poliorcetics) Bourget-0/+3
2022-12-10Rollup merge of #105109 - rcvalle:rust-kcfi, r=bjorn3Matthias Krüger-0/+30
Add LLVM KCFI support to the Rust compiler This PR adds LLVM Kernel Control Flow Integrity (KCFI) support to the Rust compiler. It initially provides forward-edge control flow protection for operating systems kernels for Rust-compiled code only by aggregating function pointers in groups identified by their return and parameter types. (See llvm/llvm-project@cff5bef.) Forward-edge control flow protection for C or C++ and Rust -compiled code "mixed binaries" (i.e., for when C or C++ and Rust -compiled code share the same virtual address space) will be provided in later work as part of this project by identifying C char and integer type uses at the time types are encoded (see Type metadata in the design document in the tracking issue #89653). LLVM KCFI can be enabled with -Zsanitizer=kcfi. Thank you again, `@bjorn3,` `@eddyb,` `@nagisa,` and `@ojeda,` for all the help!
2022-12-08Add documentation for LLVM KCFI supportRamon de C Valle-0/+30
This commit adds initial documentation for LLVM Kernel Control Flow Integrity (KCFI) support to the Rust compiler (see #105109 and #89653). Co-authored-by: Miguel Ojeda <ojeda@users.noreply.github.com>
2022-12-06unstable-book: Add `ignore` to `abi_efiapi` example codeNicholas Bishop-1/+1
This example doesn't compile on targets that don't support UEFI, as reported here: https://github.com/rust-lang/rust/pull/104793#issuecomment-1339783727
2022-12-06Correct branch-protection documentation.Jacob Bramley-1/+1
The branch-protection codegen option has always been treated as an error for non-AArch64 targets.
2022-12-05Update booksrustbot-0/+0
2022-11-29Rollup merge of #104523 - flba-eb:fix_nto_target_name, r=wesleywiserMatthias Krüger-11/+13
Don't use periods in target names Using a period in the target name can cause issues in e.g. cargo, see also https://rust-lang.zulipchat.com/#narrow/stream/182449-t-compiler.2Fhelp/topic/Running.20tests.20on.20remote.20target
2022-11-29Rollup merge of #104465 - djkoloski:improve_fuchsia_testing_docs, r=tmandryMatthias Krüger-23/+60
Document more settings for building rustc for Fuchsia This documents that you need to link for Fuchsia with `lld` and provides configuration settings for both `clang` and `lld`. It also adjusts the documentation for running the test suite to recommend installing to a prefix. r? ``@tmandry``
2022-11-28Rollup merge of #104360 - petrochenkov:stabverb, r=TaKO8KiDylan DPC-20/+27
Stabilize native library modifier `verbatim` Stabilization report - https://github.com/rust-lang/rust/pull/104360#issuecomment-1312724787. cc https://github.com/rust-lang/rust/issues/81490 Closes https://github.com/rust-lang/rust/issues/99425
2022-11-27Auto merge of #104506 - ↵bors-1/+3
joshtriplett:style-principles-readability-in-plain-text, r=compiler-errors Expand a style-guide principle: readability in plain text
2022-11-27Stabilize native library modifier `verbatim`Vadim Petrochenkov-20/+27
2022-11-25Rollup merge of #104793 - nicholasbishop:bishop-add-efiapi, r=JohnTitorMatthias Krüger-0/+23
unstable-book: Add page for the `abi_efiapi` feature Tracking issue for `abi_efiapi`: https://github.com/rust-lang/rust/issues/65815
2022-11-23unstable-book: Add page for the `abi_efiapi` featureNicholas Bishop-0/+23
2022-11-17Remove periods from QNX/nto target namesFlorian Bartels-11/+11
2022-11-17Encourage developers not to use periods in target namesFlorian Bartels-0/+2
They can cause issues in e.g. cargo.
2022-11-17Add powerpc64-ibm-aix as Tier-3 targetQiu Chaofan-0/+1
2022-11-16[fuchsia] Document more settings for building RustDavid Koloski-23/+60
2022-11-16Expand a style-guide principle: readability in plain textJosh Triplett-1/+3
2022-11-16Rollup merge of #104137 - StackDoubleFlow:err-lsc-unsupported, r=bjorn3Matthias Krüger-2/+2
Issue error when -C link-self-contained option is used on unsupported platforms The documentation was also updated to reflect this. I'm assuming the supported platforms are the same as initially written in [RELEASES.md](https://github.com/rust-lang/rust/blob/master/RELEASES.md#compiler-17). Fixes #103576
2022-11-15Fuchsia test suite script fixAndrew Pollack-6/+12
2022-11-14Issue error when `-C link-self-contained` option is used on unsupported ↵StackDoubleFlow-2/+2
platforms Document supported targets for `-C link-self-contained` Move `LinkSelfContainedDefault::True` from wasm_base to wasm32_wasi
2022-11-15Rollup merge of #103842 - andrewpollack:add-fuchsia-test-script, r=tmandryMatthias Krüger-2/+54
Adding Fuchsia compiler testing script, docs Adding Fuchsia compiler testing script and related docs updates r? `@tmandry` cc. `@djkoloski`
2022-11-12Remove example code as it does not compile in CIFlorian Bartels-1/+1
Code is QNX/nto specific and will not link on Windows.
2022-11-11Adding Fuchsia compiler testing script, docsAndrew Pollack-2/+54
2022-11-11Add Tristan as maintainerFlorian Bartels-0/+1
2022-11-11Add no_std AArch64 support for the QNX Neutrino (nto) 7.1 RTOSFlorian Bartels-0/+120
This change allows to compile no_std applications for the QNX Neutrino realtime operating system for ARM 64 bit CPUs. Tested with QNX Neutrino 7.1.
2022-11-09Rollup merge of #104171 - ehuss:update-books, r=ehussManish Goregaokar-0/+0
Update books ## nomicon 1 commits in 9c73283775466d22208a0b28afcab44db4c0cc10..05532356e7a4dbea2330aabb77611f5179493bb8 2022-09-30 07:31:22 +0900 to 2022-11-05 08:13:14 +0900 - Fix typos and grammatical errors (rust-lang/nomicon#384) ## reference 1 commits in 4ea7c5def38ac81df33a9e48e5637a82a5ac404d..9f0cc13ffcd27c1fbe1ab766a9491e15ddcf4d19 2022-10-25 15:14:36 -0700 to 2022-10-31 04:09:16 -0700 - Add a comma (rust-lang/reference#1289) ## book 12 commits in aa5ee485bd6bd80d205da7c82fcdd776f92fdd51..3f64052c048c6def93b94a2b514ee88bba918744 2022-10-20 16:49:55 -0400 to 2022-11-03 22:13:58 -0400 - Upgrade to Rust 1.65 - Upgrade to Rust 1.64 - Upgrade to Rust 1.63 - New ideas for the issue template to try - Clarify that the conditional expression is the one under discussion - Updates from copyedit of ch6 - Made Option&lt;T&gt; error explanation more clear - Update ch06-01-defining-an-enum - Upgrade mdbook - Clarify that user1 can't be used as a whole instance. Fixes rust-lang/book#2978. - Fix plural and incorrect phrase. Fixes rust-lang/book#3359. - Updates from copyedit of ch5 ## rust-by-example 4 commits in 03491f33375c5a2a1661c7fa4be671fe95ce1249..2b15c0abf2bada6e00553814336bc3e2d8399097 2022-10-21 07:30:08 -0300 to 2022-10-31 08:30:13 -0300 - Remove --edition from src/crates/using_lib.md (rust-lang/rust-by-example#1635) - upgrade upload-artifact - Clarify Fn in fn/closures/input_parameters.md (rust-lang/rust-by-example#1634) - fix: erroneous white spaces in types/cast.md ## rustc-dev-guide 12 commits in 51a37ad19a15709d0601afbac6581f5aea6a45da..d0dc6c97a6486f68bac782fff135086eae6d77ec 2022-10-25 10:18:58 -0700 to 2022-11-07 16:49:22 +0200 - trans -&gt; codegen - Remove implementation details - Update some more things and improve wording - Update query.md - replace tabs with spaces (rust-lang/rustc-dev-guide#1504) - align code blocks with their paragraphs - Fixes some typos (rust-lang/rustc-dev-guide#1502) - UPDATE - mention of Diagnostic derive on enums - trans -&gt; codegen (rust-lang/rustc-dev-guide#1500) - add note for err annotation formatting - Remove `--bless` from pre-push hook suggestion - Update for highfive transition.
2022-11-09Rollup merge of #104015 - alex:remove-kernel, r=oli-obkManish Goregaokar-1/+0
Remove linuxkernel targets These are not used by the actual Rust-for-Linux project, so they're mostly just confusing.
2022-11-09Rollup merge of #103933 - nicholasbishop:bishop-uefi-tier-2, r=JohnTitorDylan DPC-33/+11
Promote {aarch64,i686,x86_64}-unknown-uefi to Tier 2 MCP: https://github.com/rust-lang/compiler-team/issues/555 CC `@dvdhrm`
2022-11-08Update booksEric Huss-0/+0
2022-11-08Rollup merge of #103955 - str4d:update-lto-doc-1.65, r=ehussDylan DPC-45/+49
Update linker-plugin-lto.md to contain up to Rust 1.65 The table rows were obtained via the script embedded in the page.
2022-11-07Migrate linker-plugin-lto.md compatibility table to show Rust rangesJack Grigg-50/+49
The helper shell script has been rewritten as a helper Python script that generates the range-based table.
2022-11-05Remove linuxkernel targetsAlex Gaynor-1/+0
These are not used by the actual Rust-for-Linux project, so they're mostly just confusing.
2022-11-04Promote {aarch64,i686,x86_64}-unknown-uefi to Tier 2Nicholas Bishop-33/+11
MCP: https://github.com/rust-lang/compiler-team/issues/555
2022-11-04Update linker-plugin-lto.md to contain up to Rust 1.65Jack Grigg-1/+6
The table rows were obtained via the script embedded in the page.