Skip to content

Commit 3844131

Browse files
authored
Merge pull request #4656 from rust-lang/rustup-2025-10-30
Automatic Rustup
2 parents 538732e + a4d0d58 commit 3844131

File tree

6 files changed

+37
-13
lines changed

6 files changed

+37
-13
lines changed

rust-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4fa824bb78318a3cba8c7339d5754b4909922547
1+
b1b464d6f61ec8c4e609c1328106378c066a9729

src/building/how-to-build-and-run.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -235,12 +235,6 @@ What this command does is:
235235
- Build `library` (the standard libraries) with the stage1 compiler that was just built.
236236
- Assemble a working stage1 sysroot, containing the stage1 compiler and stage1 standard libraries.
237237

238-
To build `rustc` with the in-tree `std`, use this command instead:
239-
240-
```console
241-
./x build library --stage 2
242-
```
243-
244238
This final product (stage1 compiler + libs built using that compiler)
245239
is what you need to build other Rust programs (unless you use `#![no_std]` or
246240
`#![no_core]`).

src/contributing.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ channels: stable, beta, and nightly.
5252

5353
- **Stable**: this is the latest stable release for general usage.
5454
- **Beta**: this is the next release (will be stable within 6 weeks).
55-
- **Nightly**: follows the `master` branch of the repo. This is the only
56-
channel where unstable, incomplete, or experimental features are usable with
57-
feature gates.
55+
- **Nightly**: follows the `master` branch of the repo.
56+
This is the only channel where unstable features are intended to be used,
57+
which happens via opt-in feature gates.
5858

5959
See [this chapter on implementing new features](./implementing_new_features.md) for more
6060
information.

src/offload/usage.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,13 @@ fn main() {
5656
unsafe extern "C" {
5757
pub fn kernel_1(array_b: *mut [f64; 256]);
5858
}
59+
60+
#[cfg(not(target_os = "linux"))]
61+
#[unsafe(no_mangle)]
62+
#[inline(never)]
63+
pub extern "gpu-kernel" fn kernel_1(x: *mut [f64; 256]) {
64+
unsafe { (*x)[0] = 21.0 };
65+
}
5966
```
6067

6168
## Compile instructions

src/rustdoc-internals/search.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,4 +521,25 @@ const EXPECTED = [
521521
returned: [],
522522
},
523523
]
524-
```
524+
```
525+
526+
If the [`//@ revisions`] directive is used, the JS file will
527+
have access to a variable called `REVISION`.
528+
529+
```js
530+
const EXPECTED = [
531+
// This first test targets name-based search.
532+
{
533+
query: "constructor",
534+
others: REVISION === "has_constructor" ?
535+
[
536+
{ path: "constructor_search", name: "constructor" },
537+
] :
538+
[],
539+
in_args: [],
540+
returned: [],
541+
},
542+
];
543+
```
544+
545+
[`//@ revisions`]: ../tests/compiletest.md#revisions

src/tests/directives.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,10 @@ Some examples of `X` in `ignore-X` or `only-X`:
163163
The following directives will check rustc build settings and target
164164
settings:
165165

166-
- `needs-asm-support` — ignores if it is running on a target that doesn't have
167-
stable support for `asm!`
166+
- `needs-asm-support` — ignores if the **host** architecture doesn't have
167+
stable support for `asm!`. For tests that cross-compile to explicit targets
168+
via `--target`, use `needs-llvm-components` instead to ensure the appropriate
169+
backend is available.
168170
- `needs-profiler-runtime` — ignores the test if the profiler runtime was not
169171
enabled for the target
170172
(`build.profiler = true` in rustc's `bootstrap.toml`)

0 commit comments

Comments
 (0)