about summary refs log tree commit diff
path: root/src/tools
AgeCommit message (Collapse)AuthorLines
2024-07-07Drop unused profile thingsLukas Wirth-33/+0
2024-07-07fix: Fix parameter completions using macro expanded source rangesLukas Wirth-1/+2
2024-07-07Move capability querying out of the config moduleLukas Wirth-515/+525
2024-07-07iter_identity is a better nameMichael Goulet-1/+1
2024-07-07Auto merge of #127335 - Oneirical:put-on-a-petestal, r=jieyouxubors-5/+31
Migrate `emit-shared-files` and `emit-path-unhashed` `run-make` tests to rmake Part of #121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html). try-job: x86_64-msvc try-job: aarch64-apple try-job: armhf-gnu try-job: test-various
2024-07-07use "bootstrap" instead of "rustbuild" in comments and docsonur-ozkan-6/+6
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-07-06remove regexesElisha Hollander-28/+27
2024-07-06Auto merge of #17551 - Veykril:has-errors, r=Veykrilbors-3/+6
Also mark InferenceResult::has_errors flag when there are error types Should work around https://github.com/rust-lang/rust-analyzer/issues/15090#issuecomment-2211647133
2024-07-06Also mark InferenceResult::has_errors flag when there are error typesLukas Wirth-3/+6
2024-07-06Auto merge of #17549 - Veykril:runnables-fix, r=Veykrilbors-113/+223
fix: Fix runnables being incorrectly constructed I've misunderstood parts of the code here which caused runnables to arbitrarily break :) (I have yet to understand the conditions that made them break though, there is some odd caching involved I feel like ...) Fixes https://github.com/rust-lang/rust-analyzer/issues/17402
2024-07-06fix: Fix runnables being incorrectly constructedLukas Wirth-113/+223
2024-07-06Auto merge of #17548 - Veykril:debug-fix, r=Veykrilbors-11/+15
fix: Fix passing `message-format` after -- in debugging Fixes https://github.com/rust-lang/rust-analyzer/pull/17495#issuecomment-2211717224
2024-07-06Fix passing message-format after -- in debuggingLukas Wirth-11/+15
2024-07-06offset_from intrinsic: always allow pointers to point to the same addressRalf Jung-3/+0
2024-07-06Auto merge of #17547 - Veykril:runnables-env, r=Veykrilbors-64/+102
internal: Clean up runnable lsp extension This feels like a natural addition to me, and also allows us to drop the expect-test hardcoding from the extension. Additionally, `cargoExtraArgs` is pointless, all the client will do is merge it with `cargoArgs` so the server can do that instead of delegating that to the client.
2024-07-06Don't emit current dir as cwd for runnablesLukas Wirth-17/+22
2024-07-06Flatten cargoExtraArgs away from the runnable lsp extensionLukas Wirth-38/+19
2024-07-06Add environment to runnable lsp extensionLukas Wirth-33/+85
2024-07-06Auto merge of #17508 - jjoeldaniel:landing-page, r=Veykrilbors-0/+128
feat: Add landing/faq walkthrough pages This is a basic implementation of a landing and FAQ page; I've included the bare-bones information as well as a [recommended section on inlay hints](https://rust-lang.zulipchat.com/#narrow/stream/185405-t-compiler.2Frust-analyzer/topic/Landing.20Page/near/446135321). I've also added `rust-analyzer: Open Walkthrough` and `rust-analyzer: Open FAQ` commands for ease of access. I am hoping to create a small list of FAQ to include that might be useful as well as any other information I may have missed in the landing page. Feel free to share any suggestions! ![landing/faq page demo](https://github.com/rust-lang/rust-analyzer/assets/100006388/4644e4f0-4555-4b29-83c1-b048084ad63d) cc #13351
2024-07-06Diagnose unresolved self value in path expressionLukas Wirth-1/+18
2024-07-06Auto merge of #3698 - folkertdev:sched-setaffinity, r=RalfJungbors-37/+507
implement `libc::sched_setaffinity` on linux fixes https://github.com/rust-lang/miri/issues/2749 the implementation, like `libc::sched_getaffinity`, just always returns `EINVAL`, which kind of simulates a device with zero cpus. I believe the idea is that callers of this function always do it to optimize, so they are likely to gracefully recover from this function returning an error. based on the libc crate, these functions are also available on android and freebsd (but not on macos or windows). So should the implementation of the `sched_*` functions just be copied to the android and freebsd shims?
2024-07-06Mark format! with must_use hintlukas-10/+16
2024-07-06`sched_setaffinity`: adjust test on BE systemsFolkert-2/+7
2024-07-06`sched_setaffinity`: test `cpusetsize == 0`Folkert-1/+22
2024-07-06lookup c_ulong instead of hard-coding the chunk sizeRalf Jung-57/+58
2024-07-05Rollup merge of #127098 - Oneirical:big-test-party, r=Kobzol,jieyouxuJubilee-3/+9
Migrate `output-type-permutations` `run-make` test to rmake Part of #121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html). try-job: x86_64-msvc try-job: armhf-gnu try-job: aarch64-apple try-job: test-various
2024-07-05Rollup merge of #125751 - pitaj:new_range_api, r=jhprattJubilee-0/+2
Add `new_range_api` for RFC 3550 Initial implementation for #125687 This includes a `From<legacy::RangeInclusive> for RangeInclusive` impl for convenience, instead of the `TryFrom` impl from the RFC. Having `From` is highly convenient and the debug assert should find almost all misuses. This includes re-exports of all existing `Range` types under `core::range`, plus the range-related traits (`RangeBounds`, `Step`, `OneSidedRange`) and the `Bound` enum. Currently the iterators are just wrappers around the old range types. Tracking issues: - https://github.com/rust-lang/rust/issues/123741 - https://github.com/rust-lang/rust/issues/125687
2024-07-06Merge from rustcThe Miri Cronjob Bot-27/+71
2024-07-06Preparing for merge from rustcThe Miri Cronjob Bot-1/+1
2024-07-05Rollup merge of #127107 - mu001999-contrib:dead/enhance-2, r=pnkfelixMichael Goulet-8/+0
Improve dead code analysis Fixes #120770 1. check impl items later if self ty is private although the trait method is public, cause we must use the ty firstly if it's private 2. mark the adt live if it appears in pattern, like generic argument, this implies the use of the adt 3. based on the above, we can handle the case that private adts impl Default, so that we don't need adding rustc_trivial_field_reads on Default, and the logic in should_ignore_item r? ``@pnkfelix``
2024-07-05add `new_range_api` for RFC 3550Peter Jaszkowiak-0/+2
This includes a `From<legacy::RangeInclusive> for RangeInclusive` impl for convenience, instead of the `TryFrom` impl from the RFC. Having `From` is highly convenient and the assertion is unlikely to be a problem in practice. This includes re-exports of all existing `Range` types under `core::range`, plus the range-related traits (`RangeBounds`, `Step`, `OneSidedRange`) and the `Bound` enum. Currently the iterators are just wrappers around the old range types, and most other trait impls delegate to the old rage types as well. Also includes an `.iter()` shorthand for `.clone().into_iter()`
2024-07-05rewrite raw-dylib-inline-cross-dylib to rmakeOneirical-1/+0
2024-07-05rewrite track-path-dep-info to rmakeOneirical-1/+0
2024-07-05rewrite and rename issue-37839 to rmakeOneirical-3/+15
2024-07-05rewrite pass-linker-flags-from-dep to rmakeOneirical-1/+0
2024-07-05implement `libc::sched_getaffinity` and `libc::sched_setaffinity`Folkert-14/+457
2024-07-05Add shallow_find_files helper function to run-make-supportOneirical-0/+1
2024-07-05Expectations struct for output-type-permutationsOneirical-4/+6
2024-07-05add shallow_find_files helper to run_make_supportOneirical-0/+5
2024-07-05rewrite output-type-permutations to rmakeOneirical-1/+0
2024-07-05rewrite profile to rmakeOneirical-1/+0
2024-07-05rewrite pgo-use to rmakeOneirical-1/+0
2024-07-05rewrite pgo-gen to rmakeOneirical-2/+0
2024-07-05rewrite emit-path-unhashed to rmakeOneirical-4/+31
2024-07-05rewrite emit-shared-files to rmakeOneirical-1/+0
2024-07-05Auto merge of #127360 - GuillaumeGomez:rollup-f0zs1qr, r=GuillaumeGomezbors-8/+55
Rollup of 7 pull requests Successful merges: - #124290 (DependencyList: removed outdated comment) - #126709 (Migrate `include_bytes_deps`, `optimization-remarks-dir-pgo`, `optimization-remarks-dir`, `issue-40535` and `rmeta-preferred` `run-make` tests to rmake) - #127214 (Use the native unwind function in miri where possible) - #127320 (Update windows-bindgen to 0.58.0) - #127349 (Tweak `-1 as usize` suggestion) - #127352 (coverage: Rename `mir::coverage::BranchInfo` to `CoverageInfoHi`) - #127359 (Improve run make llvm ident code) r? `@ghost` `@rustbot` modify labels: rollup
2024-07-05Rollup merge of #127359 - GuillaumeGomez:improve-run-make-llvm-ident-code, ↵Guillaume Gomez-2/+3
r=jieyouxu Improve run make llvm ident code I took the commits that are not blocking https://github.com/rust-lang/rust/pull/127237. r? `@Kobzol`
2024-07-05Rollup merge of #127320 - ChrisDenton:win-sys, r=Mark-SimulacrumGuillaume Gomez-1/+2
Update windows-bindgen to 0.58.0 This also switches from the bespoke `std` generated bindings to the normal `sys` ones everyone else uses. This has almost no difference except that the `sys` bindings use the `windows_targets::links!` macro for FFI imports, which we implement manually. This does cause the diff to look much larger than it really is but the bulk of the changes are mostly contained to the generated code.
2024-07-05Rollup merge of #127214 - bjorn3:miri_native_unwind, r=oli-obkGuillaume Gomez-0/+16
Use the native unwind function in miri where possible Continuation of https://github.com/rust-lang/miri/pull/3319 cc `@RalfJung`
2024-07-05Rollup merge of #126709 - Oneirical:exitestial-crisis, r=jieyouxuGuillaume Gomez-5/+34
Migrate `include_bytes_deps`, `optimization-remarks-dir-pgo`, `optimization-remarks-dir`, `issue-40535` and `rmeta-preferred` `run-make` tests to rmake Part of #121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html). Needs BSD tryjob. try-job: aarch64-apple try-job: x86_64-msvc try-job: armhf-gnu try-job: test-various