core: improve comment
Co-authored-by: Ralf Jung <post@ralfj.de>
This commit is contained in:
parent
7526416ba6
commit
7e7d0a959d
@ -68,8 +68,8 @@ pub(super) enum Flag {
|
|||||||
#[derive(Copy, Clone)]
|
#[derive(Copy, Clone)]
|
||||||
enum ArgumentType<'a> {
|
enum ArgumentType<'a> {
|
||||||
Placeholder {
|
Placeholder {
|
||||||
// INVARIANT: if `formatter` had type `fn(&T, _) -> _` then `value`
|
// INVARIANT: `formatter` has type `fn(&T, _) -> _` for some `T`, and `value`
|
||||||
// was derived from a `&T` with lifetime `'a`.
|
// was derived from a `&'a T`.
|
||||||
value: NonNull<()>,
|
value: NonNull<()>,
|
||||||
formatter: unsafe fn(NonNull<()>, &mut Formatter<'_>) -> Result,
|
formatter: unsafe fn(NonNull<()>, &mut Formatter<'_>) -> Result,
|
||||||
_lifetime: PhantomData<&'a ()>,
|
_lifetime: PhantomData<&'a ()>,
|
||||||
|
Loading…
Reference in New Issue
Block a user