commit
1e77768dd6
1947 changed files with 36948 additions and 22542 deletions
|
|
@ -1 +1 @@
|
|||
Subproject commit d33916341d480caede1d0ae57cbeae23aab23e88
|
||||
Subproject commit 230c68bc1e08f5f3228384a28cc228c81dfbd10d
|
||||
|
|
@ -1 +1 @@
|
|||
Subproject commit 1b1bb49babd65c732468cfa515b0c009bd1d26bc
|
||||
Subproject commit aa6ce337c0adf7a63e33960d184270f2a45ab9ef
|
||||
|
|
@ -1 +1 @@
|
|||
Subproject commit 387392674d74656f7cb437c05a96f0c52ea8e601
|
||||
Subproject commit 118fd1f1f0854f50e3ae1fe4b64862aad23009ca
|
||||
|
|
@ -1 +1 @@
|
|||
Subproject commit 8a8918c698534547fa8a1a693cb3e7277f0bfb2f
|
||||
Subproject commit c9d151f9147c4808c77f0375ba3fa5d54443cb9e
|
||||
|
|
@ -1 +1 @@
|
|||
e42bbfe1f7c26f8760a99c4b1f27d33aba1040bb
|
||||
99e7c15e81385b38a8186b51edc4577d5d7b5bdd
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ represented as a slice `&'tcx [tcx.types.i32, tcx.types.u32]`).
|
|||
[`mk_args`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/context/struct.TyCtxt.html#method.mk_args
|
||||
[adtdefid]: ./ty_module/generic_arguments.md#adtdef-and-defid
|
||||
[`Predicate`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/struct.Predicate.html
|
||||
[`TraitRef`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/struct.TraitRef.html
|
||||
[`TraitRef`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/type.TraitRef.html
|
||||
[`ty::TyKind`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/sty/type.TyKind.html
|
||||
[traits]: ./traits/resolution.md
|
||||
|
||||
|
|
|
|||
|
|
@ -9,8 +9,8 @@ rustc, not Cargo.
|
|||
-->
|
||||
|
||||
This document is intended to summarize the principal ways Cargo interacts with
|
||||
the `unexpected_cfgs` lint and `--check-cfg` flag. It is not intended to provide
|
||||
individual details, for that refer to the [`--check-cfg` documentation](../check-cfg.md) and
|
||||
the `unexpected_cfgs` lint and `--check-cfg` flag.
|
||||
For individual details, refer to the [`--check-cfg` documentation](../check-cfg.md) and
|
||||
to the [Cargo book](../../cargo/index.html).
|
||||
|
||||
> The full list of well known cfgs (aka builtins) can be found under [Checking conditional configurations / Well known names and values](../check-cfg.md#well-known-names-and-values).
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ Rust for Solaris operating system.
|
|||
## Target maintainers
|
||||
|
||||
[@psumbera](https://github.com/psumbera)
|
||||
[@kulikjak](https://github.com/kulikjak)
|
||||
|
||||
## Requirements
|
||||
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@
|
|||
}
|
||||
#pagetoc a {
|
||||
border-left: 1px solid var(--sidebar-bg);
|
||||
color: var(--sidebar-fg) !important;
|
||||
color: var(--fg);
|
||||
display: block;
|
||||
padding-bottom: 5px;
|
||||
padding-top: 5px;
|
||||
|
|
|
|||
|
|
@ -88,8 +88,10 @@ on your documentation examples make requests to.
|
|||
```
|
||||
|
||||
Now, when you press "run", the button will make a request to this domain. The request
|
||||
URL will contain 2 query parameters: `code` and `edition` for the code in the documentation
|
||||
and the Rust edition respectively.
|
||||
URL will contain 3 query parameters:
|
||||
1. `code` for the code in the documentation
|
||||
2. `version` for the Rust channel, e.g. nightly, which is decided by whether `code` contain unstable features
|
||||
3. `edition` for the Rust edition, e.g. 2024
|
||||
|
||||
If you don't use this attribute, there will be no run buttons.
|
||||
|
||||
|
|
|
|||
8
src/doc/unstable-book/README.md
Normal file
8
src/doc/unstable-book/README.md
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
# Unstable Book
|
||||
|
||||
These are the sources for <https://doc.rust-lang.org/nightly/unstable-book/>.
|
||||
To generate them, run `./x doc unstable-book`, which will generate HTML files in `build/host/doc/unstable-book` using `src/tools/rustbook`.
|
||||
If you need to change the overall structure, modify `src/tools/unstable-book-gen/src/SUMMARY.md`.
|
||||
|
||||
Note that most of this book is autogenerated by `unstable-book-gen`, with the exception of `compiler-flags` and `compiler-environment-variables`.
|
||||
As a result, it does not integrate well with `mdbook`. Use `./x doc` instead.
|
||||
|
|
@ -0,0 +1 @@
|
|||
# Compiler environment variables
|
||||
|
|
@ -14,7 +14,7 @@ Cargo disallows setting `cargo::rustc-env=RUSTC_BOOTSTRAP` in build scripts.
|
|||
Build systems can limit the features they enable with [`-Z allow-features=feature1,feature2`][Z-allow-features].
|
||||
Crates can fully opt out of unstable features by using [`#![forbid(unstable_features)]`][unstable-features] at the crate root (or any other way of enabling lints, such as `-F unstable-features`).
|
||||
|
||||
[Z-allow-features]: ./allow-features.html
|
||||
[Z-allow-features]: ../compiler-flags/allow-features.html
|
||||
[unstable-features]: ../../rustc/lints/listing/allowed-by-default.html#unstable-features
|
||||
|
||||
## Why does this environment variable exist?
|
||||
|
|
@ -11,4 +11,4 @@ Features are comma-separated, for example `-Z allow-features=ffi_pure,f16`.
|
|||
If the flag is present, any feature listed will be allowed and any feature not listed will be disallowed.
|
||||
Any unrecognized feature is ignored.
|
||||
|
||||
[`RUSTC_BOOTSTRAP`]: ./rustc-bootstrap.html
|
||||
[`RUSTC_BOOTSTRAP`]: ../compiler-environment-variables/RUSTC_BOOTSTRAP.html
|
||||
|
|
|
|||
|
|
@ -0,0 +1,12 @@
|
|||
# `eagerly-emit-delayed-bugs`
|
||||
|
||||
This feature is perma-unstable and has no tracking issue.
|
||||
|
||||
------------------------
|
||||
|
||||
This flag converts all [`span_delayed_bug()`] calls to [`bug!`] calls, exiting the compiler immediately and allowing you to generate a backtrace of where the delayed bug occurred.
|
||||
For full documentation, see [the rustc-dev-guide][dev-guide-delayed].
|
||||
|
||||
[`bug!`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/macro.bug.html
|
||||
[`span_delayed_bug()`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_errors/struct.DiagCtxtHandle.html#method.span_delayed_bug
|
||||
[dev-guide-delayed]: https://rustc-dev-guide.rust-lang.org/compiler-debugging.html#debugging-delayed-bugs
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
# `track-diagnostics`
|
||||
|
||||
This feature is perma-unstable and has no tracking issue.
|
||||
|
||||
------------------------
|
||||
|
||||
This flag prints the source code span in the compiler where a diagnostic was generated, respecting [`#[track_caller]`][track_caller]. Note that this may be different from the place it was emitted.
|
||||
For full documentation, see [the rustc-dev-guide][dev-guide-track-diagnostics].
|
||||
|
||||
[track_caller]: https://doc.rust-lang.org/reference/attributes/codegen.html#the-track_caller-attribute
|
||||
[dev-guide-track-diagnostics]: https://rustc-dev-guide.rust-lang.org/compiler-debugging.html#getting-the-error-creation-location
|
||||
13
src/doc/unstable-book/src/compiler-flags/treat-err-as-bug.md
Normal file
13
src/doc/unstable-book/src/compiler-flags/treat-err-as-bug.md
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
# `treat-err-as-bug`
|
||||
|
||||
This feature is perma-unstable and has no tracking issue.
|
||||
|
||||
------------------------
|
||||
|
||||
This flag converts the selected error to a [`bug!`] call, exiting the compiler immediately and allowing you to generate a backtrace of where the error occurred.
|
||||
For full documentation, see [the rustc-dev-guide][dev-guide-backtrace].
|
||||
|
||||
Note that the compiler automatically sets `RUST_BACKTRACE=1` for itself, and so you do not need to set it yourself when using this flag.
|
||||
|
||||
[`bug!`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/macro.bug.html
|
||||
[dev-guide-backtrace]: https://rustc-dev-guide.rust-lang.org/compiler-debugging.html#getting-a-backtrace-for-errors
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
# `explicit_extern_abis`
|
||||
|
||||
The tracking issue for this feature is: #134986
|
||||
The tracking issue for this feature is: [#134986]
|
||||
|
||||
------
|
||||
|
||||
|
|
@ -21,3 +21,5 @@ extern "C" fn function2() {} // compiles
|
|||
|
||||
extern "aapcs" fn function3() {} // compiles
|
||||
```
|
||||
|
||||
[#134986]: https://github.com/rust-lang/rust/issues/134986
|
||||
|
|
|
|||
|
|
@ -1,18 +0,0 @@
|
|||
# `repr128`
|
||||
|
||||
The tracking issue for this feature is: [#56071]
|
||||
|
||||
[#56071]: https://github.com/rust-lang/rust/issues/56071
|
||||
|
||||
------------------------
|
||||
|
||||
The `repr128` feature adds support for `#[repr(u128)]` on `enum`s.
|
||||
|
||||
```rust
|
||||
#![feature(repr128)]
|
||||
|
||||
#[repr(u128)]
|
||||
enum Foo {
|
||||
Bar(u64),
|
||||
}
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue