about summary refs log tree commit diff
path: root/src/doc
AgeCommit message (Collapse)AuthorLines
2023-02-10Rollup merge of #107043 - Nilstrieb:true-and-false-is-false, r=wesleywiserMatthias Krüger-32/+32
Support `true` and `false` as boolean flag params Implements [MCP 577](https://github.com/rust-lang/compiler-team/issues/577).
2023-02-09Parse "-Z instrument-xray" codegen optionOleksii Lozovskyi-0/+39
Recognize all bells and whistles that LLVM's XRay pass is capable of. The always/never settings are a bit dumb without attributes but they're still there. The default instruction count is chosen by the compiler, not LLVM pass. We'll do it later.
2023-02-07Rollup merge of #107750 - tshepang:readability, r=GuillaumeGomezMatthias Krüger-1/+1
make more readable
2023-02-07make more readableTshepang Mbambo-1/+1
2023-02-07allow quick-edit convenienceTshepang Mbambo-0/+1
2023-02-02Use triple rather than arch for fuchsia test runnerJoseph Ryan-1/+1
2023-02-02Rollup merge of #107312 - calebcartwright:style-let-else, r=joshtriplettMatthias Krüger-0/+78
Add Style Guide rules for let-else statements cc `@rust-lang/style` `@rust-lang/rustfmt` [rendered](https://github.com/calebcartwright/rust/blob/c694d07c6413ba55caa10b9f8b853df7a7792e7c/src/doc/style-guide/src/statements.md#else-blocks-let-else-statements)
2023-02-01docs(style-guide): add rules for let-else statementsCaleb Cartwright-0/+78
2023-01-30Update booksrustbot-0/+0
2023-01-23Replace terminator-based const eval limitBryan Garza-0/+6
- Remove logic that limits const eval based on terminators, and use the stable metric instead (back edges + fn calls) - Add unstable flag `tiny-const-eval-limit` to add UI tests that do not have to go up to the regular 2M step limit
2023-01-19Change codegen documentationNilstrieb-32/+32
2023-01-16Rollup merge of #106942 - rustbot:docs-update, r=ehussMatthias Krüger-0/+0
Update books ## rust-lang/book 1 commits in 2bd5d42c9956369132228da6409f0e68da56c51a..2cd1b5593d26dc6a03c20f8619187ad4b2485552 2023-01-12 14:47:47 UTC to 2023-01-12 14:47:47 UTC - Typo (rust-lang/book#3457) ## rust-lang/nomicon 2 commits in 8ca261268068d80c0969260fff15199bad87b587..960d610e7f33889a2577f5f17c26f0d5c82b30df 2023-01-06 11:51:41 UTC to 2023-01-05 10:20:31 UTC - vec/raw: Simplify `RawVec::grow` (rust-lang/nomicon#392) - borrow-splitting: Use `take` instead of `replace` (rust-lang/nomicon#391) ## rust-lang/reference 4 commits in 3ae62681ff236d5528ef7c8c28ba7c6b2ecc6731..2cb0ed9ba56360949f492f9866afe8c293f9f9da 2023-01-13 03:16:35 UTC to 2023-01-07 00:08:06 UTC - Update field-expr.md (rust-lang/reference#1318) - Update documentation for arbitrary_enum_discriminant feature (rust-lang/reference#1055) - Add links to definitions of terminology ... (rust-lang/reference#1315) - Enable triagebot shortcuts (rust-lang/reference#1314) ## rust-lang/rust-by-example 2 commits in 8888f9428fe9a48f31de6bd2cef9b9bf80791edc..a9fb7d13eadfcc5f457962731f105b97f9a7474a 2023-01-14 10:25:39 UTC to 2023-01-11 18:25:42 UTC - get_or_insert example: print my_fruit as intended (rust-lang/rust-by-example#1664) - Update print.md (rust-lang/rust-by-example#1663) ## rust-lang/rustc-dev-guide 8 commits in b3e2a6e6c8a3aae5b5d950c63046f23bae07096d..7352353ae91c48b136d2ca7d03822e1448165e1e 2023-01-14 20:34:23 UTC to 2023-01-02 23:35:09 UTC - fix examples for rustc 1.68.0-nightly (935dc0721 2022-12-19) (#1556) (rust-lang/rustc-dev-guide#1557) - Update incremental-compilation-in-detail.md (rust-lang/rustc-dev-guide#1553) - Link to the youtube recording of my talk, not the summary (rust-lang/rustc-dev-guide#1554) - Change `src/test` to `tests` (rust-lang/rustc-dev-guide#1547) - add full name for ICE (rust-lang/rustc-dev-guide#1552) - Fix incorrect links (rust-lang/rustc-dev-guide#1549) - fix rebase link (rust-lang/rustc-dev-guide#1546) - Add a section for how to review code more easily (rust-lang/rustc-dev-guide#1538)
2023-01-16Update booksrustbot-0/+0
2023-01-16Update instrument-coverage.mdgftea-0/+2
Document the default for LLVM_PROFILE_FILE and add a recemmondation for setting it for older versions of Rust which had a different default.
2023-01-14Rollup merge of #106605 - notriddle:notriddle/outdated-rustbook, ↵Yuki Okushi-1/+1
r=GuillaumeGomez rustdoc: fix outdated lint section of the book
2023-01-11Stabilize `abi_efiapi` featureNicholas Bishop-23/+0
Tracking issue: https://github.com/rust-lang/rust/issues/65815
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-08rustdoc: fix outdated lint section of the bookMichael Howell-1/+1
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-19add -Zexport-executable-symbols to unstable bookFolkert-0/+43
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