We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7526416 commit 7e7d0a9Copy full SHA for 7e7d0a9
library/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