about summary refs log tree commit diff
path: root/src/tools
AgeCommit message (Collapse)AuthorLines
2024-06-30Remove serde flag from indexmap dependencyLukas Wirth-24/+31
2024-06-30Auto merge of #17520 - Veykril:slim-proc-macro-api, r=Veykrilbors-348/+351
internal: Cleanup proc-macro-srv some more
2024-06-30Arc proc-macro expander pathsLukas Wirth-3/+5
2024-06-30Abstract proc-macro-srv protocol formatLukas Wirth-39/+60
2024-06-30SimplifyLukas Wirth-19/+17
2024-06-30Actual dummy server for the server cliLukas Wirth-3/+29
2024-06-30Fix proc-macro-test build scriptLukas Wirth-10/+17
2024-06-30Faster env snapshotting in proc-macro-srvLukas Wirth-117/+147
2024-06-30Move proc-macro-test test path fetching from include to env varLukas Wirth-5/+3
2024-06-30Rename proc-macro-srv::server to server_implLukas Wirth-41/+42
2024-06-30Move proc-macro-srv RUSTC_VERSION fetching from include to env varLukas Wirth-16/+3
2024-06-30Remove inline `rust_2018_idioms, unused_lifetimes` lint warn, Cargo.toml ↵Lukas Wirth-58/+3
already enforces this
2024-06-30Move interior mutability into ProcMacroSrvProcessLukas Wirth-43/+31
2024-06-30Auto merge of #17519 - Veykril:slim-proc-macro-api, r=Veykrilbors-33/+36
internal: Move dylib version stuff to proc-macro-srv The client no longer reads the proc-macro versions, so this has no need to be in the api crate
2024-06-30Move dylib version stuff to proc-macro-srvLukas Wirth-33/+36
2024-06-30Auto merge of #17516 - kilpkonn:master, r=kilpkonnbors-77/+51
Quality of life improvements to term search Basically two things: - Allow optionally disabling "borrow checking" restrictions on term search code assists. Sometimes it is better to get invalid suggestions and fix borrow checking issues later... - Remove explicit generics in generated expressions. I find it quite rare that one writes `None::<T>` instead of `None`.
2024-06-30Auto merge of #17467 - winstxnhdw:bool-to-enum, r=Veykrilbors-17/+112
feat: add bool_to_enum assist for parameters ## Summary This PR adds parameter support for `bool_to_enum` assists. Essentially, the assist can now transform this: ```rs fn function($0foo: bool) { if foo { println!("foo"); } } ``` To this, ```rs #[derive(PartialEq, Eq)] enum Bool { True, False } fn function(foo: Bool) { if foo == Bool::True { println!("foo"); } } ``` Thanks to `@/davidbarsky` for the test skeleton (: Closes #17400
2024-06-30Do not explicit generics to generated expressionsTavo Annus-75/+13
2024-06-30Auto merge of #17518 - Veykril:expr-scopes-mac, r=Veykrilbors-108/+198
fix: Fix expression scope calculation when within macro expansions
2024-06-30SimplifyLukas Wirth-53/+62
2024-06-30Fix expression scope calculation when within macro expansionsLukas Wirth-33/+99
2024-06-30Simplify unresolved proc-macro handlingLukas Wirth-29/+44
2024-06-30Auto merge of #17513 - roife:fix-issue-17500, r=Veykrilbors-8/+48
fix: completions after async kw fix #17500 ### Changes 1. fix completions after async kw 2. fix completions for `async` kw in trait
2024-06-30Improve `run-make-support` library `args` APIGuillaume Gomez-2/+3
2024-06-30Auto merge of #127133 - matthiaskrgr:rollup-jxkp3yf, r=matthiaskrgrbors-4/+188
Rollup of 9 pull requests Successful merges: - #123237 (Various rustc_codegen_ssa cleanups) - #126960 (Improve error message in tidy) - #127002 (Implement `x perf` as a separate tool) - #127081 (Add a run-make test that LLD is not being used by default on the x64 beta/stable channel) - #127106 (Improve unsafe extern blocks diagnostics) - #127110 (Fix a error suggestion for E0121 when using placeholder _ as return types on function signature.) - #127114 (fix: prefer `(*p).clone` to `p.clone` if the `p` is a raw pointer) - #127118 (Show `used attribute`'s kind for user when find it isn't applied to a `static` variable.) - #127122 (Remove uneccessary condition in `div_ceil`) r? `@ghost` `@rustbot` modify labels: rollup
2024-06-29Fix FnMut/Fn shim for coroutine-closures that capture referencesMichael Goulet-9/+18
2024-06-29Add support for mtime override to `generate` and `combine` rust-installer ↵Jakub Beránek-2/+16
commands
2024-06-29Rollup merge of #127002 - Kobzol:bootstrap-perf-tool, r=onur-ozkanMatthias Krüger-0/+185
Implement `x perf` as a separate tool Continues work from https://github.com/rust-lang/rust/pull/126318, adds a CLI for running `rustc-perf` profiling commands through a new `rustc-perf-wrapper` tool. The CLI is in a separate tool to enable experimentation outside of `bootstrap`. This is probably most of what we can do so far, I'll add support for benchmarking once `rustc-perf` gets a terminal output for comparing benchmark results. r? ``@onur-ozkan``
2024-06-29Rollup merge of #126960 - Kobzol:tidy-venv-message, r=tgross35Matthias Krüger-4/+3
Improve error message in tidy The old error message was wrong (there is no `venv` Python package on PyPi), and we did not specify the correct Python path in the error message.
2024-06-29Auto merge of #120639 - fee1-dead-contrib:new-effects-desugaring, r=oli-obkbors-8/+25
Implement new effects desugaring cc `@rust-lang/project-const-traits.` Will write down notes once I have finished. * [x] See if we want `T: Tr` to desugar into `T: Tr, T::Effects: Compat<true>` * [x] Fix ICEs on `type Assoc: ~const Tr` and `type Assoc<T: ~const Tr>` * [ ] add types and traits to minicore test * [ ] update rustc-dev-guide Fixes #119717 Fixes #123664 Fixes #124857 Fixes #126148
2024-06-29Auto merge of #126801 - Oneirical:seek-and-testroy, r=Kobzolbors-3/+13
Migrate `remap-path-prefix`, `debug-assertions` and `emit-stack-sizes` `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 OSX/MSVC try jobs. try-job: aarch64-apple try-job: x86_64-msvc
2024-06-29fix: completions after async kwroife-8/+48
2024-06-29Review changesJakub Beránek-2/+2
2024-06-29Auto merge of #127121 - GuillaumeGomez:rollup-xjjjckn, r=GuillaumeGomezbors-8/+0
Rollup of 7 pull requests Successful merges: - #126805 (Migrate `pdb-alt-path`, `mismatching-target-triples` and `mingw-export-call-convention` `run-make` tests to rmake) - #126995 (Migrate `pretty-print-with-dep-file`, `pretty-print-to-file` and `libtest-padding` `run-make` tests to rmake) - #127041 (Migrate `run-make/override-aliased-flags` to `rmake.rs`) - #127072 (docs: say "includes" instead of "does include") - #127073 (Remove unnecessary SeqCst in `impl fmt::Pointer for AtomicPtr`) - #127112 (Bootstrap: Don't get output if `lldb --version` errors) - #127116 (Migrate `run-make/return-non-c-like-enum` to `rmake.rs`) Failed merges: - #127050 (Make mtime of reproducible tarballs dependent on git commit) r? `@ghost` `@rustbot` modify labels: rollup
2024-06-29Make mtime of reproducible tarball dependent on git commitJakub Beránek-2/+16
2024-06-29Migrate `wasm-exceptions-nostd` to `rmake`Jerry Wang-1/+0
2024-06-29Migrate `wasm-override-linker` to `rmake`Jerry Wang-1/+0
2024-06-29Migrate `weird-output-filenames` to `rmake`Jerry Wang-1/+0
2024-06-29Migrate `volatile-intrinsics` to `rmake`Jerry Wang-1/+0
2024-06-29Rollup merge of #127116 - GuillaumeGomez:run-make-return-non-c-like-enum, ↵Guillaume Gomez-1/+0
r=Kobzol,jieyouxu Migrate `run-make/return-non-c-like-enum` to `rmake.rs` Part of https://github.com/rust-lang/rust/issues/121876. r? `@Kobzol`
2024-06-29Rollup merge of #127041 - GuillaumeGomez:run-make-override-aliased-flags, ↵Guillaume Gomez-1/+0
r=Kobzol Migrate `run-make/override-aliased-flags` to `rmake.rs` Part of https://github.com/rust-lang/rust/issues/121876. I voluntarily didn't use the helper methods to make it obvious what's tested. r? `@jieyouxu`
2024-06-29Rollup merge of #126995 - Oneirical:test-friends-forever, r=KobzolGuillaume Gomez-3/+0
Migrate `pretty-print-with-dep-file`, `pretty-print-to-file` and `libtest-padding` `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).
2024-06-29Rollup merge of #126805 - Oneirical:weaves-of-testiny, r=KobzolGuillaume Gomez-3/+0
Migrate `pdb-alt-path`, `mismatching-target-triples` and `mingw-export-call-convention` `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 MSVC try jobs. try-job: x86_64-mingw try-job: x86_64-msvc
2024-06-29Auto merge of #127119 - RalfJung:miri-sync, r=RalfJungbors-417/+906
Miri subtree update r? `@ghost`
2024-06-29Migrate `run-make/return-non-c-like-enum` to `rmake.rs`Guillaume Gomez-1/+0
2024-06-29iter_exported_symbols: also walk used statics in local crateRalf Jung-8/+43
2024-06-29Migrate `run-make/override-aliased-flags` to `rmake.rs`Guillaume Gomez-1/+0
2024-06-29Auto merge of #127111 - matthiaskrgr:rollup-ybzkuuv, r=matthiaskrgrbors-3/+3
Rollup of 9 pull requests Successful merges: - #126822 (Bootstrap command refactoring: port more `Command` usages to `BootstrapCmd` (step 2)) - #126835 (Simplifications in match lowering) - #126953 (std: separate TLS key creation from TLS access) - #127045 (Rename `super_predicates_of` and similar queries to `explicit_*` to note that they're not elaborated) - #127075 (rustc_data_structures: Explicitly check for 64-bit atomics support) - #127101 (remove redundant match statement from dataflow const prop) - #127102 (Rename fuchsia builder and bump Fuchsia) - #127103 (Move binder and polarity parsing into `parse_generic_ty_bound`) - #127108 (unify `dylib` and `bin_helpers` and create `shared_helpers::parse_value_from_args`) r? `@ghost` `@rustbot` modify labels: rollup
2024-06-29Make borrow checking configurable for term searchTavo Annus-2/+38
2024-06-29Rollup merge of #127045 - compiler-errors:explicit, r=oli-obkMatthias Krüger-3/+3
Rename `super_predicates_of` and similar queries to `explicit_*` to note that they're not elaborated Rename: * `super_predicates_of` -> `explicit_super_predicates_of` * `implied_predicates_of` -> `explicit_implied_predicates_of` * `supertraits_containing_assoc_item` -> `explicit_supertraits_containing_assoc_item` This makes it clearer that, unlike (for example) [`TyCtxt::super_traits_of`](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/context/struct.TyCtxt.html#method.super_traits_of), we don't automatically elaborate this set of predicates. r? ``@lcnr`` or ``@oli-obk`` or someone from t-types idc