Skip to content

Commit 0748e1c

Browse files
authored
Merge pull request #20321 from rust-lang/rustc-pull
Rustc pull update
2 parents ae23920 + 1c11a34 commit 0748e1c

15 files changed

+41
-40
lines changed

rust-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
fd2eb391d032181459773f3498c17b198513e0d0
1+
efd420c770bb179537c01063e98cb6990c439654

src/asm.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,9 @@ can't know ahead of time whether a function will require a frame/base pointer.
155155

156156
Various tests for inline assembly are available:
157157

158-
- `tests/assembly/asm`
158+
- `tests/assembly-llvm/asm`
159159
- `tests/ui/asm`
160-
- `tests/codegen/asm-*`
160+
- `tests/codegen-llvm/asm-*`
161161

162162
Every architecture supported by inline assembly must have exhaustive tests in
163-
`tests/assembly/asm` which test all combinations of register classes and types.
163+
`tests/assembly-llvm/asm` which test all combinations of register classes and types.

src/autodiff/installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ rustup toolchain install nightly # enables -Z unstable-options
2525
You can then run our test cases:
2626

2727
```bash
28-
./x test --stage 1 tests/codegen/autodiff
28+
./x test --stage 1 tests/codegen-llvm/autodiff
2929
./x test --stage 1 tests/pretty/autodiff
3030
./x test --stage 1 tests/ui/autodiff
3131
./x test --stage 1 tests/ui/feature-gates/feature-gate-autodiff.rs

src/building/suggested.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ create a `.vim/coc-settings.json`. The settings can be edited with
162162
[`src/etc/rust_analyzer_settings.json`].
163163

164164
Another way is without a plugin, and creating your own logic in your
165-
configuration. The following code will work for any checkout of rust-lang/rust (newer than Febuary 2025):
165+
configuration. The following code will work for any checkout of rust-lang/rust (newer than February 2025):
166166

167167
```lua
168168
local function expand_config_variables(option)

src/external-repos.md

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -40,27 +40,24 @@ implement a new tool feature or test, that should happen in one collective rustc
4040
* `portable-simd` ([sync script](https://github.com/rust-lang/portable-simd/blob/master/subtree-sync.sh))
4141
* `rustfmt`
4242
* `rustc_codegen_cranelift` ([sync script](https://github.com/rust-lang/rustc_codegen_cranelift/blob/113af154d459e41b3dc2c5d7d878e3d3a8f33c69/scripts/rustup.sh#L7))
43-
* Using the [josh] tool
44-
* `miri` ([sync guide](https://github.com/rust-lang/miri/blob/master/CONTRIBUTING.md#advanced-topic-syncing-with-the-rustc-repo))
45-
* `rust-analyzer` ([sync script](https://github.com/rust-lang/rust-analyzer/blob/2e13684be123eca7181aa48e043e185d8044a84a/xtask/src/release.rs#L147))
46-
* `rustc-dev-guide` ([josh sync](#synchronizing-a-josh-subtree))
47-
* `compiler-builtins` ([josh sync](#synchronizing-a-josh-subtree))
48-
* `stdarch` ([josh sync](#synchronizing-a-josh-subtree))
43+
* Using the [josh](#synchronizing-a-josh-subtree) tool
44+
* `miri`
45+
* `rust-analyzer`
46+
* `rustc-dev-guide`
47+
* `compiler-builtins`
48+
* `stdarch`
4949

5050
### Josh subtrees
5151

52-
The [josh] tool is an alternative to git subtrees, which manages git history in a different way and scales better to larger repositories. Specific tooling is required to work with josh; you can check out the `miri` or `rust-analyzer` scripts linked above for inspiration. We provide a helper [`rustc-josh-sync`][josh-sync] tool to help with the synchronization, described [below](#synchronizing-a-josh-subtree).
52+
The [josh] tool is an alternative to git subtrees, which manages git history in a different way and scales better to larger repositories. Specific tooling is required to work with josh. We provide a helper [`rustc-josh-sync`][josh-sync] tool to help with the synchronization, described [below](#synchronizing-a-josh-subtree).
5353

5454
### Synchronizing a Josh subtree
5555

5656
We use a dedicated tool called [`rustc-josh-sync`][josh-sync] for performing Josh subtree updates.
57-
Currently, we are migrating Josh repositories to it. So far, it is used in:
57+
The commands below can be used for all our Josh subtrees, although note that `miri`
58+
requires you to perform some [additional steps](https://github.com/rust-lang/miri/blob/master/CONTRIBUTING.md#advanced-topic-syncing-with-the-rustc-repo) during pulls.
5859

59-
- compiler-builtins
60-
- rustc-dev-guide
61-
- stdarch
62-
63-
To install the tool:
60+
You can install the tool using the following command:
6461
```
6562
cargo install --locked --git https://github.com/rust-lang/josh-sync
6663
```
@@ -80,6 +77,9 @@ switch to its repository checkout directory in your terminal).
8077
8178
#### Performing push
8279
80+
> NOTE:
81+
> Before you proceed, look at some guidance related to Git [on josh-sync README].
82+
8383
1) Run the push command to create a branch named `<branch-name>` in a `rustc` fork under the `<gh-username>` account
8484
```
8585
rustc-josh-sync push <branch-name> <gh-username>
@@ -173,3 +173,4 @@ the week leading up to the beta cut.
173173
[Toolstate chapter]: https://forge.rust-lang.org/infra/toolstate.html
174174
[josh]: https://josh-project.github.io/josh/intro.html
175175
[josh-sync]: https://github.com/rust-lang/josh-sync
176+
[on josh-sync README]: https://github.com/rust-lang/josh-sync#git-peculiarities

src/hir/ambig-unambig-ty-and-consts.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Note that places 3 and 4 would never actually be possible to encounter as we alw
3838
This has a few failure modes:
3939
- People may write visitors which check for `GenericArg::Infer` but forget to check for `hir::TyKind/ConstArgKind::Infer`, only handling infers in ambig positions by accident.
4040
- People may write visitors which check for `hir::TyKind/ConstArgKind::Infer` but forget to check for `GenericArg::Infer`, only handling infers in unambig positions by accident.
41-
- People may write visitors which check for `GenerArg::Type/Const(TyKind/ConstArgKind::Infer)` and `GenerigArg::Infer`, not realising that we never represent inferred types/consts in ambig positions as a `GenericArg::Type/Const`.
41+
- People may write visitors which check for `GenericArg::Type/Const(TyKind/ConstArgKind::Infer)` and `GenericArg::Infer`, not realising that we never represent inferred types/consts in ambig positions as a `GenericArg::Type/Const`.
4242
- People may write visitors which check for *only* `TyKind::Infer` and not `ConstArgKind::Infer` forgetting that there are also inferred const arguments (and vice versa).
4343

4444
To make writing HIR visitors less error prone when caring about inferred types/consts we have a relatively complex system:
@@ -60,4 +60,4 @@ This has a number of benefits:
6060
[ambig_arg]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_hir/hir/enum.AmbigArg.html
6161
[visit_ty]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_hir/intravisit/trait.Visitor.html#method.visit_ty
6262
[visit_const_arg]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_hir/intravisit/trait.Visitor.html#method.visit_const_arg
63-
[visit_infer]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_hir/intravisit/trait.Visitor.html#method.visit_infer
63+
[visit_infer]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_hir/intravisit/trait.Visitor.html#method.visit_infer

src/llvm-coverage-instrumentation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ human-readable coverage report.
117117
> directive, so they will be skipped if the profiler runtime has not been
118118
> [enabled in `bootstrap.toml`](#recommended-configtoml-settings).
119119
120-
Finally, the [`tests/codegen/instrument-coverage/testprog.rs`] test compiles a simple Rust program
120+
Finally, the [`tests/codegen-llvm/instrument-coverage/testprog.rs`] test compiles a simple Rust program
121121
with `-C instrument-coverage` and compares the compiled program's LLVM IR to
122122
expected LLVM IR instructions and structured data for a coverage-enabled
123123
program, including various checks for Coverage Map-related metadata and the LLVM
@@ -136,4 +136,4 @@ and `mir-opt` tests can be refreshed by running:
136136
[`tests/coverage`]: https://github.com/rust-lang/rust/tree/master/tests/coverage
137137
[`src/tools/coverage-dump`]: https://github.com/rust-lang/rust/tree/master/src/tools/coverage-dump
138138
[`tests/coverage-run-rustdoc`]: https://github.com/rust-lang/rust/tree/master/tests/coverage-run-rustdoc
139-
[`tests/codegen/instrument-coverage/testprog.rs`]: https://github.com/rust-lang/rust/blob/master/tests/mir-opt/coverage/instrument_coverage.rs
139+
[`tests/codegen-llvm/instrument-coverage/testprog.rs`]: https://github.com/rust-lang/rust/blob/master/tests/mir-opt/coverage/instrument_coverage.rs

src/offload/installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ This gives you a working LLVM build.
4040
## Testing
4141
run
4242
```
43-
./x test --stage 1 tests/codegen/gpu_offload
43+
./x test --stage 1 tests/codegen-llvm/gpu_offload
4444
```
4545

4646
## Usage

src/profile-guided-optimization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ There is also a [codegen test][codegen-test] that checks that some expected
132132
instrumentation artifacts show up in LLVM IR.
133133

134134
[rmake-tests]: https://github.com/rust-lang/rust/tree/master/tests/run-make
135-
[codegen-test]: https://github.com/rust-lang/rust/blob/master/tests/codegen/pgo-instrumentation.rs
135+
[codegen-test]: https://github.com/rust-lang/rust/blob/master/tests/codegen-llvm/pgo-instrumentation.rs
136136

137137
## Additional information
138138

src/rustdoc-internals/rustdoc-test-suite.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Internally, [`compiletest`] invokes the supplementary checker script [`htmldocck
2020

2121
Directives to HtmlDocCk are assertions that place constraints on the generated HTML.
2222
They look similar to those given to `compiletest` in that they take the form of `//@` comments
23-
but ultimately, they are completey distinct and processed by different programs.
23+
but ultimately, they are completely distinct and processed by different programs.
2424

2525
[XPath] is used to query parts of the HTML document tree.
2626

0 commit comments

Comments
 (0)