about summary refs log tree commit diff
path: root/src/tools
AgeCommit message (Collapse)AuthorLines
2024-07-17run_make_support: move `handle_failed_output` into `util` module许杰友 Jieyou Xu (Joe)-24/+31
2024-07-17run_make_support: move `assert_recursive_eq` into `assertion_helpers`许杰友 Jieyou Xu (Joe)-27/+28
2024-07-17run_make_support: rename `recursive_diff` to `assert_recursive_eq`许杰友 Jieyou Xu (Joe)-3/+3
2024-07-17run_make_support: move assertions and helpers into own module许杰友 Jieyou Xu (Joe)-134/+150
2024-07-17run_make_support: move `run_in_tmpdir` and `test_while_readonly` to ↵许杰友 Jieyou Xu (Joe)-54/+75
`scoped_run` module
2024-07-17run_make_support: move fs helpers to own module许杰友 Jieyou Xu (Joe)-65/+75
2024-07-17run_make_support: move path-related helpers into own module许杰友 Jieyou Xu (Joe)-34/+75
2024-07-17run_make_support: move artifact name helpers into `artifact_names` module许杰友 Jieyou Xu (Joe)-76/+87
2024-07-17run_make_support: move `ar` into own module许杰友 Jieyou Xu (Joe)-14/+30
2024-07-17run_make_support: cleanup and document some lib.rs reexports许杰友 Jieyou Xu (Joe)-1/+10
2024-07-17run_make_support: move external deps to `external_deps` module许杰友 Jieyou Xu (Joe)-24/+49
2024-07-17run_make_support: move `env_var{,_os}` into `env_checked` module许杰友 Jieyou Xu (Joe)-25/+27
2024-07-17run_make_support: move target checks into `targets` module许杰友 Jieyou Xu (Joe)-36/+59
2024-07-17run_make_support: move `impl_common_helpers` into own `macros` module许杰友 Jieyou Xu (Joe)-122/+125
2024-07-17Rename `deprecated_safe` lint to `deprecated_safe_2024`Tobias Bucher-0/+1
Create a lint group `deprecated_safe` that includes `deprecated_safe_2024`. Addresses https://github.com/rust-lang/rust/issues/124866#issuecomment-2142814375.
2024-07-17Migrate `crate-hash-rustc-version` to `rmake`Jerry Wang-1/+0
2024-07-17Auto merge of #17618 - Veykril:rustc_skip_during_method_dispatch, r=Veykrilbors-17/+94
Support rustc_skip_during_method_dispatch Fixes https://github.com/rust-lang/rust-analyzer/issues/17256
2024-07-17Support rustc_skip_during_method_dispatchLukas Wirth-17/+94
2024-07-17Auto merge of #17617 - Veykril:grammar-kind-gen, r=Veykrilbors-757/+816
Derive kinds information from ungrammar file This reduces the need to touch more files when adding a new grammar rule
2024-07-17string is not a keywordLukas Wirth-5/+13
2024-07-17Add always disabled gen parse supportLukas Wirth-55/+376
2024-07-17Derive kinds information from ungrammar fileLukas Wirth-704/+434
2024-07-17Auto merge of #17616 - Veykril:config-param-hints, r=Veykrilbors-6/+6
Fix incorrect generic parameter hint defaults Missed this in the review but we should show const param hints, not lifetime param hints by default
2024-07-17Fix incorrect generic parameter hint defaultsLukas Wirth-6/+6
2024-07-17Auto merge of #127838 - weihanglo:update-cargo, r=weihanglobors-0/+0
Update cargo 31 commits in 154fdac39ae9629954e19e9986fd2cf2cdd8d964..a2b58c3dad4d554ba01ed6c45c41ff85390560f2 2024-07-07 01:28:23 +0000 to 2024-07-16 00:52:02 +0000 - chore(ci): bump CI tools (rust-lang/cargo#14257) - test: migrate fetch and list_availables to snapbox (rust-lang/cargo#14214) - chore: downgrade to jobserver@0.1.28 (rust-lang/cargo#14254) - perf(source): Don't `du` on every git source load (rust-lang/cargo#14252) - fix(source): Don't warn about unreferenced duplicate packages (rust-lang/cargo#14239) - feat(test): Add cargo_test to test-support prelude (rust-lang/cargo#14243) - Add workflow to publish Cargo automatically (rust-lang/cargo#14202) - test: migrate implicit_features to snapbox (rust-lang/cargo#14245) - test: migrate build-std/main to snapbox (rust-lang/cargo#14241) - test: migrate check_cfg to snapbox (rust-lang/cargo#14235) - refactor(source): More RecursivePathSource clean up (rust-lang/cargo#14231) - Add more profiling traces (rust-lang/cargo#14238) - fix(overrides): Don't warn on duplicate packages from using '..' (rust-lang/cargo#14234) - fix(test): Redact elapsed time in the minutes time frame (rust-lang/cargo#14233) - test: Migrate lto tests to snapbox (rust-lang/cargo#14209) - fix: Ensure dep/feature activates the dependency on 2024 (rust-lang/cargo#14221) - chore(docs): update index of reference (rust-lang/cargo#14228) - test: migrate test to snapbox (rust-lang/cargo#14226) - chore: remove duplicate words (rust-lang/cargo#14229) - docs(contrib): Document things I look for in RFCs (rust-lang/cargo#14222) - docs(ref): Note MSRV for features in the docs (rust-lang/cargo#14224) - test(progress): Resolve flakiness (rust-lang/cargo#14223) - fix(test): Reduce over-prescription to the caller (rust-lang/cargo#14217) - refactor: move get_source_id out of registry (rust-lang/cargo#14218) - fix: rename to `rustdoc::broken_intra_doc_links` (rust-lang/cargo#14215) - test: migrate member_errors, multitarget and new to snapbox (rust-lang/cargo#14210) - test: migrate generate_lockfile and glob_targets to snapbox (rust-lang/cargo#14200) - test: Ensure --list test works with cargo-bloat (rust-lang/cargo#14213) - dont make new constant InternedString in hot path (rust-lang/cargo#14211) - Fix compatible_with_older_cargo test. (rust-lang/cargo#14212) - test: migrate metabuild, metadata and net_config to snapbox (rust-lang/cargo#14162)
2024-07-17Add --keep-going to rust-analyzer.cargo.buildScripts.overrideCommand docsLaurențiu Nicola-3/+3
2024-07-16Add `ConstArgKind::Path` and make `ConstArg` its own HIR nodeNoah Lev-11/+21
This is a very large commit since a lot needs to be changed in order to make the tests pass. The salient changes are: - `ConstArgKind` gets a new `Path` variant, and all const params are now represented using it. Non-param paths still use `ConstArgKind::Anon` to prevent this change from getting too large, but they will soon use the `Path` variant too. - `ConstArg` gets a distinct `hir_id` field and its own variant in `hir::Node`. This affected many parts of the compiler that expected the parent of an `AnonConst` to be the containing context (e.g., an array repeat expression). They have been changed to check the "grandparent" where necessary. - Some `ast::AnonConst`s now have their `DefId`s created in rustc_ast_lowering rather than `DefCollector`. This is because in some cases they will end up becoming a `ConstArgKind::Path` instead, which has no `DefId`. We have to solve this in a hacky way where we guess whether the `AnonConst` could end up as a path const since we can't know for sure until after name resolution (`N` could refer to a free const or a nullary struct). If it has no chance as being a const param, then we create a `DefId` in `DefCollector` -- otherwise we decide during ast_lowering. This will have to be updated once all path consts use `ConstArgKind::Path`. - We explicitly use `ConstArgHasType` for array lengths, rather than implicitly relying on anon const type feeding -- this is due to the addition of `ConstArgKind::Path`. - Some tests have their outputs changed, but the changes are for the most part minor (including removing duplicate or almost-duplicate errors). One test now ICEs, but it is for an incomplete, unstable feature and is now tracked at #127009.
2024-07-16Use `ConstArg` for array lengthsNoah Lev-24/+42
2024-07-16hir: Create `hir::ConstArgKind` enumNoah Lev-5/+17
This will allow lowering const params to a dedicated enum variant, rather than to an `AnonConst` that is later examined during `ty` lowering.
2024-07-17Auto merge of #126208 - Oneirical:one-flew-over-the-cuckoo's-test, r=jieyouxubors-23/+80
Migrate `compiler-lookup-paths`, `dump-mono-stats` and `prune-link-args` `run-make` tests to `rmake` or `ui` 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). try-job: x86_64-msvc try-job: aarch64-apple try-job: dist-x86_64-linux try-job: armhf-gnu
2024-07-16Update cargoWeihang Lo-0/+0
2024-07-16Auto merge of #127831 - tgross35:rollup-c0j9n7b, r=tgross35bors-3/+90
Rollup of 7 pull requests Successful merges: - #124033 (Sync ar_archive_writer to LLVM 18.1.3) - #126699 (Delegation: support coercion for target expression) - #126762 (Deny keyword lifetimes pre-expansion) - #126967 (Promote the `wasm32-wasip2` target to Tier 2) - #127390 (Migrate `raw-dylib-inline-cross-dylib` and `raw-dylib-custom-dlltool` `run-make` tests to rmake) - #127501 (Invert infer `error_reporting` mod struture) - #127816 (Update method name to reflect changes to its internals) r? `@ghost` `@rustbot` modify labels: rollup
2024-07-16Rollup merge of #127501 - compiler-errors:invert-infer-error-mod-struture, ↵Trevor Gross-1/+1
r=lcnr Invert infer `error_reporting` mod struture Parallel change to #127493, which moves `rustc_infer::infer::error_reporting` to `rustc_infer::error_reporting::infer`. After this, we should just be able to merge this into `rustc_trait_selection::error_reporting::infer`, and pull down `TypeErrCtxt` into that crate. 👍 r? lcnr
2024-07-16Rollup merge of #127390 - Oneirical:rough-testimation, r=jieyouxuTrevor Gross-2/+0
Migrate `raw-dylib-inline-cross-dylib` and `raw-dylib-custom-dlltool` `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). Please try: try-job: i686-mingw
2024-07-16Rollup merge of #126967 - alexcrichton:wasm32-wasip2-tier-2, r=Mark-SimulacrumTrevor Gross-0/+89
Promote the `wasm32-wasip2` target to Tier 2 This commit promotes the `wasm32-wasip2` Rust target to tier 2 as proposed in rust-lang/compiler-team#760. There are two major changes in this PR: 1. The `dist-various-2` container, which already produces the other WASI targets, now has an extra target added for `wasm32-wasip2`. 2. A new `wasm-component-ld` binary is added to all host toolchains when LLD is enabled. This is the linker used for the `wasm32-wasip2` target. This new linker is added for all host toolchains to ensure that all host toolchains can produce the `wasm32-wasip2` target. This is similar to how `rust-lld` was originally included for all host toolchains to be able to produce WebAssembly output when the targets were first added. The new linker is developed [here][wasm-component-ld] and is pulled in via a crates.io-based dependency to the tree here. [wasm-component-ld]: https://github.com/bytecodealliance/wasm-component-ld
2024-07-16Auto merge of #17611 - Veykril:macro-arg-no-call, r=Veykrilbors-3/+10
fix: Don't call macro_arg directly in `ExpandDatabase::syntax_context`
2024-07-16Don't call macro_arg directly in `ExpandDatabase::syntax_context`Lukas Wirth-3/+10
2024-07-16build_native_static_lib with llvm_ar for run_make_supportOneirical-23/+45
2024-07-16rewrite prune-link-args to rmake formatOneirical-5/+33
2024-07-16rewrite dump-mono-stats to rmake formatOneirical-5/+5
2024-07-16rewrite compiler-lookup-paths to rmakeOneirical-1/+8
2024-07-16Auto merge of #126484 - Oneirical:test-in-peace, r=jieyouxu,kobzolbors-4/+0
Migrate `std-core-cycle`, `obey-crate-type-flag`, `mixing-libs` and `issue-18943` `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: x86_64-apple-1 try-job: x86_64-msvc try-job: aarch64-gnu
2024-07-16Rollup merge of #127805 - Mrmaxmeier:run-make-bump-gimli, r=jieyouxuMatthias Krüger-1/+1
run-make-support: update gimli to 0.31.0 This version bump is required for the tests in #126985 as suggested [here](https://github.com/rust-lang/rust/pull/126985#issuecomment-2196745112). r​? tgross35 (^ that didn't work. cc `@tgross35)` try-job: x86_64-msvc try-job: x86_64-mingw try-job: aarch64-apple try-job: test-various try-job: armhf-gnu try-job: dist-x86_64-linux
2024-07-16Auto merge of #17609 - lnicola:sync-from-rust, r=lnicolabors-2836/+5742
minor: Sync from downstream
2024-07-16Merge from rust-lang/rustLaurențiu Nicola-2835/+5741
2024-07-16Preparing for merge from rust-lang/rustLaurențiu Nicola-1/+1
2024-07-16Set RUSTC_SYSROOT for runnablesLukas Wirth-43/+59
2024-07-16Auto merge of #127617 - lnicola:sync-from-ra, r=lnicolabors-4424/+7363
Subtree update of `rust-analyzer` r? `@ghost`
2024-07-16Remove Name::to_smol_strLukas Wirth-190/+288
2024-07-16More symbol usageLukas Wirth-303/+388