From 25350e4eaf33c9601bfca43eba7806fe5e9ed2e2 Mon Sep 17 00:00:00 2001 From: TonalidadeHidrica <47710717+TonalidadeHidrica@users.noreply.github.com> Date: Sat, 22 Feb 2025 18:04:42 +0900 Subject: [PATCH 1/2] =?UTF-8?q?=E3=82=B3=E3=83=94=E3=83=BC=E3=81=97?= =?UTF-8?q?=E3=81=9F=E8=8B=B1=E8=AA=9E=E6=9C=AC=E6=96=87=E3=82=92=20Editio?= =?UTF-8?q?n=20Guide=20=E3=81=AE=E6=9C=80=E6=96=B0=E7=89=88=E3=81=AB?= =?UTF-8?q?=E8=BF=BD=E5=BE=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/SUMMARY.md | 2 - src/rust-2024/prelude.md | 26 ------ .../rustfmt-overflow-delimited-expr.md | 92 ------------------- src/rust-2024/static-mut-references.md | 2 +- src/rust-2024/temporary-if-let-scope.md | 6 +- 5 files changed, 4 insertions(+), 124 deletions(-) delete mode 100644 src/rust-2024/rustfmt-overflow-delimited-expr.md diff --git a/src/SUMMARY.md b/src/SUMMARY.md index 9d66515..6d03c91 100644 --- a/src/SUMMARY.md +++ b/src/SUMMARY.md @@ -107,7 +107,6 @@ - [Rustfmt](rust-2024/rustfmt.md) - [Rustfmt: Style edition](rust-2024/rustfmt-style-edition.md) - [Rustfmt: Formatting fixes](rust-2024/rustfmt-formatting-fixes.md) - - [Rustfmt: Combine all delimited exprs as last argument](rust-2024/rustfmt-overflow-delimited-expr.md) - [Rustfmt: Raw identifier sorting](rust-2024/rustfmt-raw-identifier-sorting.md) - [Rustfmt: Version sorting](rust-2024/rustfmt-version-sorting.md) --> @@ -141,6 +140,5 @@ - [Rustfmt](rust-2024/rustfmt.md) - [Rustfmt: Style edition](rust-2024/rustfmt-style-edition.md) - [Rustfmt: Formatting fixes](rust-2024/rustfmt-formatting-fixes.md) - - [Rustfmt: Combine all delimited exprs as last argument](rust-2024/rustfmt-overflow-delimited-expr.md) - [Rustfmt: Raw identifier sorting](rust-2024/rustfmt-raw-identifier-sorting.md) - [Rustfmt: Version sorting](rust-2024/rustfmt-version-sorting.md) diff --git a/src/rust-2024/prelude.md b/src/rust-2024/prelude.md index 46f7816..3e8a07d 100644 --- a/src/rust-2024/prelude.md +++ b/src/rust-2024/prelude.md @@ -6,7 +6,6 @@ - The [`Future`] and [`IntoFuture`] traits are now part of the prelude. - This might make calls to trait methods ambiguous which could make some code fail to compile. -- `RustcEncodable` and `RustcDecodable` have been removed from the prelude. [`Future`]: ../../std/future/trait.Future.html [`IntoFuture`]: ../../std/future/trait.IntoFuture.html @@ -31,19 +30,6 @@ It's identical to the current one, except for the following changes: - Added: - [`std::future::Future`][`Future`] - [`std::future::IntoFuture`][`IntoFuture`] -- Removed: - - `RustcEncodable` - - `RustcDecodable` - -### `RustcEncodable` and `RustcDecodable` removal - -`RustcEncodable` and `RustcDecodable` are two undocumented derive macros that have been removed from the prelude. -These were deprecated before Rust 1.0, but remained within the standard library prelude. -The 2024 Edition has removed these from the prelude since they are not expected to be used. - -If in the unlikely case there is a project still using these, it is recommended to switch to a serialization library, such as those found on [crates.io]. - -[crates.io]: https://crates.io/categories/encoding ## Migration @@ -92,15 +78,3 @@ Alternatively, you can manually enable the lint to find places where these quali ``` [`rust_2024_prelude_collisions`]: ../../rustc/lints/listing/allowed-by-default.html#rust-2024-prelude-collisions - -### `RustcEncodable` and `RustcDecodable` - -It is strongly recommended that you migrate to a different serialization library if you are still using these. -However, these derive macros are still available in the standard library, they are just required to be imported from the older prelude now: - -```rust,edition2021 -#[allow(soft_unstable)] -use core::prelude::v1::{RustcDecodable, RustcEncodable}; -``` - -There is no automatic migration for this change; you will need to make the update manually. diff --git a/src/rust-2024/rustfmt-overflow-delimited-expr.md b/src/rust-2024/rustfmt-overflow-delimited-expr.md deleted file mode 100644 index 2625636..0000000 --- a/src/rust-2024/rustfmt-overflow-delimited-expr.md +++ /dev/null @@ -1,92 +0,0 @@ -> **Rust Edition Guide は現在 Rust 2024 のアップデート作業に向けて翻訳作業中です。本ページは英語版をコピーしていますが、一部のリンクが動作しないなどの問題が発生する場合があります。問題が発生した場合は、[原文(英語版)](https://doc.rust-lang.org/nightly/edition-guide/introduction.html)をご参照ください。** - -# Rustfmt: Combine all delimited exprs as last argument - -## Summary - -* Some expressions with multi-line final arguments will now format as a single line, with the final expression overflowing. - -## Details - -When structs, slices, arrays, and block/array-like macros are used as the last argument in an expression list, they are now allowed to overflow (like blocks/closures) instead of being indented on a new line. - -```rust,ignore -// Edition 2021 - -fn example() { - foo(ctx, |param| { - action(); - foo(param) - }); - - foo( - ctx, - Bar { - x: value, - y: value2, - }, - ); - - foo( - ctx, - &[ - MAROON_TOMATOES, - PURPLE_POTATOES, - ORGANE_ORANGES, - GREEN_PEARS, - RED_APPLES, - ], - ); - - foo( - ctx, - vec![ - MAROON_TOMATOES, - PURPLE_POTATOES, - ORGANE_ORANGES, - GREEN_PEARS, - RED_APPLES, - ], - ); -} -``` - -This now formats as the following in the 2024 style edition: - -```rust,ignore -// Edition 2024 - -fn example() { - foo(ctx, |param| { - action(); - foo(param) - }); - - foo(ctx, Bar { - x: value, - y: value2, - }); - - foo(ctx, &[ - MAROON_TOMATOES, - PURPLE_POTATOES, - ORGANE_ORANGES, - GREEN_PEARS, - RED_APPLES, - ]); - - foo(ctx, vec![ - MAROON_TOMATOES, - PURPLE_POTATOES, - ORGANE_ORANGES, - GREEN_PEARS, - RED_APPLES, - ]); -} -``` - -## Migration - -The change can be applied automatically by running `cargo fmt` or `rustfmt` with the 2024 Edition. See the [Style edition] chapter for more information on migrating and how style editions work. - -[Style edition]: rustfmt-style-edition.md diff --git a/src/rust-2024/static-mut-references.md b/src/rust-2024/static-mut-references.md index 18e9487..874c249 100644 --- a/src/rust-2024/static-mut-references.md +++ b/src/rust-2024/static-mut-references.md @@ -70,7 +70,7 @@ The [atomic types][atomics] provide integers, pointers, and booleans that can be # use std::sync::atomic::Ordering; # use std::sync::atomic::AtomicU64; -// Chnage from this: +// Change from this: // static mut COUNTER: u64 = 0; // to this: static COUNTER: AtomicU64 = AtomicU64::new(0); diff --git a/src/rust-2024/temporary-if-let-scope.md b/src/rust-2024/temporary-if-let-scope.md index 2b40bbb..dcc08f3 100644 --- a/src/rust-2024/temporary-if-let-scope.md +++ b/src/rust-2024/temporary-if-let-scope.md @@ -43,9 +43,9 @@ fn f(value: &RwLock>) { } // <--- Read lock is dropped here in 2024 else { - let mut s = value.write().unwrap(); - if s.is_none() { - *s = Some(true); + let mut v = value.write().unwrap(); + if v.is_none() { + *v = Some(true); } } } From bc229f28644dbc870c73352fadf75058b52b6838 Mon Sep 17 00:00:00 2001 From: TonalidadeHidrica <47710717+TonalidadeHidrica@users.noreply.github.com> Date: Sat, 22 Feb 2025 18:11:31 +0900 Subject: [PATCH 2/2] =?UTF-8?q?=E3=82=B3=E3=83=94=E3=83=BC=E3=81=95?= =?UTF-8?q?=E3=82=8C=E3=81=9F=E8=8B=B1=E8=AA=9E=E7=89=88=E3=81=AE=E5=86=92?= =?UTF-8?q?=E9=A0=AD=E3=82=B3=E3=83=A1=E3=83=B3=E3=83=88=E3=81=AB=E6=9C=80?= =?UTF-8?q?=E6=96=B0=E7=89=88=E3=81=A7=E3=81=AA=E3=81=84=E5=8F=AF=E8=83=BD?= =?UTF-8?q?=E6=80=A7=E3=81=8C=E3=81=82=E3=82=8B=E8=AD=A6=E5=91=8A=E3=82=92?= =?UTF-8?q?=E8=A1=A8=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/rust-2021/c-string-literals.md | 2 +- src/rust-2021/raw-lifetimes.md | 2 +- src/rust-2024/cargo-inherited-default-features.md | 2 +- src/rust-2024/cargo-resolver.md | 2 +- src/rust-2024/cargo-table-key-names.md | 2 +- src/rust-2024/gen-keyword.md | 2 +- src/rust-2024/intoiterator-box-slice.md | 2 +- src/rust-2024/macro-fragment-specifiers.md | 2 +- src/rust-2024/match-ergonomics.md | 2 +- src/rust-2024/missing-macro-fragment-specifiers.md | 2 +- src/rust-2024/never-type-fallback.md | 2 +- src/rust-2024/newly-unsafe-functions.md | 2 +- src/rust-2024/prelude.md | 2 +- src/rust-2024/reserved-syntax.md | 2 +- src/rust-2024/rpit-lifetime-capture.md | 2 +- src/rust-2024/rustdoc-doctests.md | 2 +- src/rust-2024/rustdoc-nested-includes.md | 2 +- src/rust-2024/rustfmt-formatting-fixes.md | 2 +- src/rust-2024/rustfmt-raw-identifier-sorting.md | 2 +- src/rust-2024/rustfmt-style-edition.md | 2 +- src/rust-2024/rustfmt-version-sorting.md | 2 +- src/rust-2024/static-mut-references.md | 2 +- src/rust-2024/temporary-if-let-scope.md | 2 +- src/rust-2024/temporary-tail-expr-scope.md | 2 +- src/rust-2024/unsafe-attributes.md | 2 +- src/rust-2024/unsafe-extern.md | 2 +- src/rust-2024/unsafe-op-in-unsafe-fn.md | 2 +- 27 files changed, 27 insertions(+), 27 deletions(-) diff --git a/src/rust-2021/c-string-literals.md b/src/rust-2021/c-string-literals.md index 643d098..bda15a2 100644 --- a/src/rust-2021/c-string-literals.md +++ b/src/rust-2021/c-string-literals.md @@ -1,4 +1,4 @@ -> **Rust Edition Guide は現在 Rust 2024 のアップデート作業に向けて翻訳作業中です。本ページは英語版をコピーしていますが、一部のリンクが動作しないなどの問題が発生する場合があります。問題が発生した場合は、[原文(英語版)](https://doc.rust-lang.org/nightly/edition-guide/introduction.html)をご参照ください。** +> **Rust Edition Guide は現在 Rust 2024 のアップデート作業に向けて翻訳作業中です。本ページはある時点での英語版をコピーしていますが、一部のリンクが動作しない場合や、最新情報が更新されていない場合があります。問題が発生した場合は、[原文(英語版)](https://doc.rust-lang.org/nightly/edition-guide/introduction.html)をご参照ください。** # C-string literals diff --git a/src/rust-2021/raw-lifetimes.md b/src/rust-2021/raw-lifetimes.md index dff755d..657950d 100644 --- a/src/rust-2021/raw-lifetimes.md +++ b/src/rust-2021/raw-lifetimes.md @@ -1,4 +1,4 @@ -> **Rust Edition Guide は現在 Rust 2024 のアップデート作業に向けて翻訳作業中です。本ページは英語版をコピーしていますが、一部のリンクが動作しないなどの問題が発生する場合があります。問題が発生した場合は、[原文(英語版)](https://doc.rust-lang.org/nightly/edition-guide/introduction.html)をご参照ください。** +> **Rust Edition Guide は現在 Rust 2024 のアップデート作業に向けて翻訳作業中です。本ページはある時点での英語版をコピーしていますが、一部のリンクが動作しない場合や、最新情報が更新されていない場合があります。問題が発生した場合は、[原文(英語版)](https://doc.rust-lang.org/nightly/edition-guide/introduction.html)をご参照ください。** # Raw lifetimes diff --git a/src/rust-2024/cargo-inherited-default-features.md b/src/rust-2024/cargo-inherited-default-features.md index c6e036c..f0896a7 100644 --- a/src/rust-2024/cargo-inherited-default-features.md +++ b/src/rust-2024/cargo-inherited-default-features.md @@ -1,4 +1,4 @@ -> **Rust Edition Guide は現在 Rust 2024 のアップデート作業に向けて翻訳作業中です。本ページは英語版をコピーしていますが、一部のリンクが動作しないなどの問題が発生する場合があります。問題が発生した場合は、[原文(英語版)](https://doc.rust-lang.org/nightly/edition-guide/introduction.html)をご参照ください。** +> **Rust Edition Guide は現在 Rust 2024 のアップデート作業に向けて翻訳作業中です。本ページはある時点での英語版をコピーしていますが、一部のリンクが動作しない場合や、最新情報が更新されていない場合があります。問題が発生した場合は、[原文(英語版)](https://doc.rust-lang.org/nightly/edition-guide/introduction.html)をご参照ください。** # Cargo: Reject unused inherited default-features diff --git a/src/rust-2024/cargo-resolver.md b/src/rust-2024/cargo-resolver.md index e9a22ba..0090c45 100644 --- a/src/rust-2024/cargo-resolver.md +++ b/src/rust-2024/cargo-resolver.md @@ -1,4 +1,4 @@ -> **Rust Edition Guide は現在 Rust 2024 のアップデート作業に向けて翻訳作業中です。本ページは英語版をコピーしていますが、一部のリンクが動作しないなどの問題が発生する場合があります。問題が発生した場合は、[原文(英語版)](https://doc.rust-lang.org/nightly/edition-guide/introduction.html)をご参照ください。** +> **Rust Edition Guide は現在 Rust 2024 のアップデート作業に向けて翻訳作業中です。本ページはある時点での英語版をコピーしていますが、一部のリンクが動作しない場合や、最新情報が更新されていない場合があります。問題が発生した場合は、[原文(英語版)](https://doc.rust-lang.org/nightly/edition-guide/introduction.html)をご参照ください。** # Cargo: Rust-version aware resolver diff --git a/src/rust-2024/cargo-table-key-names.md b/src/rust-2024/cargo-table-key-names.md index cd8833f..cc9ca25 100644 --- a/src/rust-2024/cargo-table-key-names.md +++ b/src/rust-2024/cargo-table-key-names.md @@ -1,4 +1,4 @@ -> **Rust Edition Guide は現在 Rust 2024 のアップデート作業に向けて翻訳作業中です。本ページは英語版をコピーしていますが、一部のリンクが動作しないなどの問題が発生する場合があります。問題が発生した場合は、[原文(英語版)](https://doc.rust-lang.org/nightly/edition-guide/introduction.html)をご参照ください。** +> **Rust Edition Guide は現在 Rust 2024 のアップデート作業に向けて翻訳作業中です。本ページはある時点での英語版をコピーしていますが、一部のリンクが動作しない場合や、最新情報が更新されていない場合があります。問題が発生した場合は、[原文(英語版)](https://doc.rust-lang.org/nightly/edition-guide/introduction.html)をご参照ください。** # Cargo: Table and key name consistency diff --git a/src/rust-2024/gen-keyword.md b/src/rust-2024/gen-keyword.md index 9656632..6797dd7 100644 --- a/src/rust-2024/gen-keyword.md +++ b/src/rust-2024/gen-keyword.md @@ -1,4 +1,4 @@ -> **Rust Edition Guide は現在 Rust 2024 のアップデート作業に向けて翻訳作業中です。本ページは英語版をコピーしていますが、一部のリンクが動作しないなどの問題が発生する場合があります。問題が発生した場合は、[原文(英語版)](https://doc.rust-lang.org/nightly/edition-guide/introduction.html)をご参照ください。** +> **Rust Edition Guide は現在 Rust 2024 のアップデート作業に向けて翻訳作業中です。本ページはある時点での英語版をコピーしていますが、一部のリンクが動作しない場合や、最新情報が更新されていない場合があります。問題が発生した場合は、[原文(英語版)](https://doc.rust-lang.org/nightly/edition-guide/introduction.html)をご参照ください。** # `gen` keyword diff --git a/src/rust-2024/intoiterator-box-slice.md b/src/rust-2024/intoiterator-box-slice.md index 8bef0bc..ace51d9 100644 --- a/src/rust-2024/intoiterator-box-slice.md +++ b/src/rust-2024/intoiterator-box-slice.md @@ -1,4 +1,4 @@ -> **Rust Edition Guide は現在 Rust 2024 のアップデート作業に向けて翻訳作業中です。本ページは英語版をコピーしていますが、一部のリンクが動作しないなどの問題が発生する場合があります。問題が発生した場合は、[原文(英語版)](https://doc.rust-lang.org/nightly/edition-guide/introduction.html)をご参照ください。** +> **Rust Edition Guide は現在 Rust 2024 のアップデート作業に向けて翻訳作業中です。本ページはある時点での英語版をコピーしていますが、一部のリンクが動作しない場合や、最新情報が更新されていない場合があります。問題が発生した場合は、[原文(英語版)](https://doc.rust-lang.org/nightly/edition-guide/introduction.html)をご参照ください。** # Add `IntoIterator` for `Box<[T]>` diff --git a/src/rust-2024/macro-fragment-specifiers.md b/src/rust-2024/macro-fragment-specifiers.md index eff84f5..3a0badf 100644 --- a/src/rust-2024/macro-fragment-specifiers.md +++ b/src/rust-2024/macro-fragment-specifiers.md @@ -1,4 +1,4 @@ -> **Rust Edition Guide は現在 Rust 2024 のアップデート作業に向けて翻訳作業中です。本ページは英語版をコピーしていますが、一部のリンクが動作しないなどの問題が発生する場合があります。問題が発生した場合は、[原文(英語版)](https://doc.rust-lang.org/nightly/edition-guide/introduction.html)をご参照ください。** +> **Rust Edition Guide は現在 Rust 2024 のアップデート作業に向けて翻訳作業中です。本ページはある時点での英語版をコピーしていますが、一部のリンクが動作しない場合や、最新情報が更新されていない場合があります。問題が発生した場合は、[原文(英語版)](https://doc.rust-lang.org/nightly/edition-guide/introduction.html)をご参照ください。** # Macro Fragment Specifiers diff --git a/src/rust-2024/match-ergonomics.md b/src/rust-2024/match-ergonomics.md index 9e203f8..b96c9d4 100644 --- a/src/rust-2024/match-ergonomics.md +++ b/src/rust-2024/match-ergonomics.md @@ -1,4 +1,4 @@ -> **Rust Edition Guide は現在 Rust 2024 のアップデート作業に向けて翻訳作業中です。本ページは英語版をコピーしていますが、一部のリンクが動作しないなどの問題が発生する場合があります。問題が発生した場合は、[原文(英語版)](https://doc.rust-lang.org/nightly/edition-guide/introduction.html)をご参照ください。** +> **Rust Edition Guide は現在 Rust 2024 のアップデート作業に向けて翻訳作業中です。本ページはある時点での英語版をコピーしていますが、一部のリンクが動作しない場合や、最新情報が更新されていない場合があります。問題が発生した場合は、[原文(英語版)](https://doc.rust-lang.org/nightly/edition-guide/introduction.html)をご参照ください。** # Match ergonomics reservations diff --git a/src/rust-2024/missing-macro-fragment-specifiers.md b/src/rust-2024/missing-macro-fragment-specifiers.md index 1bf989c..232bdc4 100644 --- a/src/rust-2024/missing-macro-fragment-specifiers.md +++ b/src/rust-2024/missing-macro-fragment-specifiers.md @@ -1,4 +1,4 @@ -> **Rust Edition Guide は現在 Rust 2024 のアップデート作業に向けて翻訳作業中です。本ページは英語版をコピーしていますが、一部のリンクが動作しないなどの問題が発生する場合があります。問題が発生した場合は、[原文(英語版)](https://doc.rust-lang.org/nightly/edition-guide/introduction.html)をご参照ください。** +> **Rust Edition Guide は現在 Rust 2024 のアップデート作業に向けて翻訳作業中です。本ページはある時点での英語版をコピーしていますが、一部のリンクが動作しない場合や、最新情報が更新されていない場合があります。問題が発生した場合は、[原文(英語版)](https://doc.rust-lang.org/nightly/edition-guide/introduction.html)をご参照ください。** # Missing macro fragment specifiers diff --git a/src/rust-2024/never-type-fallback.md b/src/rust-2024/never-type-fallback.md index 8b8e8f3..c600f58 100644 --- a/src/rust-2024/never-type-fallback.md +++ b/src/rust-2024/never-type-fallback.md @@ -1,4 +1,4 @@ -> **Rust Edition Guide は現在 Rust 2024 のアップデート作業に向けて翻訳作業中です。本ページは英語版をコピーしていますが、一部のリンクが動作しないなどの問題が発生する場合があります。問題が発生した場合は、[原文(英語版)](https://doc.rust-lang.org/nightly/edition-guide/introduction.html)をご参照ください。** +> **Rust Edition Guide は現在 Rust 2024 のアップデート作業に向けて翻訳作業中です。本ページはある時点での英語版をコピーしていますが、一部のリンクが動作しない場合や、最新情報が更新されていない場合があります。問題が発生した場合は、[原文(英語版)](https://doc.rust-lang.org/nightly/edition-guide/introduction.html)をご参照ください。** # Never type fallback change diff --git a/src/rust-2024/newly-unsafe-functions.md b/src/rust-2024/newly-unsafe-functions.md index b49ed46..a9e02fc 100644 --- a/src/rust-2024/newly-unsafe-functions.md +++ b/src/rust-2024/newly-unsafe-functions.md @@ -1,4 +1,4 @@ -> **Rust Edition Guide は現在 Rust 2024 のアップデート作業に向けて翻訳作業中です。本ページは英語版をコピーしていますが、一部のリンクが動作しないなどの問題が発生する場合があります。問題が発生した場合は、[原文(英語版)](https://doc.rust-lang.org/nightly/edition-guide/introduction.html)をご参照ください。** +> **Rust Edition Guide は現在 Rust 2024 のアップデート作業に向けて翻訳作業中です。本ページはある時点での英語版をコピーしていますが、一部のリンクが動作しない場合や、最新情報が更新されていない場合があります。問題が発生した場合は、[原文(英語版)](https://doc.rust-lang.org/nightly/edition-guide/introduction.html)をご参照ください。** # Unsafe functions diff --git a/src/rust-2024/prelude.md b/src/rust-2024/prelude.md index 3e8a07d..bbad82c 100644 --- a/src/rust-2024/prelude.md +++ b/src/rust-2024/prelude.md @@ -1,4 +1,4 @@ -> **Rust Edition Guide は現在 Rust 2024 のアップデート作業に向けて翻訳作業中です。本ページは英語版をコピーしていますが、一部のリンクが動作しないなどの問題が発生する場合があります。問題が発生した場合は、[原文(英語版)](https://doc.rust-lang.org/nightly/edition-guide/introduction.html)をご参照ください。** +> **Rust Edition Guide は現在 Rust 2024 のアップデート作業に向けて翻訳作業中です。本ページはある時点での英語版をコピーしていますが、一部のリンクが動作しない場合や、最新情報が更新されていない場合があります。問題が発生した場合は、[原文(英語版)](https://doc.rust-lang.org/nightly/edition-guide/introduction.html)をご参照ください。** # Changes to the prelude diff --git a/src/rust-2024/reserved-syntax.md b/src/rust-2024/reserved-syntax.md index 2193cbf..0099524 100644 --- a/src/rust-2024/reserved-syntax.md +++ b/src/rust-2024/reserved-syntax.md @@ -1,4 +1,4 @@ -> **Rust Edition Guide は現在 Rust 2024 のアップデート作業に向けて翻訳作業中です。本ページは英語版をコピーしていますが、一部のリンクが動作しないなどの問題が発生する場合があります。問題が発生した場合は、[原文(英語版)](https://doc.rust-lang.org/nightly/edition-guide/introduction.html)をご参照ください。** +> **Rust Edition Guide は現在 Rust 2024 のアップデート作業に向けて翻訳作業中です。本ページはある時点での英語版をコピーしていますが、一部のリンクが動作しない場合や、最新情報が更新されていない場合があります。問題が発生した場合は、[原文(英語版)](https://doc.rust-lang.org/nightly/edition-guide/introduction.html)をご参照ください。** # Reserved syntax diff --git a/src/rust-2024/rpit-lifetime-capture.md b/src/rust-2024/rpit-lifetime-capture.md index f101e10..a49d889 100644 --- a/src/rust-2024/rpit-lifetime-capture.md +++ b/src/rust-2024/rpit-lifetime-capture.md @@ -1,4 +1,4 @@ -> **Rust Edition Guide は現在 Rust 2024 のアップデート作業に向けて翻訳作業中です。本ページは英語版をコピーしていますが、一部のリンクが動作しないなどの問題が発生する場合があります。問題が発生した場合は、[原文(英語版)](https://doc.rust-lang.org/nightly/edition-guide/introduction.html)をご参照ください。** +> **Rust Edition Guide は現在 Rust 2024 のアップデート作業に向けて翻訳作業中です。本ページはある時点での英語版をコピーしていますが、一部のリンクが動作しない場合や、最新情報が更新されていない場合があります。問題が発生した場合は、[原文(英語版)](https://doc.rust-lang.org/nightly/edition-guide/introduction.html)をご参照ください。** # RPIT lifetime capture rules diff --git a/src/rust-2024/rustdoc-doctests.md b/src/rust-2024/rustdoc-doctests.md index 4c6a47f..96281bd 100644 --- a/src/rust-2024/rustdoc-doctests.md +++ b/src/rust-2024/rustdoc-doctests.md @@ -1,4 +1,4 @@ -> **Rust Edition Guide は現在 Rust 2024 のアップデート作業に向けて翻訳作業中です。本ページは英語版をコピーしていますが、一部のリンクが動作しないなどの問題が発生する場合があります。問題が発生した場合は、[原文(英語版)](https://doc.rust-lang.org/nightly/edition-guide/introduction.html)をご参照ください。** +> **Rust Edition Guide は現在 Rust 2024 のアップデート作業に向けて翻訳作業中です。本ページはある時点での英語版をコピーしていますが、一部のリンクが動作しない場合や、最新情報が更新されていない場合があります。問題が発生した場合は、[原文(英語版)](https://doc.rust-lang.org/nightly/edition-guide/introduction.html)をご参照ください。** # Rustdoc combined tests diff --git a/src/rust-2024/rustdoc-nested-includes.md b/src/rust-2024/rustdoc-nested-includes.md index edcd0f1..8ce3f36 100644 --- a/src/rust-2024/rustdoc-nested-includes.md +++ b/src/rust-2024/rustdoc-nested-includes.md @@ -1,4 +1,4 @@ -> **Rust Edition Guide は現在 Rust 2024 のアップデート作業に向けて翻訳作業中です。本ページは英語版をコピーしていますが、一部のリンクが動作しないなどの問題が発生する場合があります。問題が発生した場合は、[原文(英語版)](https://doc.rust-lang.org/nightly/edition-guide/introduction.html)をご参照ください。** +> **Rust Edition Guide は現在 Rust 2024 のアップデート作業に向けて翻訳作業中です。本ページはある時点での英語版をコピーしていますが、一部のリンクが動作しない場合や、最新情報が更新されていない場合があります。問題が発生した場合は、[原文(英語版)](https://doc.rust-lang.org/nightly/edition-guide/introduction.html)をご参照ください。** # Rustdoc nested `include!` change diff --git a/src/rust-2024/rustfmt-formatting-fixes.md b/src/rust-2024/rustfmt-formatting-fixes.md index db1dd0c..306def4 100644 --- a/src/rust-2024/rustfmt-formatting-fixes.md +++ b/src/rust-2024/rustfmt-formatting-fixes.md @@ -1,4 +1,4 @@ -> **Rust Edition Guide は現在 Rust 2024 のアップデート作業に向けて翻訳作業中です。本ページは英語版をコピーしていますが、一部のリンクが動作しないなどの問題が発生する場合があります。問題が発生した場合は、[原文(英語版)](https://doc.rust-lang.org/nightly/edition-guide/introduction.html)をご参照ください。** +> **Rust Edition Guide は現在 Rust 2024 のアップデート作業に向けて翻訳作業中です。本ページはある時点での英語版をコピーしていますが、一部のリンクが動作しない場合や、最新情報が更新されていない場合があります。問題が発生した場合は、[原文(英語版)](https://doc.rust-lang.org/nightly/edition-guide/introduction.html)をご参照ください。** # Rustfmt: Formatting fixes diff --git a/src/rust-2024/rustfmt-raw-identifier-sorting.md b/src/rust-2024/rustfmt-raw-identifier-sorting.md index 195fbc8..5ac0cc6 100644 --- a/src/rust-2024/rustfmt-raw-identifier-sorting.md +++ b/src/rust-2024/rustfmt-raw-identifier-sorting.md @@ -1,4 +1,4 @@ -> **Rust Edition Guide は現在 Rust 2024 のアップデート作業に向けて翻訳作業中です。本ページは英語版をコピーしていますが、一部のリンクが動作しないなどの問題が発生する場合があります。問題が発生した場合は、[原文(英語版)](https://doc.rust-lang.org/nightly/edition-guide/introduction.html)をご参照ください。** +> **Rust Edition Guide は現在 Rust 2024 のアップデート作業に向けて翻訳作業中です。本ページはある時点での英語版をコピーしていますが、一部のリンクが動作しない場合や、最新情報が更新されていない場合があります。問題が発生した場合は、[原文(英語版)](https://doc.rust-lang.org/nightly/edition-guide/introduction.html)をご参照ください。** # Rustfmt: Raw identifier sorting diff --git a/src/rust-2024/rustfmt-style-edition.md b/src/rust-2024/rustfmt-style-edition.md index 3d4ed41..7a60e50 100644 --- a/src/rust-2024/rustfmt-style-edition.md +++ b/src/rust-2024/rustfmt-style-edition.md @@ -1,4 +1,4 @@ -> **Rust Edition Guide は現在 Rust 2024 のアップデート作業に向けて翻訳作業中です。本ページは英語版をコピーしていますが、一部のリンクが動作しないなどの問題が発生する場合があります。問題が発生した場合は、[原文(英語版)](https://doc.rust-lang.org/nightly/edition-guide/introduction.html)をご参照ください。** +> **Rust Edition Guide は現在 Rust 2024 のアップデート作業に向けて翻訳作業中です。本ページはある時点での英語版をコピーしていますが、一部のリンクが動作しない場合や、最新情報が更新されていない場合があります。問題が発生した場合は、[原文(英語版)](https://doc.rust-lang.org/nightly/edition-guide/introduction.html)をご参照ください。** # Rustfmt: Style edition diff --git a/src/rust-2024/rustfmt-version-sorting.md b/src/rust-2024/rustfmt-version-sorting.md index c2865c8..108f4a7 100644 --- a/src/rust-2024/rustfmt-version-sorting.md +++ b/src/rust-2024/rustfmt-version-sorting.md @@ -1,4 +1,4 @@ -> **Rust Edition Guide は現在 Rust 2024 のアップデート作業に向けて翻訳作業中です。本ページは英語版をコピーしていますが、一部のリンクが動作しないなどの問題が発生する場合があります。問題が発生した場合は、[原文(英語版)](https://doc.rust-lang.org/nightly/edition-guide/introduction.html)をご参照ください。** +> **Rust Edition Guide は現在 Rust 2024 のアップデート作業に向けて翻訳作業中です。本ページはある時点での英語版をコピーしていますが、一部のリンクが動作しない場合や、最新情報が更新されていない場合があります。問題が発生した場合は、[原文(英語版)](https://doc.rust-lang.org/nightly/edition-guide/introduction.html)をご参照ください。** # Rustfmt: Version sorting diff --git a/src/rust-2024/static-mut-references.md b/src/rust-2024/static-mut-references.md index 874c249..f6553fd 100644 --- a/src/rust-2024/static-mut-references.md +++ b/src/rust-2024/static-mut-references.md @@ -1,4 +1,4 @@ -> **Rust Edition Guide は現在 Rust 2024 のアップデート作業に向けて翻訳作業中です。本ページは英語版をコピーしていますが、一部のリンクが動作しないなどの問題が発生する場合があります。問題が発生した場合は、[原文(英語版)](https://doc.rust-lang.org/nightly/edition-guide/introduction.html)をご参照ください。** +> **Rust Edition Guide は現在 Rust 2024 のアップデート作業に向けて翻訳作業中です。本ページはある時点での英語版をコピーしていますが、一部のリンクが動作しない場合や、最新情報が更新されていない場合があります。問題が発生した場合は、[原文(英語版)](https://doc.rust-lang.org/nightly/edition-guide/introduction.html)をご参照ください。** # Disallow references to static mut diff --git a/src/rust-2024/temporary-if-let-scope.md b/src/rust-2024/temporary-if-let-scope.md index dcc08f3..0a267d2 100644 --- a/src/rust-2024/temporary-if-let-scope.md +++ b/src/rust-2024/temporary-if-let-scope.md @@ -1,4 +1,4 @@ -> **Rust Edition Guide は現在 Rust 2024 のアップデート作業に向けて翻訳作業中です。本ページは英語版をコピーしていますが、一部のリンクが動作しないなどの問題が発生する場合があります。問題が発生した場合は、[原文(英語版)](https://doc.rust-lang.org/nightly/edition-guide/introduction.html)をご参照ください。** +> **Rust Edition Guide は現在 Rust 2024 のアップデート作業に向けて翻訳作業中です。本ページはある時点での英語版をコピーしていますが、一部のリンクが動作しない場合や、最新情報が更新されていない場合があります。問題が発生した場合は、[原文(英語版)](https://doc.rust-lang.org/nightly/edition-guide/introduction.html)をご参照ください。** # `if let` temporary scope diff --git a/src/rust-2024/temporary-tail-expr-scope.md b/src/rust-2024/temporary-tail-expr-scope.md index bf11e9a..cc29411 100644 --- a/src/rust-2024/temporary-tail-expr-scope.md +++ b/src/rust-2024/temporary-tail-expr-scope.md @@ -1,4 +1,4 @@ -> **Rust Edition Guide は現在 Rust 2024 のアップデート作業に向けて翻訳作業中です。本ページは英語版をコピーしていますが、一部のリンクが動作しないなどの問題が発生する場合があります。問題が発生した場合は、[原文(英語版)](https://doc.rust-lang.org/nightly/edition-guide/introduction.html)をご参照ください。** +> **Rust Edition Guide は現在 Rust 2024 のアップデート作業に向けて翻訳作業中です。本ページはある時点での英語版をコピーしていますが、一部のリンクが動作しない場合や、最新情報が更新されていない場合があります。問題が発生した場合は、[原文(英語版)](https://doc.rust-lang.org/nightly/edition-guide/introduction.html)をご参照ください。** # Tail expression temporary scope diff --git a/src/rust-2024/unsafe-attributes.md b/src/rust-2024/unsafe-attributes.md index 16edf5a..c4a2f13 100644 --- a/src/rust-2024/unsafe-attributes.md +++ b/src/rust-2024/unsafe-attributes.md @@ -1,4 +1,4 @@ -> **Rust Edition Guide は現在 Rust 2024 のアップデート作業に向けて翻訳作業中です。本ページは英語版をコピーしていますが、一部のリンクが動作しないなどの問題が発生する場合があります。問題が発生した場合は、[原文(英語版)](https://doc.rust-lang.org/nightly/edition-guide/introduction.html)をご参照ください。** +> **Rust Edition Guide は現在 Rust 2024 のアップデート作業に向けて翻訳作業中です。本ページはある時点での英語版をコピーしていますが、一部のリンクが動作しない場合や、最新情報が更新されていない場合があります。問題が発生した場合は、[原文(英語版)](https://doc.rust-lang.org/nightly/edition-guide/introduction.html)をご参照ください。** # Unsafe attributes diff --git a/src/rust-2024/unsafe-extern.md b/src/rust-2024/unsafe-extern.md index 7affe13..e7af244 100644 --- a/src/rust-2024/unsafe-extern.md +++ b/src/rust-2024/unsafe-extern.md @@ -1,4 +1,4 @@ -> **Rust Edition Guide は現在 Rust 2024 のアップデート作業に向けて翻訳作業中です。本ページは英語版をコピーしていますが、一部のリンクが動作しないなどの問題が発生する場合があります。問題が発生した場合は、[原文(英語版)](https://doc.rust-lang.org/nightly/edition-guide/introduction.html)をご参照ください。** +> **Rust Edition Guide は現在 Rust 2024 のアップデート作業に向けて翻訳作業中です。本ページはある時点での英語版をコピーしていますが、一部のリンクが動作しない場合や、最新情報が更新されていない場合があります。問題が発生した場合は、[原文(英語版)](https://doc.rust-lang.org/nightly/edition-guide/introduction.html)をご参照ください。** # Unsafe `extern` blocks diff --git a/src/rust-2024/unsafe-op-in-unsafe-fn.md b/src/rust-2024/unsafe-op-in-unsafe-fn.md index 0a7844f..1cc7ad1 100644 --- a/src/rust-2024/unsafe-op-in-unsafe-fn.md +++ b/src/rust-2024/unsafe-op-in-unsafe-fn.md @@ -1,4 +1,4 @@ -> **Rust Edition Guide は現在 Rust 2024 のアップデート作業に向けて翻訳作業中です。本ページは英語版をコピーしていますが、一部のリンクが動作しないなどの問題が発生する場合があります。問題が発生した場合は、[原文(英語版)](https://doc.rust-lang.org/nightly/edition-guide/introduction.html)をご参照ください。** +> **Rust Edition Guide は現在 Rust 2024 のアップデート作業に向けて翻訳作業中です。本ページはある時点での英語版をコピーしていますが、一部のリンクが動作しない場合や、最新情報が更新されていない場合があります。問題が発生した場合は、[原文(英語版)](https://doc.rust-lang.org/nightly/edition-guide/introduction.html)をご参照ください。** # unsafe_op_in_unsafe_fn warning