Skip to content

Commit c1acd7a

Browse files
authored
Rollup merge of rust-lang#126531 - slanterns:error_provider, r=workingjubilee
Add codegen test for `Request::provide_*` Codegen before & after rust-lang#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
2 parents cd1c998 + 2388743 commit c1acd7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/error.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -928,7 +928,7 @@ pub(crate) mod tags {
928928
/// An `Option` with a type tag `I`.
929929
///
930930
/// Since this struct implements `Erased`, the type can be erased to make a dynamically typed
931-
/// option. The type can be checked dynamically using `Erased::tag_id` and since this is statically
931+
/// option. The type can be checked dynamically using `Tagged::tag_id` and since this is statically
932932
/// checked for the concrete type, there is some degree of type safety.
933933
#[repr(transparent)]
934934
pub(crate) struct TaggedOption<'a, I: tags::Type<'a>>(pub Option<I::Reified>);

0 commit comments

Comments
 (0)