about summary refs log tree commit diff
path: root/src/tools
AgeCommit message (Collapse)AuthorLines
2024-06-19Auto merge of #17431 - roife:fix-issue-17428, r=Veykrilbors-24/+193
feat: add space after specific keywords in completion fix #17428. When completing some specific keywords, it would be convenient if r-a could automatically add a space afterwards. This PR implements this feature for the following keywords: - Visibility: `pub`, `pub(crate)`, `pub(super)`, `pub(in xxx)` - Pattern: `ref` / `mut` - Others: `unsafe` / `for` / `where`
2024-06-19Auto merge of #17426 - roife:fix-issue-17420, r=Veykrilbors-1/+21
fix: handle character boundaries for wide chars in extend_selection fix #17420. When calling 'extend_selection' within a string, r-a attempts to locate the current word at the cursor. This is done by finding the first char before the cursor which is not a letter, digit, or underscore. The position of this character is referred to as `start_idx`, and the word is considered to start from `start_idx + 1`. However, for wide characters, `start_idx + 1` is not character boundaries, which leading to panic. We should use `ceil_char_boundary` to ensure that the idx is always on character boundaries.
2024-06-19Auto merge of #17415 - Wilfred:unlinked_diagnostic_span, r=Veykrilbors-3/+23
fix: Only show unlinked-file diagnostic on first line during startup This partially reverts #17350, based on the feedback in #17397. If we don't have an autofix, it's more annoying to highlight the whole file. This autofix heuristic fixes the diagnostic being overwhelming during startup.
2024-06-19Rollup merge of #125787 - Oneirical:infinite-test-a-novel, r=jieyouxuLeón Orell Valerian Liehr-6/+23
Migrate `bin-emit-no-symbols` `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
2024-06-19Auto merge of #17455 - Veykril:vscode-ext, r=Veykrilbors-171/+143
Tidy up vscode extension a bit
2024-06-19Tidy up vscode extension a bitLukas Wirth-171/+143
2024-06-19Merge from rustcThe Miri Cronjob Bot-41/+86
2024-06-19Preparing for merge from rustcThe Miri Cronjob Bot-1/+1
2024-06-19Auto merge of #126657 - weihanglo:update-cargo, r=weihanglobors-0/+0
Update cargo 13 commits in a1f47ec3f7cd076986f1bfcd7061f2e8cb1a726e..3ed207e416fb2f678a40cc79c02dcf4f936a21ce 2024-06-15 01:10:07 +0000 to 2024-06-18 19:18:22 +0000 - test: prefer raw string for regex reduction (rust-lang/cargo#14099) - test: migrate tree and tree_graph_features to snapbox (rust-lang/cargo#14094) - test: Migrate some files to snapbox (rust-lang/cargo#14069) - remove some legacy public dependency code from the resolver (rust-lang/cargo#14090) - fix(fix): Address problems with implicit -&gt; explicit feature migration (rust-lang/cargo#14018) - refactor: 1.79 cleanup (rust-lang/cargo#14088) - test: migrate `git_(gc|shallow)` to snapbox (rust-lang/cargo#14087) - test: migrate timings_works to snapbox (rust-lang/cargo#14082) - test: migrate minimal_versions to snapbox (rust-lang/cargo#14080) - Remove `run_expect_error` to avoid tests incorrectly passing (rust-lang/cargo#14078) - test: migrate help to snapbox (rust-lang/cargo#14060) - test: Migrate tests/testsuite/co*.rs to snapbox (rust-lang/cargo#14079) - Use `std::fs::absolute` instead of reimplementing it (rust-lang/cargo#14075) <!-- r? ghost -->
2024-06-18Update cargoWeihang Lo-0/+0
2024-06-18Auto merge of #126607 - Oneirical:the-testern-world, r=jieyouxubors-3/+0
Rewrite `separate-link`, `separate-link-fail` and `allocator-shim-circular-deps` `run-make` tests to `ui` or `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).
2024-06-18Migrate `run-make/rustdoc-io-error` to `rmake.rs`Guillaume Gomez-1/+0
2024-06-18rewrite extern-overrides-distribution to rmakeOneirical-1/+0
2024-06-18rewrite metadata-flag-frobs-symbols to rmakeOneirical-1/+6
2024-06-18rewrite debugger-visualizer-dep-info to rmakeOneirical-1/+0
2024-06-18rewrite extern-flag-rename-transitive to rmakeOneirical-1/+0
2024-06-18Migrate `run-make/compressed-debuginfo` to `rmake.rs`Guillaume Gomez-1/+0
2024-06-18Add tactic for associated item constantsTavo Annus-20/+118
2024-06-18use llvm_readobj in run-make test instead of nmOneirical-55/+23
2024-06-18try implementing suggestionsOneirical-3/+5
2024-06-18run_make_support nm implementation + bin-emit-no-symbols rmake rewriteOneirical-1/+48
2024-06-18rewrite allocator-shim-circular-deps to ui testOneirical-1/+0
2024-06-18Rewrite lto-readonly-lib to rmakeOneirical-1/+0
2024-06-18Rewrite ls-metadata to rmakeOneirical-1/+0
2024-06-18Rewrite link-args-order to rmakeOneirical-1/+24
2024-06-18Auto merge of #126623 - oli-obk:do_not_count_errors, r=davidtwcobors-13/+15
Replace all `&DiagCtxt` with a `DiagCtxtHandle<'_>` wrapper type r? `@davidtwco` This paves the way for tracking more state (e.g. error tainting) in the diagnostic context handle Basically I will add a field to the `DiagCtxtHandle` that refers back to the `InferCtxt`'s (and others) `Option<ErrorHandled>`, allowing us to immediately taint these contexts when emitting an error and not needing manual tainting anymore (which is easy to forget and we don't do in general anyway)
2024-06-18Remove redundant argument from `subdiagnostic` methodOli Scherer-1/+1
2024-06-18Use a dedicated type instead of a reference for the diagnostic contextOli Scherer-12/+14
This paves the way for tracking more state (e.g. error tainting) in the diagnostic context handle
2024-06-18Auto merge of #126630 - GuillaumeGomez:rollup-hlwbpa2, r=GuillaumeGomezbors-6/+0
Rollup of 5 pull requests Successful merges: - #125988 (Migrate `run-make/used` to `rmake.rs`) - #126500 (Migrate `error-found-staticlib-instead-crate`, `output-filename-conflicts-with-directory`, `output-filename-overwrites-input`, `native-link-modifier-verbatim-rustc` and `native-link-verbatim-linker` `run-make` tests to `rmake.rs` format) - #126583 (interpret: better error when we ran out of memory) - #126587 (coverage: Add debugging flag `-Zcoverage-options=no-mir-spans`) - #126621 (More thorough status-quo tests for `#[coverage(..)]`) r? `@ghost` `@rustbot` modify labels: rollup
2024-06-18Rollup merge of #126500 - Oneirical:test-for-the-holy-grail, r=jieyouxuGuillaume Gomez-5/+0
Migrate `error-found-staticlib-instead-crate`, `output-filename-conflicts-with-directory`, `output-filename-overwrites-input`, `native-link-modifier-verbatim-rustc` and `native-link-verbatim-linker` `run-make` tests to `rmake.rs` format Part of #121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html).
2024-06-18Rollup merge of #125988 - GuillaumeGomez:migrate-run-make-used, r=jieyouxuGuillaume Gomez-1/+0
Migrate `run-make/used` to `rmake.rs` Part of https://github.com/rust-lang/rust/issues/121876. r? `@jieyouxu`
2024-06-18Auto merge of #126437 - Oneirical:test-we-forget, r=jieyouxubors-4/+32
Migrate `issue-64153`, `invalid-staticlib` and `no-builtins-lto` `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
2024-06-18Auto merge of #126049 - compiler-errors:rework-use, r=oli-obkbors-12/+11
Rework `feature(precise_capturing)` to represent `use<...>` as a syntactical bound Reworks `precise_capturing` for a recent lang-team consensus. Specifically: > The conclusion of the team is that we'll make use<..> a bound. That is, we'll support impl use<..> + Trait, impl Trait + use<..>, etc. > For now, we will support at most one such bound in a list of bounds, and semantically we'll only support these bounds in the item bounds of RPIT-like impl Trait opaque types (i.e., in the places discussed in the RFC). Lang decision in favor of this approach: - https://github.com/rust-lang/rust/issues/125836#issuecomment-2151351849 Tracking: - https://github.com/rust-lang/rust/issues/123432
2024-06-18Merge from rustcThe Miri Cronjob Bot-22/+83
2024-06-18Preparing for merge from rustcThe Miri Cronjob Bot-1/+1
2024-06-18Auto merge of #126490 - Oneirical:testicide, r=jieyouxubors-3/+28
Migrate `extern-flag-fun`, `incremental-debugger-visualiser` and `incremental-session-fail` `run-make` tests to `rmake.rs` 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: arm-android try-job: armhf-gnu try-job: test-various try-job: x86_64-msvc try-job: dist-i686-mingw
2024-06-17Fix other toolsMichael Goulet-4/+1
2024-06-17Fix rustfmtMichael Goulet-7/+9
2024-06-17Rework precise capturing syntaxMichael Goulet-1/+1
2024-06-18Auto merge of #126279 - Oneirical:you-can-run-make-but-cannot-hide, r=jieyouxubors-3/+32
Migrate `inaccessible-temp-dir`, `output-with-hyphens` and `issue-10971-temps-dir` `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
2024-06-18Update lib.rsabdullathedruid-1/+1
2024-06-17Update outdated README in build-manifest.Eric Huss-1/+1
I believe this was changed a while ago in https://github.com/rust-lang/promote-release/pull/14.
2024-06-17Auto merge of #125500 - Oneirical:bundle-them-up-why-not, r=jieyouxubors-18/+50
Migrate `link-arg`, `link-dedup` and `issue-26092` `run-make` tests to `rmake` format Part of #121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html). All of these tests check if rustc's output contains (or does not) contain certain strings. Does that mean these could be better suited to becoming UI/codegen tests? try-job: x86_64-msvc
2024-06-17rewrite separate-link-fail to rmake.rsOneirical-1/+0
2024-06-17rewrite no-builtins-lto to rmakeOneirical-1/+0
2024-06-17rewrite separate-link to rmake.rsOneirical-1/+0
2024-06-17rewrite native-link-modifier-linker to rmakeOneirical-1/+0
2024-06-17Add new test_while_readonly helper function to run-make-supportOneirical-0/+32
2024-06-17Rollup merge of #126567 - compiler-errors:instance-kind, r=oli-obk,lcnrMatthias Krüger-1/+1
Rename `InstanceDef` -> `InstanceKind` Renames `InstanceDef` to `InstanceKind`. The `Def` here is confusing, and makes it hard to distinguish `Instance` and `InstanceDef`. `InstanceKind` makes this more obvious, since it's really just describing what *kind* of instance we have. Not sure if this is large enough to warrant a types team MCP -- it's only 53 files. I don't personally think it does, but happy to write one if anyone disagrees. cc ``@rust-lang/types`` r? types
2024-06-17Rewrite and rename `issue-26092` to rmakeOneirical-16/+50