about summary refs log tree commit diff
path: root/src/tools
AgeCommit message (Collapse)AuthorLines
2024-05-14Bump Cargo.lockLukas Wirth-143/+169
2024-05-14Auto merge of #125026 - Oneirical:clink-tests, r=jieyouxubors-1/+0
Migrate `run-make/c-link-to-rust-va-list-fn` to `rmake` Part of #121876. r? `@jieyouxu`
2024-05-13lto function, static_library call, renameOneirical-4/+3
2024-05-13Auto merge of #125076 - compiler-errors:alias-term, r=lcnrbors-12/+9
Split out `ty::AliasTerm` from `ty::AliasTy` Splitting out `AliasTerm` (for use in project and normalizes goals) and `AliasTy` (for use in `ty::Alias`) r? lcnr
2024-05-13Apply nitsMichael Goulet-3/+3
2024-05-13Rollup merge of #125071 - ↵Matthias Krüger-1/+14
GuillaumeGomez:migrate-rustdoc-target-spec-json-path, r=jieyouxu Migrate rustdoc target spec json path Part of https://github.com/rust-lang/rust/issues/121876. r? `@jieyouxu`
2024-05-13split out AliasTy -> AliasTermMichael Goulet-12/+9
2024-05-13Auto merge of #17221 - Veykril:lazier-validation, r=Veykrilbors-140/+151
internal: Lazier macro parse tree validation
2024-05-13`parse_macro_expansion_error` almost never contains values so `Option` itLukas Wirth-8/+14
2024-05-13Push macro-parsing error calculation out of fundamental queriesLukas Wirth-140/+145
2024-05-13Migrate `run-make/rustdoc-target-spec-json-path` to rmakeGuillaume Gomez-1/+0
2024-05-13Add `library_search_path` to `Rustdoc`Guillaume Gomez-0/+8
2024-05-13Add `target` method to `Rustdoc` typeGuillaume Gomez-0/+6
2024-05-13Auto merge of #125024 - Oneirical:master, r=jieyouxubors-3/+0
Rewrite 3 very similar `run-make` alloc tests to rmake Part of #121876 #121918 attempted to port these 3 tests 2 months ago. However, since then, the structure of `run-make-support` has changed a bit and new helper functions were added. Since there has been no activity on the PR, they are good low-hanging fruit to knock down, using the new functions of the current library. There is also the removal of a useless import on a very similar test.
2024-05-13Auto merge of #17220 - Veykril:hov-lit, r=Veykrilbors-171/+262
fix: Improve confusing literal hovers
2024-05-13Don't render multi-line literal valuesLukas Wirth-1/+29
2024-05-13Render literal escaping errors in hoversLukas Wirth-79/+68
2024-05-13Auto merge of #17203 - kilpkonn:collapse_terms, r=Veykrilbors-37/+141
Fix OOM caused by term search The issue came from multi Cartesian product for exprs with many (25+) arguments, each having multiple options. The solution is two fold: ### Avoid blowing up in Cartesian product **Before the logic was:** 1. Find expressions for each argument/param - there may be many 2. Take the Cartesian product (which blows up in some cases) 4. If there are more than 2 options throw them away by squashing them to `Many` **Now the logic is:** 1. Find expressions for each argument/param and squash them to `Many` if there are more than 2 as otherwise we are guaranteed to also have more than 2 after taking the product which means squashing them anyway. 2. Take the Cartesian product on iterator 3. Start consuming it one by one 4. If there are more than 2 options throw them away by squashing them to `Many` (same as before) This is also why I had to update some tests as the expressions get squashed to many more eagerly. ### Use fuel to avoid long search times and high memory usage Now all the tactics use `should_continue: Fn() -> bool` to chech if they should keep iterating _(Similarly to chalk)_. This reduces the search times by a magnitude, for example from ~139ms/hole to ~14ms/hole for `ripgrep` crate. There are slightly less expressions found, but I think speed gain worth it for usability. Also note that syntactic hits decreases more because of squashing so you simple need to run search multiple times to get full terms. Also the worst case time (For example `nalgebra` crate cus it has tons of generics) has search times mostly under 200ms. Benchmarks on `ripgrep` crate Before: ``` Tail Expr syntactic hits: 291/1692 (17%) Tail Exprs found: 1253/1692 (74%) Term search avg time: 139ms ```` After: ``` Tail Expr syntactic hits: 239/1692 (14%) Tail Exprs found: 1226/1692 (72%) Term search avg time: 14ms ```
2024-05-13Fix literal hovers being confusing and wrong for floatsLukas Wirth-97/+171
2024-05-13Auto merge of #17188 - szabgab:patch-1, r=Veykrilbors-1/+2
use the repository field to link to the repository
2024-05-13Auto merge of #17187 - roife:fix-issue-17185, r=Veykrilbors-46/+48
fix: keep parentheses when the precedence of inner expr is lower than the outer one fix #17185 Additionally, this PR simplifies some code in `apply_demorgan`.
2024-05-13Auto merge of #17195 - Veykril:unsafe-attr, r=Veykrilbors-11/+534
Implement unsafe attribute parsing
2024-05-13Give `FileDescription::{read, write}` access to the `InterpCx`Luv-Ray-19/+28
2024-05-13Auto merge of #3604 - RalfJung:intrinsics, r=RalfJungbors-36/+36
intrinsics: just panic when they get used incorrectly This is already what we do most of the time, so do it consistently.
2024-05-13intrinsics: just panic when they get used incorrectlyRalf Jung-36/+36
2024-05-13offset, offset_from: allow zero-byte offset on arbitrary pointersRalf Jung-327/+64
2024-05-12Auto merge of #3575 - devnexen:illumos_part3, r=RalfJungbors-4/+14
Illumos part3 Fixes https://github.com/rust-lang/miri/issues/3567
2024-05-12further illumos/solaris support.David Carlier-4/+14
fixing part of `miri test alloc/hashmap`.
2024-05-12Auto merge of #3599 - saethlin:quiet-when-no-change, r=RalfJungbors-21/+35
Don't print unnecessary sysroot messages Currently, when running `cargo miri setup`, we always print that a sysroot is being prepared, even if we just bail out of building after checking the hash. So that message is wrong; we didn't actually prepare a sysroot. We also always print the preparing message for `cargo miri run`, even if no sysroot is prepared. With this PR, `cargo miri run` prints no sysroot messages when an existing one is reused, and when a redundant `cargo miri setup` is requested, we print: ``` A sysroot for Miri is already available in `/home/ben/.cache/miri`. ```
2024-05-12Don't print unnecessary sysroot messagesBen Kimock-21/+35
2024-05-12rewrite issue-14500 to rmakeOneirical-1/+14
2024-05-12Propagate errors rather than using return_if_errMichael Goulet-13/+17
2024-05-12Make LateCtxt be a type info delegate for EUV for clippyMichael Goulet-60/+21
2024-05-12Inline MemCategorization into ExprUseVisitorMichael Goulet-3/+3
2024-05-12Merge from rustcRalf Jung-162/+252
2024-05-12Preparing for merge from rustcRalf Jung-1/+1
2024-05-12Rollup merge of #125022 - ↵Guillaume Gomez-2/+47
GuillaumeGomez:migrate-rustdoc-scrape-examples-ordering, r=jieyouxu Migrate rustdoc scrape examples ordering Part of https://github.com/rust-lang/rust/issues/121876. This one adds a lot of utility methods/functions. To prevent having too much changes at once, I didn't make the existing rmake tests use these yet but I'll send a follow-up so they all use it. r? `@jieyouxu`
2024-05-12Migrate `rustdoc-scrape-examples-ordering` to `rmake`Guillaume Gomez-6/+6
2024-05-12merge two integer testsRalf Jung-58/+61
2024-05-12merge float tests into oneRalf Jung-66/+67
2024-05-12organize float intrinsic implementations a bitRalf Jung-102/+92
2024-05-12Add non-null pointer for posix_memaligntiif-14/+73
2024-05-12Auto merge of #124883 - onur-ozkan:change-stage0-file, r=Mark-Simulacrumbors-74/+148
use key-value format in stage0 file Currently, we are working on the python removal task on bootstrap. Which means we have to extract some data from the stage0 file using shell scripts. However, parsing values from the stage0.json file is painful because shell scripts don't have a built-in way to parse json files. This change simplifies the stage0 file format to key-value pairs, which makes it easily readable from any environment. See the zulip thread for more details: https://rust-lang.zulipchat.com/#narrow/stream/326414-t-infra.2Fbootstrap/topic/Using.20different.20format.20in.20the.20stage0.20file
2024-05-12test: add test case extract_with_specified_path_attrYoung-Flash-0/+66
2024-05-12fix: extract mod to file should respect path attributeYoung-Flash-3/+12
2024-05-11Make crashes dump mir to build dirMichael Goulet-8/+14
2024-05-11Rollup merge of #124963 - GuillaumeGomez:migrate-rustdoc-shared-flags, ↵Matthias Krüger-1/+0
r=jieyouxu Migrate `run-make/rustdoc-shared-flags` to rmake Part of https://github.com/rust-lang/rust/issues/121876. r? ```@jieyouxu```
2024-05-11Port c-link-to-rust-va-list-fn to RustOneirical-1/+0
2024-05-11make tidy happyOneirical-3/+0
2024-05-11Add `extern_` method to `Rustdoc`Guillaume Gomez-0/+15