We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6fdef3 commit 8db57c2Copy full SHA for 8db57c2
core/src/fmt/rt.rs
@@ -68,8 +68,8 @@ pub(super) enum Flag {
68
#[derive(Copy, Clone)]
69
enum ArgumentType<'a> {
70
Placeholder {
71
- // INVARIANT: if `formatter` had type `fn(&T, _) -> _` then `value`
72
- // was derived from a `&T` with lifetime `'a`.
+ // INVARIANT: `formatter` has type `fn(&T, _) -> _` for some `T`, and `value`
+ // was derived from a `&'a T`.
73
value: NonNull<()>,
74
formatter: unsafe fn(NonNull<()>, &mut Formatter<'_>) -> Result,
75
_lifetime: PhantomData<&'a ()>,
0 commit comments