about summary refs log tree commit diff
path: root/src/doc
AgeCommit message (Collapse)AuthorLines
2022-04-14docs: Update tests chapter for Termination stabilizationEric Huss-1/+3
2022-04-14Extend debugging llvm section (#1290)Felix S Klock II-17/+94
2022-04-14Send people doing *library* stabilizations over to the std-dev-guide (#1317)scottmcm-8/+26
Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com>
2022-04-14Fix typo serious->series (#1336)Frank Steffahn-1/+1
2022-04-14Minor type fix (#1337)Eric Holk-1/+1
2022-04-14sessiondiagnostic: translation (#1333)David Wood-71/+181
2022-04-13Update booksEric Huss-0/+0
2022-04-13Rollup merge of #93217 - willcrichton:example-analyzer, r=GuillaumeGomezDylan DPC-0/+56
Improve Rustdoc UI for scraped examples with multiline arguments, fix overflow in line numbers This PR improves a few aspects of the scrape examples feature in Rustdoc. * Only function names and not the full call expression are highlighted. * For call-sites with multiline arguments, the minimized code viewer will scroll to the top of the call-site rather than the middle if the argument is larger than the viewer size, ensuring that the function name is visible. * This fixes an issue where the line numbers column had a visible x-scroll bar. r? `@GuillaumeGomez`
2022-04-12fix broken link in coverage tools docsAnthonyMikh-1/+1
2022-04-11method-lookup.md improvements (#1296)Matthew Woodcraft-12/+13
2022-04-11Consolidate crates.io convention section (#1326)Ivor Wanders-5/+3
2022-04-11Update examples with 1.61.0-nightly (latest version) (#1330)Ujjawal-10/+9
Co-authored-by: Ujjawal Kumar <u.kumar@ukumar-ltmit1s.internal.salesforce.com>
2022-04-11Rollup merge of #95861 - ChrisDenton:windows7-support, r=Dylan-DPCMatthias Krüger-4/+6
Note that CI tests Windows 10 Currently being [discussed on Zulip](https://rust-lang.zulipchat.com/#narrow/stream/219381-t-libs/topic/Windows.207). r? `````@joshtriplett`````
2022-04-11Rollup merge of #95771 - str4d:update-linker-plugin-lto.md-to-1.60, ↵Matthias Krüger-1/+15
r=pietroalbini Update linker-plugin-lto.md to 1.60 I remembered this table when I was looking into what version of LLVM 1.60.0 was using 🙂
2022-04-11Note the contacts for the nvptx64 target(s)Simonas Kazlauskas-0/+58
2022-04-09Note that CI tests Windows 10Chris Denton-4/+6
2022-04-09r-a: Use `python3 x.py` instead of `./x.py` (#1335)Noah Lev-2/+3
2022-04-08Split `fuzzy_provenance_casts` into lossy and fuzzy, feature gate and test itniluxv-0/+22
* split `fuzzy_provenance_casts` into a ptr2int and a int2ptr lint * feature gate both lints * update documentation to be more realistic short term * add tests for these lints
2022-04-07Promote x86_64-unknown-none to Tier 2bstrie-8/+12
2022-04-07Manually mark 1.49 and 1.50 in linker-plugin-lto.md as Clang 11Jack Grigg-2/+2
`rustc +1.49.0 -Vv` and `rustc +1.50.0 -Vv` do not print out an `LLVM version` line, which prevents the script from detecting them.
2022-04-07Update linker-plugin-lto.md to contain up to Rust 1.60Jack Grigg-1/+15
The table rows were obtained via the script embedded in the page.
2022-04-06Update miri.md: correct a minor typo (#1334)Hongbo-1/+1
2022-04-04Add example how lints can be feature gatedxFrednet-0/+14
2022-03-30Stabilize native library modifier syntax and the `whole-archive` modifier ↵Vadim Petrochenkov-30/+25
specifically
2022-03-28Update booksEric Huss-0/+0
2022-03-27Clarify that scrape examples is unstableWill Crichton-1/+1
2022-03-27Fix markdown issue, remove hard-coded rust-lang.org urlWill Crichton-2/+2
2022-03-27Improve alignment of additional scraped examples, add scrape examples help pageWill Crichton-0/+56
2022-03-25Remove hermitkernel targetsMartin Kröning-80/+0
RustyHermit now maintains custom json targets, which are distributed with the kernel. [1] [1]: https://github.com/hermitcore/libhermit-rs/pull/395
2022-03-22update section for type system constants (#1329)lcnr-20/+29
* update section for type system constants * Update src/constants.md
2022-03-21Rollup merge of #95166 - Urgau:check-cfg-values-unstable-book, r=petrochenkovMatthias Krüger-3/+5
Update the unstable book with the new `values()` form of check-cfg Forgot to update the unstable book in https://github.com/rust-lang/rust/pull/94362 r? ``@petrochenkov``
2022-03-21Update unstable book with the new `values()` form for check-cfgLoïc BRANSTETT-3/+5
2022-03-19Fix docs for default rmeta filename.Eric Huss-1/+1
2022-03-16resolve the conflict in compiler/rustc_session/src/parse.rscodehorseman-2/+2
Signed-off-by: codehorseman <cricis@yeah.net>
2022-03-15Update booksEric Huss-0/+0
2022-03-14update winget install instructions to ensure proper packages are installed ↵skippy10110-2/+2
(-e for --exact, and full package names to ensure arbitrary packages from the msstore source aren't installed) fixes #1324
2022-03-14Auto merge of #93749 - ridwanabdillahi:riscv32im_support, r=wesleywiserbors-0/+1
Add riscv32im-unknown-none-elf built-in target triple. * Add built-in target `riscv32im-unknown-none-elf`. * Update `platform-support.md` to list it as a Tier 3 target. Below are details on how this target meets the requirements for tier 3: > A tier 3 target must have a designated developer or developers (the "target maintainers") on record to be CCed when issues arise regarding the target. (The mechanism to track and CC such developers may evolve over time.) I would be willing to be a target maintainer, though I would appreciate if others with more experience around RISC-V volunteered to help with that as well. > Targets must use naming consistent with any existing targets; for instance, a target for the same CPU or OS as an existing Rust target should use the same name for that CPU or OS. Targets should normally use the same names and naming conventions as used elsewhere in the broader ecosystem beyond Rust (such as in other toolchains), unless they have a very good reason to diverge. Changing the name of a target can be highly disruptive, especially once the target reaches a higher tier, so getting the name right is important even for a tier 3 target. Uses the same naming as the LLVM target, and the same convention as many other bare-metal targets. > Target names should not introduce undue confusion or ambiguity unless absolutely necessary to maintain ecosystem compatibility. For example, if the name of the target makes people extremely likely to form incorrect beliefs about what it targets, the name should be changed or augmented to disambiguate it. I don't believe there is any ambiguity here. > Tier 3 targets may have unusual requirements to build or use, but must not create legal issues or impose onerous legal terms for the Rust project or for Rust developers or users. I don't see any legal issues here. > The target must not introduce license incompatibilities. > Anything added to the Rust repository must be under the standard Rust license (MIT OR Apache-2.0). > The target must not cause the Rust tools or libraries built for any other host (even when supporting cross-compilation to the target) to depend on any new dependency less permissive than the Rust licensing policy. This applies whether the dependency is a Rust crate that would require adding new license exceptions (as specified by the tidy tool in the rust-lang/rust repository), or whether the dependency is a native library or binary. In other words, the introduction of the target must not cause a user installing or running a version of Rust or the Rust tools to be subject to any new license requirements. > If the target supports building host tools (such as rustc or cargo), those host tools must not depend on proprietary (non-FOSS) libraries, other than ordinary runtime libraries supplied by the platform and commonly used by other binaries built for the target. For instance, rustc built for the target may depend on a common proprietary C runtime library or console output library, but must not depend on a proprietary code generation library or code optimization library. Rust's license permits such combinations, but the Rust project has no interest in maintaining such combinations within the scope of Rust itself, even at tier 3. > Targets should not require proprietary (non-FOSS) components to link a functional binary or library. > "onerous" here is an intentionally subjective term. At a minimum, "onerous" legal/licensing terms include but are not limited to: non-disclosure requirements, non-compete requirements, contributor license agreements (CLAs) or equivalent, "non-commercial"/"research-only"/etc terms, requirements conditional on the employer or employment of any particular Rust developers, revocable terms, any requirements that create liability for the Rust project or its developers or users, or any requirements that adversely affect the livelihood or prospects of the Rust project or its developers or users. I see no issues with any of the above. > Neither this policy nor any decisions made regarding targets shall create any binding agreement or estoppel by any party. If any member of an approving Rust team serves as one of the maintainers of a target, or has any legal or employment requirement (explicit or implicit) that might affect their decisions regarding a target, they must recuse themselves from any approval decisions regarding the target's tier status, though they may otherwise participate in discussions. > This requirement does not prevent part or all of this policy from being cited in an explicit contract or work agreement (e.g. to implement or maintain support for a target). This requirement exists to ensure that a developer or team responsible for reviewing and approving a target does not face any legal threats or obligations that would prevent them from freely exercising their judgment in such approval, even if such judgment involves subjective matters or goes beyond the letter of these requirements. Only relevant to those making approval decisions. > Tier 3 targets should attempt to implement as much of the standard libraries as possible and appropriate (core for most targets, alloc for targets that can support dynamic memory allocation, std for targets with an operating system or equivalent layer of system-provided functionality), but may leave some code unimplemented (either unavailable or stubbed out as appropriate), whether because the target makes it impossible to implement or challenging to implement. The authors of pull requests are not obligated to avoid calling any portions of the standard library on the basis of a tier 3 target not implementing those portions. `core` and `alloc` can be used. `std` cannot be used as this is a bare-metal target. > The target must provide documentation for the Rust community explaining how to build for the target, using cross-compilation if possible. If the target supports running tests (even if they do not pass), the documentation must explain how to run tests for the target, using emulation if possible or dedicated hardware if necessary. Use `--target=x86_64-unknown-none-elf` option to cross compile, just like any target. The target does not support running tests. > Tier 3 targets must not impose burden on the authors of pull requests, or other developers in the community, to maintain the target. In particular, do not post comments (automated or manual) on a PR that derail or suggest a block on the PR based on a tier 3 target. Do not send automated messages or notifications (via any medium, including via `@)` to a PR author or others involved with a PR regarding a tier 3 target, unless they have opted into such messages. > Backlinks such as those generated by the issue/PR tracker when linking to an issue or PR are not considered a violation of this policy, within reason. However, such messages (even on a separate repository) must not generate notifications to anyone involved with a PR who has not requested such notifications. I don't foresee this being a problem. > Patches adding or updating tier 3 targets must not break any existing tier 2 or tier 1 target, and must not knowingly break another tier 3 target without approval of either the compiler team or the maintainers of the other tier 3 target. > In particular, this may come up when working on closely related targets, such as variations of the same architecture with different features. Avoid introducing unconditional uses of features that another variation of the target may not have; use conditional compilation or runtime detection, as appropriate, to let each target run code supported by that target. No other targets should be affected by the pull request.
2022-03-13Rollup merge of #94777 - lancethepants:armv7-unknown-linux-uclibceabi, ↵Matthias Krüger-11/+21
r=Mark-Simulacrum Update armv7-unknown-linux-uclibceabi platform support page. A few edits and fixes to the support page for the armv7-unknown-linux-uclibceabi target.
2022-03-10Rollup merge of #93950 - T-O-R-U-S:use-modern-formatting-for-format!-macros, ↵Dylan DPC-7/+7
r=Mark-Simulacrum Use modern formatting for format! macros This updates the standard library's documentation to use the new format_args syntax. The documentation is worthwhile to update as it should be more idiomatic (particularly for features like this, which are nice for users to get acquainted with). The general codebase is likely more hassle than benefit to update: it'll hurt git blame, and generally updates can be done by folks updating the code if (and when) that makes things more readable with the new format. A few places in the compiler and library code are updated (mostly just due to already having been done when this commit was first authored). `eprintln!("{}", e)` becomes `eprintln!("{e}")`, but `eprintln!("{}", e.kind())` remains untouched.
2022-03-10Use implicit capture syntax in format_argsT-O-R-U-S-7/+7
This updates the standard library's documentation to use the new syntax. The documentation is worthwhile to update as it should be more idiomatic (particularly for features like this, which are nice for users to get acquainted with). The general codebase is likely more hassle than benefit to update: it'll hurt git blame, and generally updates can be done by folks updating the code if (and when) that makes things more readable with the new format. A few places in the compiler and library code are updated (mostly just due to already having been done when this commit was first authored).
2022-03-09Add support for targeting riscv32im-unknown-none-elfridwanabdillahi-0/+1
Update riscv32im-unknown-none-elf to Tier2 support. Downgrade to Tier 3 platform support.
2022-03-09Add missing rustdoc tests explanationsGuillaume Gomez-6/+9
2022-03-09Update armv7-unknown-linux-uclibceabi platform support page.lancethepants-11/+21
2022-03-09Improve rustdoc bookLoïc BRANSTETT-83/+106
2022-03-05Rollup merge of #94630 - ehuss:remove-tier-2-docs-note, r=Mark-SimulacrumRalf Jung-2/+4
Update note about tier 2 docs. As of #92800, docs are now available for tier-2 platforms.
2022-03-05Update note about tier 2 docs.Eric Huss-2/+4
2022-03-04Fix typo in c-variadicNebula-1/+1
2022-03-04Add missing platform support docs to sidebarMichał Sidor-2/+4
Also sort sidebar alphabetically by document filename
2022-03-04Add platform support document links to tier tableMichał Sidor-2/+2
2022-03-04Rollup merge of #93418 - ojeda:no-shortcut, r=camelidDylan DPC-3/+3
rustdoc & doc: no `shortcut` for `rel="icon"` According to https://html.spec.whatwg.org/multipage/links.html#rel-icon: > For historical reasons, the `icon` keyword may be preceded by the keyword "`shortcut`". And to https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types: > **Warning:** The `shortcut` link type is often seen before `icon`, but this link type is non-conforming, ignored and **web authors must not use it anymore.** While it was removed from the Rust logo case a while ago in commit 085679c ("Use theme-adaptive SVG favicon from other Rust sites"), it is still there for the custom logo case. Also updated a few other instances. Signed-off-by: Miguel Ojeda <ojeda@kernel.org>