Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 3962bfa

Browse files
Rollup merge of #135856 - fmease:library-mv-obj-save-dyn-compat-ii, r=tgross35
Library: Finalize dyn compatibility renaming Update the Reference link to use the new URL fragment from rust-lang/reference#1666 (this change has finally hit stable). Fixes a FIXME. Follow-up to #130827. Part of #130852.
2 parents 0bdc101 + 9e98d25 commit 3962bfa

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

‎library/std/src/keyword_docs.rs‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2387,13 +2387,12 @@ mod async_keyword {}
23872387
/// [`async`]: ../std/keyword.async.html
23882388
mod await_keyword {}
23892389

2390-
// FIXME(dyn_compat_renaming): Update URL and link text.
23912390
#[doc(keyword = "dyn")]
23922391
//
23932392
/// `dyn` is a prefix of a [trait object]'s type.
23942393
///
23952394
/// The `dyn` keyword is used to highlight that calls to methods on the associated `Trait`
2396-
/// are [dynamically dispatched]. To use the trait this way, it must be 'dyn-compatible'[^1].
2395+
/// are [dynamically dispatched]. To use the trait this way, it must be *dyncompatible*[^1].
23972396
///
23982397
/// Unlike generic parameters or `impl Trait`, the compiler does not know the concrete type that
23992398
/// is being passed. That is, the type has been [erased].
@@ -2406,7 +2405,7 @@ mod await_keyword {}
24062405
/// the function pointer and then that function pointer is called.
24072406
///
24082407
/// See the Reference for more information on [trait objects][ref-trait-obj]
2409-
/// and [object safety][ref-obj-safety].
2408+
/// and [dyn compatibility][ref-dyn-compat].
24102409
///
24112410
/// ## Trade-offs
24122411
///
@@ -2419,9 +2418,9 @@ mod await_keyword {}
24192418
/// [trait object]: ../book/ch17-02-trait-objects.html
24202419
/// [dynamically dispatched]: https://en.wikipedia.org/wiki/Dynamic_dispatch
24212420
/// [ref-trait-obj]: ../reference/types/trait-object.html
2422-
/// [ref-obj-safety]: ../reference/items/traits.html#object-safety
2421+
/// [ref-dyn-compat]: ../reference/items/traits.html#dyn-compatibility
24232422
/// [erased]: https://en.wikipedia.org/wiki/Type_erasure
2424-
/// [^1]: Formerly known as 'object safe'.
2423+
/// [^1]: Formerly known as *object safe*.
24252424
mod dyn_keyword {}
24262425

24272426
#[doc(keyword = "union")]

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /