about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2025-01-08internal: Migrate `unwrap_return_type` assist to use `SyntaxEditor`Giga Bowser-58/+76
Also changes `make::expr_empty_block()` to return `ast::BlockExpr` instead of `ast::Expr`
2025-01-08internal: Migrate `wrap_return_type` assist to use `SyntaxEditor`Giga Bowser-63/+168
2025-01-08fmtPietro Albini-1/+1
2025-01-08applease clippyPietro Albini-8/+8
2025-01-08update cfg(bootstrap)Pietro Albini-8/+1
2025-01-08bump stage0Pietro Albini-450/+462
2025-01-08update version placeholdersPietro Albini-1/+1
2025-01-08Add config setting which allows adding additional include paths to the VFS.Nicholas Rishel-3/+67
2025-01-08refactor test helpers within ide-completionsVishruth-Thimmaiah-448/+322
2025-01-08Rollup merge of #135253 - pietroalbini:pa-revert-131365, r=Mark-SimulacrumMatthias Krüger-79/+5
Revert #131365 This PR reverts #131365, following the revert we did on the beta branches for both 1.84 and 1.85. While the PR passes CI successfully on master, as soon as we branch off beta it starts failing in the newly created beta branch. This caused the release team to revert it for both 1.84 and 1.85, and if nothing is done it would continue being reverted every cycle. `@heiseish` (PR author) feel free to submit the PR again in the future: this revert doesn't represent the release team rejecting your change, but just a (hopefully temporary!) revert to ensure future beta branches can be created without reverting it each time. When submitting the PR again, I recommend you test your changes by configuring `rust.channel` to both `nightly` and `beta` in your `config.toml`. You can see the latest failure [here](https://github.com/rust-lang/rust/pull/135163#issuecomment-2576373995).
2025-01-08Error if there is nothing to pullJakub Beránek-0/+10
2025-01-08Print an explicit message if the base repo head commit is up-to-dateJakub Beránek-0/+5
2025-01-08Update keyMartin Liska-3/+3
2025-01-08Save linkcheck cache alwaysMartin Liska-7/+19
2025-01-08Move `mod cargo` below the import statementsonur-ozkan-2/+2
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-01-08fix: requested changedqjerome-9/+4
2025-01-08fix: autogenerate filesqjerome-9/+12
2025-01-08Revert "fix missing rustfmt and clippy for msi"Pietro Albini-70/+2
This reverts commit f5577a8174685aca342b9189e625648f25a23a20.
2025-01-08Revert "fix missing rustfmt for apple darwin"Pietro Albini-9/+3
This reverts commit 2316749ca954030afed6145342808a8c1ae29fac.
2025-01-08Merge from rustcJakub Beránek-5565/+33249
2025-01-08Preparing for merge from rustcJakub Beránek-1/+1
2025-01-08refactor: struct holding cargo cfgs settingsqjerome-6/+15
2025-01-08Merge pull request #18884 from Veykril/push-xwqkorxozzkqLukas Wirth-34/+40
fix: Fix `env`/`option_env` macro check disregarding macro_rules definitions
2025-01-08fix: Fix `env`/`option_env` macro check disregarding macro_rules definitionsLukas Wirth-34/+40
2025-01-08Merge pull request #18855 from Giga-Bowser/migrate-if-letLukas Wirth-154/+433
internal: Migrate `if let` replacement assists to `SyntaxEditor`
2025-01-08Merge from rustcRalf Jung-7744/+38476
2025-01-08Preparing for merge from rustcRalf Jung-1/+1
2025-01-08Fix test-fixture autopublishingLaurențiu Nicola-2/+4
2025-01-08Rename PatKind::Lit to ExprOli Scherer-39/+39
2025-01-08Exhaustively handle expressions in patternsOli Scherer-85/+198
2025-01-08Add more comments to some of the test stepsZalathar-0/+43
2025-01-08Auto merge of #135207 - lnicola:sync-from-ra, r=lnicolabors-5399/+32947
Subtree update of `rust-analyzer` r? `@ghost`
2025-01-07Include rustc and rustdoc book in replace-version-placeholderUrgau-1/+6
2025-01-07Fix a bug with missing binding in MBEChayim Refael Friedman-1/+2732
We should immediately mark them as finished, on the first entry. The funny (or sad) part was that this bug was pre-existing, but previously to #18327, it was causing us to generate bindings non-stop, 65535 of them, until we get to the hardcoded repetition limit, and then throw it all away. And it was so Blazingly Fast that nobody noticed. With #18327 however, this is still what happens, except that now instead of *merging* the fragments into the result, we write them on-demand. Meaning that when we hit the limit, we've already written all previous entries. This is a minor change, I thought for myself when I was writing this, and it's actually for the better, so who cares. Minor change? Not so fast. This caused us to emit 65535 repetitions, all of which the MBE infra needs to handle when calling other macros with the expansion, and convert to rowan tree etc., which resulted a *massive* hang. The test (and also `analysis-stats`) used to crash with stack overflow on this macro, because we were dropping some crazily deep rowan tree. Now they work properly. Because I am lazy, and also because I could not find the exact conditions that causes a macro match but with a missing binding, I just copied all macros from tracing. Easy.
2025-01-07Rollup merge of #135200 - jieyouxu:stabilize-style-edition, ↵Matthias Krüger-6/+6
r=ytmimi,compiler-errors rustfmt: drop nightly-gating of the `--style-edition` flag registration Follow-up to [Stabilize `style_edition = "2024"` in-tree #134929](https://github.com/rust-lang/rust/pull/134929). #134929 un-nightly-gated the *read* of `--style-edition`, but didn't also un-nightly-gate the *registration*/*declaration* of the `--style-edition` flag itself. Reading `--style-edition` on a non-nightly channel (e.g. beta) will thus panic because `--style-edition` is never declared. This PR also un-nightly-gates the registration. Not sure how to write a regression test for this, because this *requires* the non-nightly / beta channel. Though existing tests do fail (albeit indirectly). Checking if this fixes the panic against beta in https://github.com/rust-lang/rust/pull/135197. r? rustfmt
2025-01-07Rollup merge of #135171 - notriddle:notriddle/stable-path-is-better, ↵Matthias Krüger-1/+7
r=GuillaumeGomez rustdoc: use stable paths as preferred canonical paths This accomplishes something like 16a4ad7d7b0d163f7be6803c786c3b83d42913bb, but with the `rustc_allowed_through_unstable_modules` attribute instead of the path length. Fixes #131676
2025-01-07Rollup merge of #134989 - max-niederman:guard-patterns-hir, r=oli-obkMatthias Krüger-5/+22
Lower Guard Patterns to HIR. Implements lowering of [guard patterns](https://rust-lang.github.io/rfcs/3637-guard-patterns.html) (see the [tracking issue](#129967)) to HIR.
2025-01-07Fix rib exampleSamson-3/+3
related zulip thread: https://rust-lang.zulipchat.com/#narrow/channel/182449-t-compiler.2Fhelp/topic/Ribs.20in.20name.20resolution
2025-01-07Update rustc-dev-guideJakub Beránek-5/+13
2025-01-07Apply review commentsJakub Beránek-58/+93
2025-01-07Make it possible to select PR vs auto jobsJakub Beránek-9/+22
2025-01-07Rename `image` property of CI jobs to `name`Jakub Beránek-84/+96
The `image` part didn't really make sense, especially since we started splitting CI jobs.
2025-01-07Update documentationJakub Beránek-13/+14
2025-01-07Add a command to run a given Linux CI job locallyJakub Beránek-19/+67
2025-01-07Rename CI script from `calculate-job-matrix` to `ci.py`Jakub Beránek-0/+0
2025-01-07Merge from rust-lang/rustLaurențiu Nicola-3562/+365102
2025-01-07Preparing for merge from rust-lang/rustLaurențiu Nicola-1/+1
2025-01-07Update tests.Mara Bos-12/+15
2025-01-07Rollup merge of #135198 - joshtriplett:str-is-a-type, r=jieyouxuGuillaume Gomez-7/+7
Avoid naming variables `str` This renames variables named `str` to other names, to make sure `str` always refers to a type. It's confusing to read code where `str` (or another standard type name) is used as an identifier. It also produces misleading syntax highlighting.
2025-01-07Rollup merge of #135193 - onur-ozkan:tidy-cache-invalidation, r=jieyouxuGuillaume Gomez-7/+10
don't bless `proc_macro_deps.rs` unless it's necessary Running tidy with `--bless` flag is breaking the build cache as tidy updates mtime of `proc_macro_deps.rs` (https://github.com/rust-lang/rust/pull/134865) unconditionally and that leads cargo to recompile tidy. This patch fixes that.