about summary refs log tree commit diff
path: root/library/core
diff options
context:
space:
mode:
author许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com>2024-06-17 04:53:57 +0100
committerGitHub <noreply@github.com>2024-06-17 04:53:57 +0100
commit61577a87343d30f814c0b4cf76fbb934225521e1 (patch)
treeb0f4e2585a7b6e3cdf2a2b307f0b68b08a224286 /library/core
parentf39327bcf22db3a6c14888eec18c704bdbcda1fd (diff)
parent51d95464169751604a3cf70b1c8c524450258427 (diff)
downloadrust-61577a87343d30f814c0b4cf76fbb934225521e1.tar.gz
rust-61577a87343d30f814c0b4cf76fbb934225521e1.zip
Rollup merge of #126531 - slanterns:error_provider, r=workingjubilee
Add codegen test for `Request::provide_*`

Codegen before & after https://github.com/rust-lang/rust/pull/126242: https://gist.github.com/slanterns/3789ee36f59ed834e1a6bd4677b68ed4.

Also adjust an outdated comment since `tag_id` is no longer attached to `TaggedOption` via `Erased`, but stored next to it in `Tagged` under the new implementation.

My first time writing FileCheck xD. Correct me if there is anything that should be amended.

r? libs
Diffstat (limited to 'library/core')
-rw-r--r--library/core/src/error.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/error.rs b/library/core/src/error.rs
index 042a8c9925f..150e4f3f318 100644
--- a/library/core/src/error.rs
+++ b/library/core/src/error.rs
@@ -928,7 +928,7 @@ pub(crate) mod tags {
 /// An `Option` with a type tag `I`.
 ///
 /// Since this struct implements `Erased`, the type can be erased to make a dynamically typed
-/// option. The type can be checked dynamically using `Erased::tag_id` and since this is statically
+/// option. The type can be checked dynamically using `Tagged::tag_id` and since this is statically
 /// checked for the concrete type, there is some degree of type safety.
 #[repr(transparent)]
 pub(crate) struct TaggedOption<'a, I: tags::Type<'a>>(pub Option<I::Reified>);