about summary refs log tree commit diff
path: root/src/doc
AgeCommit message (Collapse)AuthorLines
2023-06-22Remove extra trailing newlineWesley Wiser-1/+0
2023-06-21style-guide: Rewrite let-else section for clarity, without changing formattingJosh Triplett-43/+62
The section as written did not cover all cases, and left some of them implicit. Rewrite it to systematically cover all cases. Place examples immediately following the corresponding case. In the process, reorder to move the simplest cases first: start with single-line and add progressively more line breaks. This does not change the meaning of the section at all, and in particular does not change the defined style for let-else statements.
2023-06-21Note that posix_spawnp probably still does not work the way people may wantThom Chiovoloni-3/+5
2023-06-21Note the incomplete Command support in the apple-tvos.md documentThom Chiovoloni-3/+16
2023-06-21Apply suggestions from code reviewThom Chiovoloni-7/+7
Co-authored-by: Jubilee <46493976+workingjubilee@users.noreply.github.com>
2023-06-21Fix missing link in SUMMARY.mdThom Chiovoloni-0/+1
2023-06-21Add a tvOS entry to the platform-support documentationThom Chiovoloni-2/+72
2023-06-21Update track_caller reference link (#1688)Zyranivia-1/+1
2023-06-21Include information about setup defaults in how-to-build guide (#1694)Zachary Whiteley-2/+5
2023-06-20doc: loongarch: Update maintainersWANG Rui-1/+1
2023-06-17Auto merge of #100036 - DrMeepster:box_free_free_box, r=oli-obkbors-8/+8
Remove `box_free` lang item This PR removes the `box_free` lang item, replacing it with `Box`'s `Drop` impl. Box dropping is still slightly magic because the contained value is still dropped by the compiler.
2023-06-17fix typo in `rustdoc/src/what-is-rustdoc.md`Joe Chen-1/+1
2023-06-16Fix edit failTyler Mandry-1/+0
2023-06-16Fix --rust-build flag in docsTyler Mandry-1/+2
2023-06-16Replace fvdl with ffx, allow test without installDavid Koloski-11/+8
Along with replacing fvdl uses with the equivalent ffx commands, this also switches from using the install path for libstd-*.so and libtest-*.so to using the build directory (now passed on the command line). The user no longer needs to run x.py install before running tests now, and the correct libstd and libtest are detected on run instead of startup so the test runner can handle recompilations after starting the testing environment.
2023-06-16remove box_free and replace with drop implDrMeepster-8/+8
2023-06-15Rollup merge of #112304 - GuillaumeGomez:re-exports, r=notriddleMatthias Krüger-1/+180
Add chapter in rustdoc book for re-exports and add a regression test for `#[doc(hidden)]` behaviour Fixes https://github.com/rust-lang/rust/issues/109449. Fixes https://github.com/rust-lang/rust/issues/53417. After the discussion in #109697, I made a few PRs to fix a few corner cases: * https://github.com/rust-lang/rust/pull/112178 * https://github.com/rust-lang/rust/pull/112108 * https://github.com/rust-lang/rust/pull/111997 With this I think I covered all cases. Only thing missing at this point was a chapter covering re-exports in the rustdoc book. r? `@notriddle`
2023-06-14Add documentation for paths in rustdoc searchGuillaume Gomez-0/+5
2023-06-14Fix typo (#1697)Caleb Robson-1/+1
* Fix typo * Fix typo in typo fix * add missing word --------- Co-authored-by: Tshepang Mbambo <tshepang@gmail.com>
2023-06-13Fix typo in thir.mdEwan Breakey-1/+1
2023-06-14Introduce a minimum CGU size in non-incremental builds.Nicholas Nethercote-2/+2
Because tiny CGUs make compilation less efficient *and* result in worse generated code. We don't do this when the number of CGUs is explicitly given, because there are times when the requested number is very important, as described in some comments within the commit. So the commit also introduces a `CodegenUnits` type that distinguishes between default values and user-specified values. This change has a roughly neutral effect on walltimes across the rustc-perf benchmarks; there are some speedups and some slowdowns. But it has significant wins for most other metrics on numerous benchmarks, including instruction counts, cycles, binary size, and max-rss. It also reduces parallelism, which is good for reducing jobserver competition when multiple rustc processes are running at the same time. It's smaller benchmarks that benefit the most; larger benchmarks already have CGUs that are all larger than the minimum size. Here are some example before/after CGU sizes for opt builds. - html5ever - CGUs: 16, mean size: 1196.1, sizes: [3908, 2992, 1706, 1652, 1572, 1136, 1045, 948, 946, 938, 579, 471, 443, 327, 286, 189] - CGUs: 4, mean size: 4396.0, sizes: [6706, 3908, 3490, 3480] - libc - CGUs: 12, mean size: 35.3, sizes: [163, 93, 58, 53, 37, 8, 2 (x6)] - CGUs: 1, mean size: 424.0, sizes: [424] - tt-muncher - CGUs: 5, mean size: 1819.4, sizes: [8508, 350, 198, 34, 7] - CGUs: 1, mean size: 9075.0, sizes: [9075] Note that CGUs of size 100,000+ aren't unusual in larger programs.
2023-06-13Update triagebot links.Eric Huss-7/+7
2023-06-13name-resolution: Fix some typos in "Scopes and ribs"Arthur Cohen-4/+4
2023-06-12docs: 📝 Add missing targetsSergio Gasquez-4/+6
2023-06-10rustdoc: update book with `[]` syntaxMichael Howell-0/+5
2023-06-09Auto merge of #111626 - pjhades:output, r=b-naberbors-0/+6
Write to stdout if `-` is given as output file With this PR, if `-o -` or `--emit KIND=-` is provided, output will be written to stdout instead. Binary output (those of type `obj`, `llvm-bc`, `link` and `metadata`) being written this way will result in an error unless stdout is not a tty. Multiple output types going to stdout will trigger an error too, as they will all be mixded together. This implements https://github.com/rust-lang/compiler-team/issues/431 The idea behind the changes is to introduce an `OutFileName` enum that represents the output - be it a real path or stdout - and to use this enum along the code paths that handle different output types.
2023-06-07Auto merge of #111698 - Amanieu:force-static-lib, r=petrochenkovbors-2/+2
Force all native libraries to be statically linked when linking a static binary Previously, `#[link]` without an explicit `kind = "static"` would confuse the linker and end up producing a dynamically linked library because of the `-Bdynamic` flag. However this binary would not work correctly anyways since it was linked with startup code for a static binary. This PR solves this by forcing all native libraries to be statically linked when the output is a static binary that cannot link to dynamic libraries anyways. Fixes #108878 Fixes #102993
2023-06-07Force all native libraries to be statically linked when linking a static binaryAmanieu d'Antras-2/+2
2023-06-07Auto merge of #111819 - nikarh:vita-improved, r=Amanieubors-60/+15
Improved std support for ps vita target Fixed a couple of things in std support for ps vita via Vita SDK newlib oss implementation: - Added missing hardware features to target spec - Compile in thumb by default (newlib is also compiled in thumb) - Fixed fs calls. Vita newlib has a not-very-posix dirent. Also vita does not expose inodes, it's stubbed as 0 in stat, and I'm stubbing it here for dirent (because vita newlibs's dirent doesn't even have that field) - Enabled signal handlers for panic unwinding - Dropped static link requirement from the platform support md. Also, rearranged sections to better stick with the template.
2023-06-06Write to stdout if `-` is given as output fileJing Peng-0/+6
If `-o -` or `--emit KIND=-` is provided, output will be written to stdout instead. Binary output (`obj`, `llvm-bc`, `link` and `metadata`) being written this way will result in an error unless stdout is not a tty. Multiple output types going to stdout will trigger an error too, as they will all be mixded together.
2023-06-06Auto merge of #112361 - matthiaskrgr:rollup-39zxrw1, r=matthiaskrgrbors-0/+82
Rollup of 8 pull requests Successful merges: - #111250 (Add Terminator conversion from MIR to SMIR, part #2) - #112310 (Add new Tier-3 targets: `loongarch64-unknown-none*`) - #112334 (Add myself to highfive rotation) - #112340 (remove `TyCtxt::has_error_field` helper method) - #112343 (Prevent emitting `missing_docs` for `pub extern crate`) - #112350 (Avoid duplicate type sanitization of local decls in borrowck) - #112356 (Fix comment for `get_region_var_origins`) - #112358 (Remove default visitor impl in region constraint generation) r? `@ghost` `@rustbot` modify labels: rollup
2023-06-06Add new Tier-3 targets: `loongarch64-unknown-none*`WANG Rui-0/+82
MCP: https://github.com/rust-lang/compiler-team/issues/628
2023-06-05Add description of forwards-compatible behavior.Eric Huss-0/+8
2023-06-05Add missing word "the".Eric Huss-1/+1
2023-06-05Add an example of placeholders.Eric Huss-2/+34
2023-06-05Rewrite recommended demangling for lifetimes using "De Bruijn level".Eric Huss-5/+5
2023-06-05Clarify grammar for decimal-number cannot have leading zeroes.Eric Huss-4/+11
2023-06-05Clarify missing tick.Eric Huss-1/+1
2023-06-05Update from review from michaelwoerister.Eric Huss-9/+12
2023-06-05Remove 64-bit limit for base-62-numbers.Eric Huss-1/+1
Demanglers should be prepared for any arbitrary length number.
2023-06-05Rearrange symbol-mangling chapter out of codegen-options.Eric Huss-81/+81
2023-06-05Add documentation on v0 symbol mangling.Eric Huss-2/+1233
2023-06-05Add chapter for re-exports in the rustdoc bookGuillaume Gomez-1/+180
2023-06-05Std support improvement for ps vita targetNikolay Arhipov-60/+15
2023-06-04Added custom risc32-imac for esp-espidf targetVictor Gil-4/+6
2023-06-02Remove "one thread in tests" limitation in nto-qnx.mdFlorian Bartels-7/+1
2023-05-31Remove const eval limit and implement an exponential backoff lint insteadOli Scherer-7/+0
2023-05-29Auto merge of #111235 - loongarch-rs:stabilize-asm, r=Amanieubors-16/+1
Stabilize inline asm for LoongArch64 This PR is used to tracking for stabilize `inline asm` for LoongArch64. **Status** - [x] https://github.com/rust-lang/rust/pull/111237 - [x] https://github.com/rust-lang/rust/pull/111332 - [ ] https://github.com/rust-lang/reference/pull/1357 Any others I missed? r? `@Amanieu`
2023-05-26platform-support.md: document the various NetBSD targets.Havard Eidnes-6/+117
This is slightly patterned after what OpenBSD has done. This is a step along the path to reduce the number and amount of diffs that pkgsrc carries around for rust, and this documents also some parts which have not yet been upstreamed (mipsel-*).
2023-05-26Add SafeStack support to rustcWesley Wiser-8/+33
Adds support for LLVM [SafeStack] which provides backward edge control flow protection by separating the stack into two parts: data which is only accessed in provable safe ways is allocated on the normal stack (the "safe stack") and all other data is placed in a separate allocation (the "unsafe stack"). SafeStack support is enabled by passing `-Zsanitizer=safestack`. [SafeStack]: https://clang.llvm.org/docs/SafeStack.html