about summary refs log tree commit diff
path: root/src/doc
AgeCommit message (Collapse)AuthorLines
2021-11-24make it compile with 1.56.0 no warningSimon Perriard-1/+1
2021-11-24make it compile with 1.56.0Simon Perriard-2/+2
2021-11-24make it compile with 1.56.0Simon Perriard-1/+1
2021-11-23Update CoverageMappingFormat Support to Version6Arpad Borsos-2/+2
Version 5 adds Branch Regions which are a prerequisite for branch coverage. Version 6 can use the zeroth filename as prefix for other relative files.
2021-11-23Rollup merge of #91140 - nbdd0121:const_typeck, r=oli-obkMatthias Krüger-15/+26
Split inline const to two feature gates and mark expression position inline const complete This PR splits inline const in pattern position into its own `#![feature(inline_const_pat)]` feature gate, and make the usage in expression position complete. I think I have resolved most outstanding issues related to `inline_const` with #89561 and other PRs. The only thing left that I am aware of is #90150 and the lack of lifetime checks when inline const is used in pattern position (FIXME in #89561). Implementation-wise when used in pattern position it has to be lowered during MIR building while in expression position it's evaluated only when monomorphizing (just like normal consts), so it makes some sense to separate it into two feature gates so one can progress without being blocked by another. ``@rustbot`` label: T-compiler F-inline_const
2021-11-22Split inline const to two feature gatesGary Guo-15/+26
2021-11-22Update booksEric Huss-0/+0
2021-11-19Put back removed empty lineGuillaume Gomez-0/+1
2021-11-18Auto merge of #91019 - JohnTitor:rollup-q95ra7r, r=JohnTitorbors-40/+33
Rollup of 8 pull requests Successful merges: - #90386 (Add `-Zassert-incr-state` to assert state of incremental cache) - #90438 (Clean up mess for --show-coverage documentation) - #90480 (Mention `Vec::remove` in `Vec::swap_remove`'s docs) - #90607 (Make slice->str conversion and related functions `const`) - #90750 (rustdoc: Replace where-bounded Clean impl with simple function) - #90895 (require full validity when determining the discriminant of a value) - #90989 (Avoid suggesting literal formatting that turns into member access) - #91002 (rustc: Remove `#[rustc_synthetic]`) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2021-11-18Describe drop elaboration (#1240)Dylan MacKenzie-0/+196
2021-11-18Auto merge of #90382 - alexcrichton:wasm64-libstd, r=joshtriplettbors-1/+103
std: Get the standard library compiling for wasm64 This commit goes through and updates various `#[cfg]` as appropriate to get the wasm64-unknown-unknown target behaving similarly to the wasm32-unknown-unknown target. Most of this is just updating various conditions for `target_arch = "wasm32"` to also account for `target_arch = "wasm64"` where appropriate. This commit also lists `wasm64` as an allow-listed architecture to not have the `restricted_std` feature enabled, enabling experimentation with `-Z build-std` externally. The main goal of this commit is to enable playing around with `wasm64-unknown-unknown` externally via `-Z build-std` in a way that's similar to the `wasm32-unknown-unknown` target. These targets are effectively the same and only differ in their pointer size, but wasm64 is much newer and has much less ecosystem/library support so it'll still take time to get wasm64 fully-fledged.
2021-11-18Clean up mess for --show-coverage documentationGuillaume Gomez-40/+33
2021-11-16Fix an invalid link on Diagnostic Items (#1261)Ken Matsui-1/+1
2021-11-16Fix broken links related to `rustc_borrowck` (#1259)Yuki Okushi-22/+22
* Fix broken links in region_inference.md * Fix broken links in lifetime_parameters.md
2021-11-16Rollup merge of #90058 - joshtriplett:stabilize-strip, r=wesleywiserYuki Okushi-17/+16
Stabilize -Z strip as -C strip Leave -Z strip available temporarily as an alias, to avoid breaking cargo until cargo transitions to using -C strip.
2021-11-16Unify `x.py` usage (#1258)Ken Matsui-56/+56
2021-11-15Spelling fixesLucas Kent-15/+15
2021-11-15Stabilize -Z strip as -C stripJosh Triplett-17/+16
Leave -Z strip available temporarily as an alias, to avoid breaking cargo until cargo transitions to using -C strip. (If the user passes both, the -C version wins.)
2021-11-15Stabilize format_args_captureJosh Triplett-47/+0
Works as expected, and there are widespread reports of success with it, as well as interest in it.
2021-11-14Fix compare-mode documentationLucas Kent-2/+11
2021-11-12Auto merge of #89316 - asquared31415:multiple-clobber-abi, r=Amanieubors-3/+5
Add support for specifying multiple clobber_abi in `asm!` r? `@Amanieu` cc #72016 `@rustbot` label: +A-inline-assembly +F-asm
2021-11-11Auto merge of #83846 - torhovland:issue-10971, r=davidtwcobors-0/+10
Added the --temps-dir option Fixes #10971. The new `--temps-dir` option puts intermediate files in a user-specified directory. This provides a fix for the issue where parallel invocations of rustc would overwrite each other's intermediate files. No files are kept in the intermediate directory unless `-C save-temps=yes`. If additional files are specifically requested using `--emit asm,llvm-bc,llvm-ir,obj,metadata,link,dep-info,mir`, these will be put in the output directory rather than the intermediate directory. This is a backward-compatible change, i.e. if `--temps-dir` is not specified, the behavior is the same as before.
2021-11-10Rollup merge of #90736 - Lokathor:inline-asm-docs-updates, r=AmanieuMatthias Krüger-2/+5
adjust documented inline-asm register constraints This change more clearly specifies how `reg` and `reg_thumb` work with ARM, Thumb2, and Thumb1 code. Based upon the [llvm documentation](https://llvm.org/docs/LangRef.html#supported-constraint-code-list) for register constraint codes. To be clear, this just updates the docs to match what already happens with rustc/llvm. No change in the compiler is required to make it match this new documentation.
2021-11-10Add a missing doc linkAlex Crichton-0/+1
2021-11-10Update src/doc/rustc/src/platform-support.mdAlex Crichton-1/+1
Co-authored-by: Josh Triplett <josh@joshtriplett.org>
2021-11-10Add target documentation for wasm64-unknown-unknownAlex Crichton-0/+101
2021-11-10Update platform support docsAlex Crichton-1/+1
2021-11-10Add support for specifying multiple clobber_abi in `asm!`asquared31415-3/+5
Allow multiple clobber_abi in asm Update docs Fix aarch64 test Combine abis Emit duplicate ABI error, empty ABI list error multiple clobber_abi
2021-11-09Fix broken link in "Bootstrapping"Noah Lev-2/+2
The italics added in #1239 broke the implicitly-resolved link.
2021-11-09Update booksEric Huss-0/+0
2021-11-09Update src/doc/unstable-book/src/library-features/asm.mdLokathor-2/+2
Co-authored-by: Josh Triplett <josh@joshtriplett.org>
2021-11-09Update src/doc/unstable-book/src/library-features/asm.mdLokathor-1/+1
Co-authored-by: Josh Triplett <josh@joshtriplett.org>
2021-11-09adjust documented register constraints to match ↵Lokathor-2/+5
https://llvm.org/docs/LangRef.html#supported-constraint-code-list
2021-11-09Rollup merge of #90035 - SparrowLii:rfc2528, r=jackh726Matthias Krüger-0/+33
implement rfc-2528 type_changing-struct-update This PR implement rfc2528-type_changing-struct-update. The main change process is as follows: 1. Move the processing part of `base_expr` into `check_expr_struct_fields` to avoid returning `remaining_fields` (a relatively complex hash table) 2. Before performing the type consistency check(`check_expr_has_type_or_error`), if the `type_changing_struct_update` feature is set, enter a different processing flow, otherwise keep the original flow 3. In the case of the same structure definition, check each field in `remaining_fields`. If the field in `base_expr` is not the suptype of the field in `adt_ty`, an error(`FeildMisMatch`) will be reported. The MIR part does not need to be changed, because only the items contained in `remaining_fields` will be extracted from `base_expr` when MIR is generated. This means that fields with different types in `base_expr` will not be used Updates #86618 cc `@nikomatsakis`
2021-11-07Fix typo: [upv.rs_mentioned] -> [upvars_mentioned]chubei-1/+1
2021-11-07Made temps-dir an unstable option.Tor Hovland-9/+10
2021-11-07Auto merge of #90348 - Amanieu:asm_feature_gates, r=joshtriplettbors-2/+2
Add features gates for experimental asm features This PR splits off parts of `asm!` into separate features because they are not ready for stabilization. Specifically this adds: - `asm_const` for `const` operands. - `asm_sym` for `sym` operands. - `asm_experimental_arch` for architectures other than x86, x86_64, arm, aarch64 and riscv. r? `@nagisa`
2021-11-07Add features gates for experimental asm featuresAmanieu d'Antras-2/+2
2021-11-06Rollup merge of #90487 - NoraCodes:nora/how-to-read-rustdoc, r=jyn514Matthias Krüger-0/+108
Add a chapter on reading Rustdoc output Includes documentation for: - general page structure - navigation - searching - themes - deep-linking Doesn't include docs on the settings page. Per https://github.com/rust-lang/rust/issues/90309
2021-11-06Add note to emphasize replacing TARGET_TRIPLE (#1250)asquared31415-1/+6
2021-11-05Add a chapter on reading Rustdoc outputLeonora Tindall-0/+108
Includes documentation for: - general page structure - navigation - searching - themes - deep-linking Doesn't include docs on the settings page.
2021-11-04Remove some legacy test suites.Eric Huss-4/+3
2021-11-04tiny capitalization fixDmitry Savintsev-1/+1
2021-11-04Fix dateNoah Lev-1/+1
Co-authored-by: Yuki Okushi <jtitor@2k36.org>
2021-11-04Update some date-check commentsNoah Lev-4/+3
I removed one of them because it doesn't seem necessary.
2021-11-04Ensure date-check cron job is using latest stable RustNoah Lev-0/+4
This should prevent future failures like this one [1]. [1]: https://github.com/rust-lang/rustc-dev-guide/runs/4067460927?check_suite_focus=true
2021-11-04Mention possible future rejectionsSmittyvb-1/+1
Co-authored-by: Josh Triplett <josh@joshtriplett.org>
2021-11-03Add note about x86 instruction prefixes in asm!Smittyvb-0/+2
Since rustc doesn't do the assembly parsing itself, it is unable to detect when inline assembly ends with an instruction prefix, which doesn't make sense since it would apply to instructions from the compiler. This fixes #82314 by mentioning that x86 instruction prefixes must not be used in inline assembly.
2021-11-02enhance subtree docs, link to clippy docsCaleb Cartwright-19/+23
2021-11-02Rollup merge of #90084 - noncombatant:patch-2, r=steveklabnikMatthias Krüger-1/+1
Make printed message match the code comment I think this code is getting L0, not L1 cache size, if I'm reading the Intel manual right. (I might not be.) Either way, the code comment and the printed message should match, whichever way is right. :)