about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2023-09-05Auto merge of #115568 - matthiaskrgr:rollup-2igo8rl, r=matthiaskrgrbors-92/+86
Rollup of 7 pull requests Successful merges: - #113510 (Document soundness of Integer -> Pointer -> Integer conversions in `const` contexts.) - #114412 (document our assumptions about symbols provided by the libc) - #114813 (explain why we can mutate the FPU control word) - #115523 (improve `AttrTokenStream`) - #115536 (interpret: make MemPlace, Place, Operand types private to the interpreter) - #115540 (Support debuginfo for custom MIR.) - #115563 (llvm-wrapper: adapt for LLVM API change) r? `@ghost` `@rustbot` modify labels: rollup
2023-09-05Rollup merge of #115536 - RalfJung:interpreter-privacy, r=oli-obkMatthias Krüger-92/+86
interpret: make MemPlace, Place, Operand types private to the interpreter Outside the interpreter, only the typed versions should be used.
2023-09-05Auto merge of #115544 - onur-ozkan:patch-binaries-for-nix-configure, ↵bors-0/+1
r=albertlarsan68 support `{disable,enable}-patch-binaries-for-nix` in configure.py Provide the control of `patch-binaries-for-nix` flag from configure.py without requiring manual editing. It's useful when: https://github.com/rust-lang/rust/blob/bf1e3f31f95c0f75b9bf51a58e8684f750f919f2/src/bootstrap/bootstrap.py#L661-L667
2023-09-05support `{disable,enable}-patch-binaries-for-nix` in configure.pyonur-ozkan-0/+1
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2023-09-05Auto merge of #115543 - Kobzol:opt-dist-retry-download, r=Mark-Simulacrumbors-1/+30
Retry download of rustc-perf in opt-dist This should help resolving spurious network errors. It also increases the timeout for the archive download. r? `@Mark-Simulacrum`
2023-09-05Add test suite `coverage-map` to test coverage mappings emitted by LLVMZalathar-5/+89
We compile each test file to LLVM IR assembly, and then pass that IR to a dedicated program that can decode LLVM coverage maps and print them in a more human-readable format. We can then check that output against known-good snapshots. This test suite has some advantages over the existing `run-coverage` tests: - We can test coverage instrumentation without needing to run target binaries. - We can observe subtle improvements/regressions in the underlying coverage mappings that don't make a visible difference to coverage reports.
2023-09-05Add tool `src/tools/coverage-dump` for use by some new coverage testsZalathar-1/+543
2023-09-04Auto merge of #114089 - Urgau:allow-with-implied-by, r=petrochenkovbors-0/+838
Add an allow attribute suggestion along with the implied by suggestion This PR adds an `#[allow(...)]` attribute hep suggestion along with the implied by suggestion: ```diff note: `-W dead-code` implied by `-W unused` + help: to override `-W unused` add `#[allow(dead_code)]` ``` This PR also adds the `OnceHelp` lint level (similar to `OnceNote`) to only put the help message one time, like the implied note. Related to https://github.com/rust-lang/rust/issues/114030
2023-09-04Retry download of rustc-perf in opt-distJakub Beránek-1/+30
This should help resolving spurious network errors. It also increases the timeout for the archive download.
2023-09-04Mirror the rustc-perf sourceMark Rousskov-2/+2
This avoids issues with the GitHub /archive/ links which can be somewhat unreliable and are currently causing CI issues.
2023-09-04interpret: make MemPlace, Place, Operand types private to the interpreterRalf Jung-92/+86
2023-09-04Adjust clippy tests with new rustc help suggestion for lintsUrgau-0/+838
2023-09-03Update docs since path-based type search works nowMichael Howell-3/+3
2023-09-03rustdoc: fix test case for generics that look like namesMichael Howell-2/+5
2023-09-03rustdoc: bug fix for `-> option<t>`Michael Howell-1/+5
2023-09-03rustdoc: write detailed chapter on search engineMichael Howell-50/+243
2023-09-03rustdoc-search: add support for type parametersMichael Howell-290/+472
When writing a type-driven search query in rustdoc, specifically one with more than one query element, non-existent types become generic parameters instead of auto-correcting (which is currently only done for single-element queries) or giving no result. You can also force a generic type parameter by writing `generic:T` (and can force it to not use a generic type parameter with something like `struct:T` or whatever, though if this happens it means the thing you're looking for doesn't exist and will give you no results). There is no syntax provided for specifying type constraints for generic type parameters. When you have a generic type parameter in a search query, it will only match up with generic type parameters in the actual function, not concrete types that match, not concrete types that implement a trait. It also strictly matches based on when they're the same or different, so `option<T>, option<U> -> option<U>` matches `Option::and`, but not `Option::or`. Similarly, `option<T>, option<T> -> option<T>`` matches `Option::or`, but not `Option::and`.
2023-09-03rustdoc-search: `null`, not `-1`, for missing idMichael Howell-14/+14
This allows us to use negative numbers for others purposes.
2023-09-03Fix clippy.Camille GILLOT-15/+11
2023-09-03Auto merge of #115510 - GuillaumeGomez:rollup-wh719bn, r=GuillaumeGomezbors-8/+17
Rollup of 3 pull requests Successful merges: - #115478 (Emit unused doc comment warnings for pat and expr fields) - #115490 (rustdoc: update comment in search.js for #107629) - #115503 (Migrate GUI colors test to original CSS color format) r? `@ghost` `@rustbot` modify labels: rollup
2023-09-03Rollup merge of #115490 - pitaj:rustdoc-searchjs-comment, r=GuillaumeGomezGuillaume Gomez-8/+17
rustdoc: update comment in search.js for #107629 Addressing https://github.com/rust-lang/rust/pull/107629#issuecomment-1693460106 r? `@jsha`
2023-09-03Use relative positions inside a SourceFile.Camille GILLOT-1/+1
2023-09-03Use relative positions inside a SourceFile.Camille GILLOT-9/+9
2023-09-03Auto merge of #115448 - onur-ozkan:optimize-bootstrap-dep-tree, r=albertlarsan68bors-40/+8
optimize bootstrap dep tree bumped `pretty_assertations` in favor of removing duplicated `syn`, and bumped `hermit-abi` from the yanked version.
2023-09-03Merge from rustcRalf Jung-294/+408
2023-09-03Preparing for merge from rustcRalf Jung-1/+1
2023-09-03Auto merge of #115472 - RalfJung:tier-2, r=GuillaumeGomezbors-5/+7
make it more clear what 'Tier 2' (without host tools) means When saying that Rust "builds official binary releases for each tier 2 target", it's not at all clear that this does not mean we build a compiler and cargo for that target.
2023-09-03Auto merge of #115436 - GuillaumeGomez:fix-type-based-search, r=notriddlebors-135/+242
[rustdoc] Fix type based search Fixes https://github.com/rust-lang/rust/issues/114522. The problem was a bit more tricky than I originally thought it would be: we only kept type ID and generics in short, but as soon as there was a full path in the user query, the element didn't get an ID anymore because the ID map didn't know about `x::y` (although it knew about `y`). So for this first problem, I instead always pass the element name to get the ID. Then a new problem occurred: we actually needed to check if paths matched, otherwise whatever the path, as long as the "end types" match, it's all good. meaning, we needed to add path information, but to do so, we needed it to be added into the search index directly as there was no mapping between `"p"` and `"q"`. I hope this explanation makes sense to someone else than me. ^^' r? `@notriddle`
2023-09-02rustdoc: update comment in search.js for #107629Peter Jaszkowiak-8/+17
2023-09-03Stabilize the Saturating type (saturating_int_impl, gh-87920)Michael Watzko-1/+1
Also stabilizes saturating_int_assign_impl, gh-92354. And also make pub fns const where the underlying saturating_* fns became const in the meantime since the Saturating type was created.
2023-09-02Correctly handle paths from foreign itemsGuillaume Gomez-11/+46
2023-09-02Auto merge of #115471 - RalfJung:skipping-sanity, r=onur-ozkanbors-10/+13
also skip musl checks when BOOTSTRAP_SKIP_TARGET_SANITY is set Currently I cannot test musl targets in Miri via x.py; this PR fixes that.
2023-09-02make it more clear what 'Tier 2' (without host tools) meansRalf Jung-5/+7
2023-09-02Auto merge of #115409 - RalfJung:llvm-merge-reland, r=lqdbors-19/+28
bootstrap: use git merge-base for LLVM CI download logic This re-lands https://github.com/rust-lang/rust/pull/113588, now that the perf issues are hopefully fixed by https://github.com/rust-lang/rustc-perf/pull/1684. r? `@lqd` `@Mark-Simulacrum` Fixes https://github.com/rust-lang/rust/issues/101907
2023-09-02also skip musl checks when BOOTSTRAP_SKIP_TARGET_SANITY is setRalf Jung-10/+13
2023-09-02Auto merge of #115469 - matthiaskrgr:rollup-25ybx39, r=matthiaskrgrbors-6/+5
Rollup of 7 pull requests Successful merges: - #114349 (rustc_llvm: Link to `zlib` on dragonfly and solaris) - #114845 (Add alignment to the NPO guarantee) - #115427 (kmc-solid: Fix `is_interrupted`) - #115443 (feat(std): Stabilize 'os_str_bytes' feature) - #115444 (Create a SMIR visitor) - #115449 (Const-stabilize `is_ascii`) - #115456 (Add spastorino on vacation) r? `@ghost` `@rustbot` modify labels: rollup
2023-09-02Rollup merge of #115443 - epage:os_str, r=cuviperMatthias Krüger-6/+5
feat(std): Stabilize 'os_str_bytes' feature Closes #111544
2023-09-02Auto merge of #115286 - saethlin:detangler, r=petrochenkovbors-100/+8
Skip rendering metadata strings from include_str!/include_bytes! The const rendering code in rustdoc completely ignores consts from expansions, but the compiler was rendering all consts. So some consts (namely those from `include_bytes!`) were rendered then ignored. Most of the diff here is from moving `print_const_expr` from rustdoc into `rustc_hir_pretty` so that it can be used in rustdoc and when building rmeta files.
2023-09-02Merge from rustcRalf Jung-11/+15
2023-09-02Preparing for merge from rustcRalf Jung-1/+1
2023-09-01fix(std): Rename os_str_bytes to encoded_bytesEd Page-5/+5
2023-09-01Auto merge of #115276 - fmease:rustdoc-obj-lt-defs-handle-self-ty-params, ↵bors-8/+23
r=GuillaumeGomez rustdoc: correctly deal with self ty params when eliding default object lifetimes Fixes #115179.
2023-09-01Reuse const rendering from rustdoc in rmeta encodingBen Kimock-100/+8
2023-09-01Rollup merge of #115411 - RalfJung:miri-abi, r=oli-obkMatthias Krüger-21/+16
miri ABI check: fix handling of 1-ZST; don't accept sign differences r? `@oli-obk`
2023-09-01bump hermit-abi from yanked version(0.3.1) to 0.3.2onur-ozkan-3/+3
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2023-09-01bump pretty_assertions to 1.4onur-ozkan-37/+5
Removes the duplicated dependency(syn 1.0.102) from bootstrap dependency tree Signed-off-by: onur-ozkan <work@onurozkan.dev>
2023-09-01feat(std): Stabilize 'os_str_bytes' featureEd Page-1/+0
Closes #111544
2023-09-01bootstrap/format: remove unnecessary paths.pushRalf Jung-4/+0
2023-09-01rustdoc: correctly deal with self ty params when eliding default object ↵León Orell Valerian Liehr-8/+23
lifetimes
2023-09-01Merge all loops into one when generating search indexGuillaume Gomez-92/+65