about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2025-01-06internal: Migrate `replace_let_with_if_let` assist to `SyntaxEditor`Giga Bowser-15/+12
2025-01-06internal: Add some pattern constructors to `SyntaxFactory`Giga Bowser-0/+26
2025-01-06internal: Add some expr constructors to `SyntaxFactory`Giga Bowser-2/+175
2025-01-06internal: Add some path constructors to `SyntaxFactory`Giga Bowser-1/+77
2025-01-06internal: `make::expr_match` should return `ast::MatchExpr`Giga Bowser-9/+9
2025-01-06internal: Generally improve `make::match_arm`Giga Bowser-56/+53
`make::match_arm` should take a single `ast::Pat`, and callers can handle creating an `ast::OrPat` if need be. It should also take a proper `ast::MatchGuard`, instead of making one itself.
2025-01-06internal: move `make::expr_unit` to `make::ext::expr_unit`Giga Bowser-18/+18
`expr_unit` is just a shortcut for a common expression, so it belongs in `make::ext`
2025-01-06internal: `make::expr_tuple` should return `ast::TupleExpr`Giga Bowser-8/+9
2025-01-06internal: `make::expr_if` should return `ast::IfExpr`Giga Bowser-7/+8
2025-01-06internal: `make::expr_prefix` should return `ast::PrefixExpr`Giga Bowser-8/+8
2025-01-06internal: Generalize `make::expr_from_text` to types which implement ↵Giga Bowser-1/+1
`Into<ast::Expr>` This will help with specializing the various `make::expr_*` functions later
2025-01-06Rename dependency tree view and dependency providerGiga Bowser-18/+18
2025-01-06avoid replacing the definition of CURRENT_RUSTC_VERSIONPietro Albini-6/+1
Before this commit, replace-version-placeholder hardcoded the path defining CURRENT_RUSTC_VERSION (to avoid replacing it). After a refactor moved the file defining it without changing the hardcoded path, the tool started replacing the constant itself with the version number. To avoid this from happening in the future, this changes the definition of the constant to avoid the tool from ever matching it.
2025-01-06Fix case where completion inside macro that expands to `#[test]` was unavailableChayim Refael Friedman-5/+105
We ignore `#[test]` in the def map, so that's why it failed.
2025-01-06Rollup merge of #135157 - bjorn3:fix_rustdoc_error_abort, ↵Matthias Krüger-4/+4
r=jieyouxu,GuillaumeGomez Move the has_errors check in rustdoc back to after TyCtxt is created This was accidentally moved before TyCtxt creation by https://github.com/rust-lang/rust/pull/134302.
2025-01-06Rollup merge of #135153 - crystalstall:master, r=workingjubileeMatthias Krüger-1/+1
chore: remove redundant words in comment
2025-01-06Rollup merge of #135146 - Zalathar:anyhow-backtrace, r=jieyouxuMatthias Krüger-1/+1
Don't enable anyhow's `backtrace` feature in opt-dist As of the stabilization of `std::backtrace` in Rust 1.65, this package flag has no effect other than to enable an unused dependency on the `backtrace` crate. (See <https://github.com/dtolnay/anyhow/blob/af0937ef72fbaf9784a6c991e029738728d025e2/Cargo.toml#L18-L23>.) While the presence of this feature in opt-dist doesn't cause other tools (which use anyhow) to actually *build* backtrace, it does affect the global crate graph used for dependency version resolution. After removing this feature, we can use `cargo tree --invert --package backtrace` to see that the only remaining reverse-dependency of backtrace is `color-eyre`, which is used by `ui_test`.
2025-01-06Rollup merge of #135097 - Zalathar:coverage-test-step, r=KobzolMatthias Krüger-120/+101
bootstrap: Consolidate coverage test suite steps into a single step Now that I have more understanding of bootstrap steps, and a renewed distaste for unnecessary macros, I have managed to express the subtleties of the `tests/coverage` test suite in a single step defined in ordinary code, with no need for helper macros. Deciding which modes to run is still a bit clunky due to limitations in existing ShouldRun/PathSet APIs, but I think it's a net improvement over having to declare several different steps to handle the suite path and aliases. The interaction with `--skip` isn't as nice as I'd like, but all of the known limitations are limitations that already existed in the previous implementation. One minor change is that by default compiletest is now invoked in `coverage-run` mode even when cross-compiling. However, in that situation compiletest still knows that it should skip all of the individual coverage-run tests. r? jieyouxu (or reassign)
2025-01-06rustdoc: use stable paths as preferred canonical pathsMichael Howell-1/+7
This accomplishes something like 16a4ad7d7b0d163f7be6803c786c3b83d42913bb, but with the `rustc_allowed_through_unstable_modules` attribute instead of the path length.
2025-01-06Merge pull request #18852 from ChayimFriedman2/proc-macro-panicLaurențiu Nicola-14/+82
fix: Fix a bug that was caused by fixup reversing
2025-01-06Fix a bug that was caused by fixup reversingChayim Refael Friedman-14/+82
2025-01-06Merge pull request #18846 from Veykril/push-kmspklwynynuLukas Wirth-201/+180
minor: New clippy lints
2025-01-06Only keep label description in Forge docs许杰友 Jieyou Xu (Joe)-61/+1
2025-01-06minor: New clippy lintsLukas Wirth-201/+180
2025-01-06Add new `{x86_64,i686}-win7-windows-gnu` targetsTobias Bucher-2/+57
These are in symmetry with `{x86_64,i686}-win7-windows-msvc`.
2025-01-06Escape all `*` in rustc's SUMMARY.mdTobias Bucher-9/+9
2025-01-06fix: Fix non-cargo flychecks immediately clearing received diagnosticsLukas Wirth-3/+5
2025-01-06Move the has_errors check in rustdoc back to after TyCtxt is createdbjorn3-4/+4
2025-01-06Ensure generate-copyright is executed from the project root.Jonathan Pallant-1/+7
2025-01-06Merge pull request #18836 from Veykril/push-kksuoxxptvtyLukas Wirth-1/+6
fix: Be more permissive with completion resolve data
2025-01-06Add rustc-dev-guide to the list of repositories managed by josh (#2197)Jakub Beránek-1/+3
2025-01-06fix: Be more permissive with completion resolve dataLukas Wirth-1/+6
2025-01-06Merge pull request #18845 from Veykril/push-yyuolqomnkysLukas Wirth-53/+58
fix: Fix flycheck getting confused which package to check
2025-01-06Consolidate coverage test suite steps into a single stepZalathar-120/+101
2025-01-06fix: Fix flycheck getting confused which package to checkLukas Wirth-53/+58
2025-01-06Add support for wasm exception handling to Emscripten targetHood Chatham-0/+6
Gated behind an unstable `-Z emscripten-wasm-eh` flag
2025-01-06Merge pull request #18843 from Veykril/push-usuzxtzsnrptLukas Wirth-9/+24
fix: Handle newstyle `rustc_intrinsic` safety correctly
2025-01-06fix: Handle newstyle `rustc_intrinsic` safety correctlyLukas Wirth-9/+24
2025-01-06fix: Fix relative .cargo env vars not workingLukas Wirth-7/+30
2025-01-06chore: remove redundant words in commentcrystalstall-1/+1
Signed-off-by: crystalstall <crystalruby@qq.com>
2025-01-06Auto merge of #135085 - knickish:m68k_unknown_none, r=workingjubileebors-0/+111
add m68k-unknown-none-elf target r? `@workingjubilee` The existing `m68k-unknown-linux-gnu` target builds `std` by default, requires atomics, and has a base cpu with an fpu. A smaller/more embedded target is desirable both to have a baseline target for the ISA, as well to make debugging easier for working on the llvm backend. Currently this target is using the `M68010` as the minimum CPU due, but as missing features are merged into the `M68k` llvm backend I am hoping to lower this further. I have been able to build very small crates using a toolchain built against this target (together with a later version of `object`) using the configuration described in the target platform-support documentation, although getting anything of substantial complexity to build quickly hits errors in the llvm backend
2025-01-06Don't enable anyhow's `backtrace` feature in opt-distZalathar-1/+1
As of the stabilization of `std::backtrace` in Rust 1.65, this package flag has no effect other than to enable an unused dependency on the `backtrace` crate.
2025-01-05Auto merge of #135127 - Kobzol:rustc-dev-guide-sync, r=BoxyUwUbors-433/+1249
rustc-dev-guide subtree update This PR performs the first update of rustc-dev-guide code from its repository. r? `@BoxyUwU`
2025-01-06add josh-sync build dir to gitignore (#2196)Boxy-0/+2
2025-01-05Preparing for merge from rustcJakub Beránek-0/+1
2025-01-05Preparing for merge from rustcJakub Beránek-0/+1
2025-01-05Remove other maintainersknickish-2/+0
Co-authored-by: Jubilee <workingjubilee@gmail.com>
2025-01-05Split stuff out of representing types, and rewrite early/late bound chapter ↵Boxy-370/+433
(#2192)
2025-01-05Describe how to use rust-analyzer with `rmake.rs` (#2191)Stuart Cook-0/+40
2025-01-05fix commentTshepang Mbambo-2/+1