about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2025-01-20don't ICE when emitting linker errors during `-Z link-only`jyn-1/+1
note that this still ICEs when passed `-Z link-only --error-format json` because i can't be bothered to fix it right now
2025-01-20ignore linker errors on all platformsjyn-0/+9
2025-01-20Rollup merge of #135775 - lnicola:sync-from-ra, r=lnicolaMatthias Krüger-2920/+9088
Subtree update of `rust-analyzer` r? ``@ghost``
2025-01-20Rollup merge of #135333 - vayunbiyani:test-environment, r=RalfJungMatthias Krüger-85/+60
Partial progress on #132735: Replace extern "rust-intrinsic" with #[rustc_intrinsic] across the codebase Part of #132735: Replace `extern "rust-intrinsic"` with `#[rustc_intrinsic]` macro - Updated all instances of `extern "rust-intrinsic"` to use the `#[rustc_intrinsic]` macro. - Skipped `.md` files and test files to avoid unnecessary changes.
2025-01-20Fix another bug with completion of trait items inside macrosChayim Refael Friedman-11/+36
This time, when completing the keyword (e.g. `fn` + whitespace). The bug was actually a double-bug: First, we did not resolve the impl in the macro-expanded file but in the real file, which of course cannot work. Second, in analysis the whitespace was correlated with the `impl` and not the incomplete `fn`, which caused fake (where we insert an identifier after the whitespace) and real expansions to go out of sync, which failed analysis. The fix is to skip whitespaces in analysis.
2025-01-20fix: Only refresh syntax tree view when the active document changesGiga Bowser-1/+8
2025-01-20core: add `#![warn(unreachable_pub)]`Urgau-5/+5
2025-01-20Send a message to Zulip when a sync finishesJakub Beránek-2/+32
2025-01-20CI: free disk on linux arm runnerMarcoIeni-0/+2
2025-01-20Goto `Display::fmt` when invoked on `to_string`Lukas Wirth-0/+49
2025-01-20Bring back goto def redirect for parse -> FromStrLukas Wirth-4/+59
2025-01-20Move dual blanket impl logic from source analyzer to goto_defLukas Wirth-114/+93
2025-01-20Merge pull request #2215 from Kobzol/pullJakub Beránek-3187/+6352
rustc pull
2025-01-20fix: upmap ranges in convert_tuple_struct_to_named_struct assistVishruth-Thimmaiah-1/+101
fixes #18766
2025-01-20Updated several files to use rust intrinsic macros instead of the legacy ↵vayunbiyani-85/+60
extern "rust-intrinsic" blocks
2025-01-20Merge pull request #18967 from Veykril/push-pwonkmwqmmolLukas Wirth-265/+368
Properly record meaningful imports as re-exports in symbol index
2025-01-20Merge pull request #18934 from 1hakusai1/goto_definition_from_intoLukas Wirth-2/+278
feat: Add the ability to jump from `into` to `from` definitions
2025-01-20Merge pull request #18982 from Veykril/push-lstmvzsowxytLukas Wirth-7/+15
Extract variable assist triggers less eagerly
2025-01-20Rollup merge of #135658 - Kobzol:src-tarball-remove-gcc, r=jieyouxu许杰友 Jieyou Xu (Joe)-1/+12
Do not include GCC source code in source tarballs The licensing story is unclear, it makes the archive much larger, and we should not need it for building anything in the tarballs (yet). ``` Before: 121s building the archive 1.3 GiB gzipped size 5.7 GiB extracted size 402519 extracted files After: 64s building the archive 961 MiB gzipped size 4.5 GiB extracted size 257719 extracfed files ``` Fixes: https://github.com/rust-lang/rust/issues/135606 r? `@ehuss`
2025-01-20Rollup merge of #135433 - tanvincible:patch-1, r=onur-ozkan许杰友 Jieyou Xu (Joe)-4/+7
Add Profile Override for Non-Git Sources ## PR description - Fixes #135358 This PR introduces the following updates to 1. `bootstrap.py`: - If the `profile` is `None` and the source is non-git, the `profile` is automatically overridden to `"dist"`. - Ensures that options like `download-ci-llvm` and `download-rustc` are not used with non-git sources. An exception is raised if these options are present in the configuration when the source is non-git. 2. `bootstrap_test.py` - Added unit tests to verify both the profile override mechanism and the assertion for restricted options. These tests ensure the correct behavior for non-git sources and the handling of `if-unchanged` options. r? `@onur-ozkan` `@rustbot` T-bootstrap
2025-01-20Merge pull request #18972 from ↵Lukas Wirth-12/+42
osiewicz/drop-outgoing-messages-on-background-thread lsp-server: Drop outgoing messages on background thread
2025-01-20Merge pull request #18976 from ChayimFriedman2/non-module-generic-argsLukas Wirth-29/+81
fix: Fix a bug where enum variants were not considered properly in type ns resolution
2025-01-20Fix import search not discarding rawnessLukas Wirth-29/+65
2025-01-20Less allocsLukas Wirth-19/+30
2025-01-20Preserve impl assoc names in ImplDataLukas Wirth-89/+78
2025-01-20Vec -> Box<[_]>Lukas Wirth-9/+6
2025-01-20Properly record meaningful imports as re-exports in symbol indexLukas Wirth-143/+213
2025-01-20Merge from rustcJakub Beránek-3186/+6351
2025-01-20Preparing for merge from rustcJakub Beránek-1/+1
2025-01-20Add portable SIMD to list of subtreesJakub Beránek-0/+2
2025-01-20Add a test case1hakusai1-0/+24
2025-01-20Use Semantics::resolve_method_call_as_callable to find implementation1hakusai1-59/+89
2025-01-20Merge pull request #18981 from Fabian-Gruenbichler/proc-macro-srv-portabilityLaurențiu Nicola-3/+10
proc-macro-srv: make usage of RTLD_DEEPBIND portable
2025-01-20proc-macro-srv: make usage of RTLD_DEEPBIND portableFabian Grünbichler-3/+10
the constant is wrong on some platforms (e.g., on mips64el it's 0x10, and 0x8 is RTLD_NOLOAD which makes all this functionality broken), the libc crate takes care of those differences for us. fallback to not setting the flag in non-glibc environments - some of them might have support for it using a different value that we don't know about, and some of them lack it entirely. Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2025-01-20Bump rustc cratesLaurențiu Nicola-17/+17
2025-01-20Merge from rust-lang/rustLaurențiu Nicola-3205/+6416
2025-01-20Preparing for merge from rust-lang/rustLaurențiu Nicola-1/+1
2025-01-20Add NuttX support for AArch64 and ARMv7-A targetsHuang Qi-2/+12
This patch adds tier 3 support for AArch64 and ARMv7-A targets in NuttX, including: - AArch64 target: aarch64-unknown-nuttx - ARMv7-A target: armv7a-nuttx-eabi, armv7a-nuttx-eabihf - Thumbv7-A target: thumbv7a-nuttx-eabi, thumbv7a-nuttx-eabihf Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2025-01-20Add logic to override profile for non git sourcesTanvi Pooranmal Meena-4/+7
2025-01-20Rollup merge of #135729 - Noratrieb:compiler-profile-debug-assert, r=lqd许杰友 Jieyou Xu (Joe)-0/+7
Add debug assertions to compiler profile Working on the compiler without debug assertions is not a very productive way to work on the compiler.
2025-01-20Rollup merge of #135722 - onur-ozkan:handle-tarball-ci-commit, r=jieyouxu许杰友 Jieyou Xu (Joe)-13/+23
make it possible to use ci-rustc on tarball sources Previously, bootstrap was using `Config::last_modified_commit` unconditionally to figure the commit to download precompiled rustc artifact from CI, which was leading builds to fail on tarball sources as `Config::last_modified_commit` requires `git` to be present in the project source. This change makes bootstrap to call `Config::last_modified_commit` only when it's running on git-managed source and read `git-commit-hash` file otherwise.
2025-01-20docs: document how to install a suitable `josh-proxy` locally许杰友 Jieyou Xu (Joe)-0/+7
Co-authored-by: Boxy <rust@boxyuwu.dev>
2025-01-20Get rid of mir::Const::from_ty_constMichael Goulet-10/+6
2025-01-19Auto merge of #135742 - RalfJung:miri-sync, r=RalfJungbors-765/+982
Miri subtree update r? `@ghost`
2025-01-19fix location of pipe moduleRalf Jung-2/+3
2025-01-19Add debug assertions to compiler profileNoratrieb-0/+7
Working on the compiler without debug assertions is not a very productive way to work on the compiler.
2025-01-19Apply `unnecessary_semicolon` to Clippy sourcesSamuel Tardieu-1/+1
2025-01-19Auto merge of #135714 - rust-lang:cargo_update, r=clubby789bors-27/+38
Weekly `cargo update` Automation to keep dependencies in `Cargo.lock` current. The following is the output from `cargo update`: ```txt compiler & tools dependencies: Locking 13 packages to latest compatible versions Updating anstyle-wincon v3.0.6 -> v3.0.7 Updating bitflags v2.7.0 -> v2.8.0 Updating chrono-tz v0.10.0 -> v0.10.1 Updating js-sys v0.3.76 -> v0.3.77 Updating log v0.4.22 -> v0.4.25 Updating miniz_oxide v0.8.2 -> v0.8.3 Updating uuid v1.11.1 -> v1.12.0 Updating valuable v0.1.0 -> v0.1.1 Updating wasm-bindgen v0.2.99 -> v0.2.100 Updating wasm-bindgen-backend v0.2.99 -> v0.2.100 Updating wasm-bindgen-macro v0.2.99 -> v0.2.100 Updating wasm-bindgen-macro-support v0.2.99 -> v0.2.100 Updating wasm-bindgen-shared v0.2.99 -> v0.2.100 note: pass `--verbose` to see 41 unchanged dependencies behind latest library dependencies: Locking 1 package to latest compatible version Updating miniz_oxide v0.8.2 -> v0.8.3 note: pass `--verbose` to see 4 unchanged dependencies behind latest rustbook dependencies: Locking 12 packages to latest compatible versions Updating anstyle-wincon v3.0.6 -> v3.0.7 Updating bitflags v2.7.0 -> v2.8.0 Updating cc v1.2.8 -> v1.2.10 Updating js-sys v0.3.76 -> v0.3.77 Updating log v0.4.22 -> v0.4.25 Updating miniz_oxide v0.8.2 -> v0.8.3 Adding rustversion v1.0.19 Updating wasm-bindgen v0.2.99 -> v0.2.100 Updating wasm-bindgen-backend v0.2.99 -> v0.2.100 Updating wasm-bindgen-macro v0.2.99 -> v0.2.100 Updating wasm-bindgen-macro-support v0.2.99 -> v0.2.100 Updating wasm-bindgen-shared v0.2.99 -> v0.2.100 ```
2025-01-19CI: split x86_64-msvc job using windows 2025MarcoIeni-11/+17
2025-01-19Rollup merge of #135723 - Noratrieb:error-pattern-my-a-, r=jieyouxuGuillaume Gomez-1/+2
Fix dev guide docs for error-pattern I know it would have made more sense to make this PR to the dev guide repo but I had already made the fix before I realized that. r? `@jieyouxu`