about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2025-05-27scrape-examples.js: fix typoslolbinarycat-2/+2
Co-authored-by: Guillaume Gomez <guillaume1.gomez@gmail.com>
2025-05-27bootstrap: Remove `bin_root` from `PATH`Vadim Petrochenkov-1/+0
2025-05-27CI: Add cargo tests to aarch64-apple-darwinEric Huss-1/+3
This adds running of cargo's tests to the aarch64-apple-darwin job. The reason for this is that tier-1 targets are ostensibly supposed to run tests for host tools, but we are not doing that here. We do have fairly good coverage in Cargo's CI, but we don't have much coverage of beta or stable. I think it would be good to have a fallback here.
2025-05-27Merge pull request #2417 from smanilov/patch-16nora-2/+2
Make links in coinduction.md clickable
2025-05-27Avoid including text direction codepoints in lint messagesMatthew Jasper-0/+12
2025-05-27Make links in coinduction.md clickableStan Manilov-2/+2
Although they are clickable in the github preview, they aren't in the actual rendered HTML on https://rustc-dev-guide.rust-lang.org/. This commit fixes that.
2025-05-27Link to description of opaque typesStan Manilov-1/+1
2025-05-27Do not get proc_macro from the sysroot in rustcbjorn3-1/+2
With the stage0 refactor the proc_macro version found in the sysroot will no longer always match the proc_macro version that proc-macros get compiled with by the rustc executable that uses this proc_macro. This will cause problems as soon as the ABI of the bridge gets changed to implement new features or change the way existing features work. To fix this, this commit changes rustc crates to depend directly on the local version of proc_macro which will also be used in the sysroot that rustc will build.
2025-05-27Auto merge of #141644 - compiler-errors:rollup-gl5hize, r=compiler-errorsbors-6/+16
Rollup of 17 pull requests Successful merges: - rust-lang/rust#140591 (Fix malformed suggestion for E0061 when method is a macro token in macro context) - rust-lang/rust#141536 (Improve `ambiguous_wide_pointer_comparisons` lint compare diagnostics) - rust-lang/rust#141552 (Pull out dedicated `cfg_version` syntax test from feature gate test) - rust-lang/rust#141556 (bootstrap: translate Windows paths in a way that works for both Cygwin and MSYS2) - rust-lang/rust#141563 (Remove out-of-date `noop_*` names.) - rust-lang/rust#141568 (dist: make sure llvm-project submodule is present) - rust-lang/rust#141580 (Use more detailed spans in dyn compat errors within bodies) - rust-lang/rust#141582 (intrinsics, ScalarInt: minor cleanup) - rust-lang/rust#141584 (Support `opaque_types_defined_by` for `SyntheticCoroutineBody`) - rust-lang/rust#141587 (Add missing edition directives for async-await tests) - rust-lang/rust#141594 (Add `generic_arg_infer` test) - rust-lang/rust#141596 (rustc book: fix erratic sentence by making it more simple) - rust-lang/rust#141599 (Remove an unnecessary use of `Box::into_inner`.) - rust-lang/rust#141611 (Update mdbook to 0.4.51) - rust-lang/rust#141616 (Remove spastorino from vacations) - rust-lang/rust#141623 (use custom types to clarify arguments to `emit_ptr_va_arg`) - rust-lang/rust#141635 (further dedup `WalkItemKind` for `mut_visit` and `visit`) r? `@ghost` `@rustbot` modify labels: rollup
2025-05-27Update tests with Range parameter to `BTreeMap::extract_if` etc.Sidney Cammeresi-1/+1
2025-05-27rustdoc: linking to a local proc macro no longer warnsbinarycat-8/+28
fixes https://github.com/rust-lang/rust/issues/91274 Co-authored-by: Guillaume Gomez <guillaume1.gomez@gmail.com>
2025-05-27distcheck: document what distcheck is intended to exerciseJieyou Xu-1/+20
2025-05-27Bump master `stage0` compilerJieyou Xu-460/+460
To include beta backport of revert <https://github.com/rust-lang/rust/pull/141024> which should undo linker warnings during bootstrapping of Windows MSVC targets due to <https://github.com/rust-lang/rust/pull/140176>.
2025-05-27attempt to fix squash on WindowsRalf Jung-1/+22
2025-05-27Rename unpack to kindMichael Goulet-36/+36
2025-05-27bump fluent-* cratesklensy-1/+1
2025-05-27Rollup merge of #141611 - ehuss:update-mdbook, r=Mark-SimulacrumMichael Goulet-3/+3
Update mdbook to 0.4.51 This fixes a silly regression introduced in 0.4.50 that broke the search hotkey (https://github.com/rust-lang/rust/pull/141457). Changelog: https://github.com/rust-lang/mdBook/blob/master/CHANGELOG.md#mdbook-0451
2025-05-27Rollup merge of #141596 - tshepang:patch-2, r=UrgauMichael Goulet-2/+2
rustc book: fix erratic sentence by making it more simple
2025-05-27Rollup merge of #141568 - onur-ozkan:141393-fix, r=KobzolMichael Goulet-0/+8
dist: make sure llvm-project submodule is present Zero-config `x install` fails when bootstrap tries to copy files from the LLVM submodule because it's not properly initialized/handled. This diff handles that. Fixes https://github.com/rust-lang/rust/issues/141393
2025-05-27Rollup merge of #141556 - jeremyd2019:patch-1, r=jieyouxuMichael Goulet-1/+3
bootstrap: translate Windows paths in a way that works for both Cygwin and MSYS2 Cygwin defaults to rooting Windows paths in /cygdrive/X, while MSYS2 configures them to be /X. Regardless of configuration, drives are always accessible as /proc/cygdrive/X, so use that. If there are other shells on Windows that are supported and use /X style paths, perhaps something more complicated needs to be done. r? `@jieyouxu` `@Berrysoft` `@mati865`
2025-05-27Merge pull request #4212 from tiif/setflRalf Jung-8/+262
Support F_GETFL and F_SETFL for fcntl
2025-05-27ci: use ghcr registry for x86_64-gnu-tools jobMarcoIeni-1/+1
2025-05-27Make `Semantics<'db, DB>` support `Semantics<'db, dyn HirDatabase>`, by use ↵Vincent Esche-1/+1
of `DB: ?Sized`
2025-05-27Support F_GETFL and F_SETFL for fcntltiif-8/+262
2025-05-27move asm parsing code into `rustc_parse`Folkert de Vries-2/+1
2025-05-27pacify clippyRalf Jung-3/+1
2025-05-27fmtThe Miri Cronjob Bot-2/+8
2025-05-27Merge from rustcThe Miri Cronjob Bot-288/+516
2025-05-27Preparing for merge from rustcThe Miri Cronjob Bot-1/+1
2025-05-27Fix inference of `AsyncFnX` return typeChayim Refael Friedman-11/+81
2025-05-27Reduce `P<T>` to a typedef of `Box<T>`.Nicholas Nethercote-3/+3
Keep the `P` constructor function for now, to minimize immediate churn. All the `into_inner` calls are removed, which is nice.
2025-05-26Add stubs for environment variables; document some of the important onesjyn-6/+109
This uses a very hacky regex that will probably miss some variables. But having some docs seems better than none at all. This uses a very hacky regex that will probably miss some variables. But having some docs seems better than none at all. In particular, this generates stubs for the following env vars: - COLORTERM - QNX_TARGET - RUST_BACKTRACE - RUSTC_BLESS - RUSTC_BOOTSTRAP - RUSTC_BREAK_ON_ICE - RUSTC_CTFE_BACKTRACE - RUSTC_FORCE_RUSTC_VERSION - RUSTC_GRAPHVIZ_FONT - RUSTC_ICE - RUSTC_LOG - RUSTC_OVERRIDE_VERSION_STRING - RUSTC_RETRY_LINKER_ON_SEGFAULT - RUSTC_TRANSLATION_NO_DEBUG_ASSERT - RUST_DEP_GRAPH_FILTER - RUST_DEP_GRAPH - RUST_FORBID_DEP_GRAPH_EDGE - RUST_MIN_STACK - RUST_TARGET_PATH - SDKROOT - TERM - UNSTABLE_RUSTDOC_TEST_LINE - UNSTABLE_RUSTDOC_TEST_PATH [rendered](![screenshot of unstable-book running locally, with 14 environment variables shown in the sidebar](https://github.com/user-attachments/assets/8238d094-fb7a-456f-ad43-7c07aa2c44dd))
2025-05-27Streamline `visibility_print_with_space`.Nicholas Nethercote-41/+37
Moving the visibility stuff into the `from_fn` avoids the `Cow` and makes the code a little shorter and simpler.
2025-05-27Streamline `TypeAliasPart::get`.Nicholas Nethercote-17/+16
- `ret` only ever gets at most one entry, so it can be an `Option` instead of a `Vec`. - Which means we can use `filter_map` instead of `flat_map`. - Move `trait_` next to the `ret` assignment, which can only happen once. - No need for `impls` to be a `Vec`, it can remain an iterator. - Avoid `Result` when collecting `impls`.
2025-05-26Merge pull request #19862 from ChayimFriedman2/item-resolve-macro-hirChayim Refael Friedman-29/+74
fix: Fix IDE resolution of item macros
2025-05-26ci: move tests from x86_64-gnu-llvm-19 job to aarch64MarcoIeni-3/+71
2025-05-26diagnostic translations work is on pauseTshepang Mbambo-1/+0
2025-05-26Remove rustdoc askama migration from getting startedAlona Enraght-Moony-1/+0
This effort is blocked, so pointing new contributors here would be setting them up for failure. https://rust-lang.zulipchat.com/#narrow/channel/266220-t-rustdoc/topic/about.3A.20status.20of.20askama.20migration/with/497389045
2025-05-26rustdoc: use custom `CfgMatchesLintEmitter` to make check-cfg workUrgau-8/+45
2025-05-26Update mdbook to 0.4.51Eric Huss-3/+3
This fixes a silly regression introduced in 0.4.50 that broke the search hotkey (https://github.com/rust-lang/rust/pull/141457). Changelog: https://github.com/rust-lang/mdBook/blob/master/CHANGELOG.md#mdbook-0451
2025-05-26bootstrap: translate Windows paths in a way that works for both Cygwin and MSYS2Jeremy Drake-1/+3
Cygwin defaults to rooting Windows paths in /cygdrive/X, while MSYS2 configures them to be /X. Regardless of configuration, drives are always accessible as /proc/cygdrive/X, so use that.
2025-05-27Rollup merge of #141526 - jyn514:env-vars, r=petrochenkov许杰友 Jieyou Xu (Joe)-2/+18
add a dedicated section for compiler environment variables in the unstable book rendered: ![image](https://github.com/user-attachments/assets/dcb6e2a3-2e2d-43bb-8f45-79715705bf45) fixes https://github.com/rust-lang/rust/issues/141523
2025-05-27Rollup merge of #141513 - nia-e:allocbytes-extend, r=RalfJung许杰友 Jieyou Xu (Joe)-7/+13
interpret: add allocation parameters to `AllocBytes` Necessary for a better implementation of [rust-lang/miri#4343](https://github.com/rust-lang/miri/pull/4343). Also included here is the code from that PR, adapted to this new interface for the sake of example and so that CI can run on them; the Miri changes can be reverted and merged separately, though. r? `@RalfJung`
2025-05-27Rollup merge of #141433 - compiler-errors:unsafe-binder-captures, r=oli-obk许杰友 Jieyou Xu (Joe)-0/+2
Properly analyze captures from unsafe binders We need to represent the unsafe binder unwrap as an adjustment in HIR. Pretty straightforward b/c we already represent it as a projection elem in MIR. Fixes #141418 Fixes #141417 r? oli-obk
2025-05-27Rollup merge of #140898 - onur-ozkan:miri-run, r=Kobzol许杰友 Jieyou Xu (Joe)-3/+13
minor improvements on running miri It should be clear from the commit messages when reviewing them one by one.
2025-05-26Merge pull request #2407 from smanilov/patch-14Tshepang Mbambo-2/+5
Add time reference and tracking info for trait system refactor
2025-05-26rustdoc: refactor Tooltip rendering logicbinarycat-43/+21
2025-05-26rustc book: fix erratic sentence by making it more simpleTshepang Mbambo-2/+2
2025-05-26ci: fix llvm test coverageMarcoIeni-2/+2
2025-05-26ci: move dist-x86_64-linux job to codebuildMarcoIeni-2/+2