about summary refs log tree commit diff
path: root/src/tools
AgeCommit message (Collapse)AuthorLines
2024-04-28Use the interpreted program's TZ variable in localtime_rBen Kimock-138/+137
2024-04-28Don't retry position relient requests and version resolve dataLukas Wirth-129/+116
2024-04-28Remove direct dependencies on lazy_static, once_cell and byteorderGeorge Bateman-105/+77
The functionality of all three crates is now available in the standard library.
2024-04-28Auto merge of #3524 - RalfJung:fd-write, r=RalfJungbors-19/+15
file descriptors: make write take &mut self
2024-04-28file descriptors: make write take &mut selfRalf Jung-19/+15
2024-04-27Rollup merge of #124434 - GKFX:remove-lazy-dependencies, r=jieyouxuMatthias Krüger-104/+80
Remove lazycell and once_cell from compiletest dependencies Use the standard library `OnceLock` instead of third-party equivalents. A macro is used for the regexes to make their initialization less unwieldy.
2024-04-27Do not implement x86 SIMD abs with host integersEduardo Sánchez Muñoz-4/+10
2024-04-27Clarify behavior of AVX2 gather when dest and offsets have different numbers ↵Eduardo Sánchez Muñoz-0/+2
of elements
2024-04-27Add doc comment to `pack_generic`Eduardo Sánchez Muñoz-0/+7
2024-04-27Remove lazycell and once_cell from compiletest dependenciesGeorge Bateman-104/+80
2024-04-27Auto merge of #17153 - Veykril:doc-comment-desugaring, r=Veykrilbors-52/+228
fix: Fix doc comment desugaring for proc-macros Fixes https://github.com/rust-lang/rust-analyzer/issues/16259
2024-04-27fix: Fix doc comment desugaring for proc-macrosLukas Wirth-52/+228
2024-04-27Auto merge of #17151 - Veykril:fix-cfg-trait-params, r=Veykrilbors-212/+250
fix: Fix attributes on generic parameters colliding in item tree Fixes https://github.com/rust-lang/rust-analyzer/issues/16141
2024-04-27fix: Fix attributes on generic parameters colliding in item treeLukas Wirth-212/+250
2024-04-27Auto merge of #124430 - RalfJung:miri, r=RalfJungbors-568/+675
Miri subtree update r? `@ghost`
2024-04-27Auto merge of #3520 - RalfJung:josh-check, r=RalfJungbors-0/+14
josh rustc-pull: check that no new root commits get created A second root was a bad sign in Miri (judging from the description in https://github.com/rust-lang/miri/pull/2583) and seems to be a [bad sign in RA](https://github.com/rust-lang/rust-analyzer/pull/17025#issuecomment-2080390014). So let's add this to the sanity checks.
2024-04-27clippy: bless testsklensy-6/+6
2024-04-27fix: usage of `deprecated` version of `Node.js`Hamir Mahal-2/+2
2024-04-27Auto merge of #17150 - RalfJung:josh-pull, r=lnicolabors-1/+13
internal: add no-new-root check to josh pull We probably don't want a second root to show up... Also clear the rust-version file while we are at it.
2024-04-27empty rust-version file, since no pull has happened yetRalf Jung-1/+0
2024-04-27add no-new-root check to josh pullRalf Jung-0/+13
2024-04-27josh rustc-pull: check that no new root commits get createdRalf Jung-0/+14
2024-04-27Rollup merge of #124382 - petrochenkov:itemvisit, r=lcnrMatthias Krüger-24/+24
ast: Generalize item kind visiting And avoid duplicating logic for visiting `Item`s with different kinds (regular, associated, foreign). The diff is better viewed with whitespace ignored.
2024-04-27Auto merge of #124416 - weihanglo:update-cargo, r=weihanglobors-0/+0
Update cargo 9 commits in c9392675917adc2edab269eea27c222b5359c637..b60a1555155111e962018007a6d0ef85207db463 2024-04-23 19:35:19 +0000 to 2024-04-26 16:37:29 +0000 - fix(toml): Remove underscore field support in 2024 (rust-lang/cargo#13804) - fix: emit 1.77 syntax error only when msrv is incompatible (rust-lang/cargo#13808) - docs(ref): Index differences between virtual / real manifests (rust-lang/cargo#13794) - refactor(toml): extract dependency-to-source-id to function (rust-lang/cargo#13802) - Add where lint was set (rust-lang/cargo#13801) - fix(toml): Don't double-warn when underscore is used in workspace dep (rust-lang/cargo#13800) - fix(toml): Be more forceful with underscore/dash redundancy (rust-lang/cargo#13798) - Fix warning suppression for config.toml vs config compat symlinks (rust-lang/cargo#13793) - Cleanup linting system (rust-lang/cargo#13797) r? ghost
2024-04-26Rollup merge of #124383 - Urgau:port-print-native-static-libs, r=jieyouxuJacob Pratt-1/+0
Port run-make `--print=native-static-libs` to rmake.rs This PR port the run-make `--print=native-static-libs` test to rmake.rs The dedup was really awful in the `Makefile`, I'm glad to finally have a proper dedup detection for this. Related to https://github.com/rust-lang/rust/issues/121876 r? `@jieyouxu`
2024-04-26env: split up Windows and Unix environment variable handlingRalf Jung-530/+606
2024-04-26Update cargoWeihang Lo-0/+0
2024-04-26add test for concurrent env var accessRalf Jung-0/+8
2024-04-26Port run-make `--print=native-static-libs` to rmake.rsUrgau-1/+0
2024-04-26fix: Fix source roots not always being created when necessaryLukas Wirth-28/+13
2024-04-26Auto merge of #3516 - RalfJung:pathbuf, r=RalfJungbors-37/+60
add smoke tests for basic PathBuf interactions I wrote these while debugging [this](https://github.com/rust-lang/miri-test-libstd/actions/runs/8849912635/job/24302962983); it turns out the issue is [more complicated](https://github.com/rust-lang/rust/issues/124409) but these tests still seemed worth keeping.
2024-04-26add smoke tests for basic PathBuf interactionsRalf Jung-37/+60
2024-04-26Auto merge of #122385 - lcnr:analyze-obligations-for-infer, r=compiler-errorsbors-1/+0
`obligations_for_self_ty`: use `ProofTreeVisitor` for nested goals As always, dealing with proof trees continues to be a hacked together mess. After this PR and #124380 the only remaining blocker for core is https://github.com/rust-lang/trait-system-refactor-initiative/issues/90. There is also a `ProofTreeVisitor` issue causing an ICE when compiling `alloc` which I will handle in a separate PR. This issue likely affects coherence diagnostics more generally. The core idea is to extend the proof tree visitor to support visiting nested candidates without using a `probe`. We then simply recurse into nested candidates if they are the only potentially applicable candidate for a given goal and check whether the self type matches the expected one. For that to work, we need to improve `CanonicalState` to also handle unconstrained inference variables created inside of the trait solver. This is done by extending the `var_values` of `CanoncalState` with each fresh inference variables. Furthermore, we also store the state of all inference variables at the end of each probe. When recursing into `InspectCandidates` we then unify the values of all these states. r? `@compiler-errors`
2024-04-26manual: remove suggestion of rust-project.json exampleCliff L. Biffle-2/+0
The manual has been linking to the repo https://github.com/rust-analyzer/rust-project.json-example/tree/master This repo does not contain a rust-project.json, does not appear to have _ever_ contained a rust-project.json, and my bug report about this has gone untouched: https://github.com/rust-analyzer/rust-project.json-example/issues/4 Since I can't figure out an example, this commit removes the link pending better documentation.
2024-04-26put `hir::AnonConst` on the hir arenaOli Scherer-2/+2
2024-04-26Show workspace info in the status barLukas Wirth-81/+168
2024-04-26Merge from rustcThe Miri Cronjob Bot-10/+135
2024-04-26Preparing for merge from rustcThe Miri Cronjob Bot-1/+1
2024-04-25ast: Generalize item kind visitingVadim Petrochenkov-24/+24
And avoid duplicating logic for visiting `Item`s with different kinds (regular, associated, foreign).
2024-04-25hir typeck: look into nested goalslcnr-1/+0
uses a `ProofTreeVisitor` to look into nested goals when looking at the pending obligations during hir typeck. Used by closure signature inference, coercion, and for async functions.
2024-04-25debuginfo: Stabilize `-Z debug-macros`, `-Z collapse-macro-debuginfo` and ↵Vadim Petrochenkov-9/+5
`#[collapse_debuginfo]` `-Z debug-macros` is "stabilized" by enabling it by default and removing. `-Z collapse-macro-debuginfo` is stabilized as `-C collapse-macro-debuginfo`. It now supports all typical boolean values (`parse_opt_bool`) in addition to just yes/no. Default value of `collapse_debuginfo` was changed from `false` to `external` (i.e. collapsed if external, not collapsed if local). `#[collapse_debuginfo]` attribute without a value is no longer supported to avoid guessing the default.
2024-04-25Auto merge of #124368 - RalfJung:miri, r=RalfJungbors-514/+3261
Miri subtree update r? `@ghost`
2024-04-25Auto merge of #3514 - RalfJung:hyperfine, r=RalfJungbors-6/+6
CI: run benches with hyperfine rather than bash The hyperfine installation is cached so this should not cost a lot of CI time. This is step 1/2 to getting rid of the BASH variable hack.
2024-04-25CI: run benches with hyperfine rather than bashRalf Jung-6/+6
2024-04-25Auto merge of #3501 - RalfJung:tls-many-seeds, r=RalfJungbors-12/+47
add a test for the TLS memory leak This is a regression test for https://github.com/rust-lang/rust/issues/123583.
2024-04-25Auto merge of #17135 - Veykril:inline-const-scope, r=Veykrilbors-34/+69
fix: Fix expression scopes not being calculated for inline consts
2024-04-25run many-seeds tests at least a few times on all tier 1 targetsRalf Jung-11/+28
2024-04-25add a test for the TLS memory leakRalf Jung-0/+13
2024-04-25weak memory outdated loads: show where the load was fromRalf Jung-5/+10
2024-04-25fix: Fix expression scopes not being calculated for inline constsLukas Wirth-34/+69