@@ -424,7 +424,9 @@ pub struct FnKindView {
424424/// See <https://willcrichton.net/notes/defeating-coherence-rust/> for details on this technique.
425425#[ cfg_attr(
426426 feature = "unstable" ,
427- doc = "It will be one of [`FnKindReducer`] or [`FnKindProcedure`] in modules that compile successfully."
427+ // TODO(scheduled-procedures): uncomment this, delete other line
428+ // doc = "It will be one of [`FnKindReducer`] or [`FnKindProcedure`] in modules that compile successfully."
429+ doc = "It will be [`FnKindReducer`] in modules that compile successfully."
428430) ]
429431#[ cfg_attr(
430432 not( feature = "unstable" ) ,
@@ -437,23 +439,24 @@ pub struct FnKindView {
437439 note = "views cannot be scheduled" ,
438440 note = "the scheduled function must take `{TableRow}` as its sole argument" ,
439441 note = "e.g: `fn scheduled_reducer(ctx: &ReducerContext, arg: {TableRow})`" ,
440- note = "or `fn scheduled_procedure(ctx: &mut ProcedureContext, arg: {TableRow})`"
442+ // note = "or `fn scheduled_procedure(ctx: &mut ProcedureContext, arg: {TableRow})`"
441443) ]
442444pub trait ExportFunctionForScheduledTable < ' de , TableRow , FnKind > { }
443445impl < ' de , TableRow : SpacetimeType + Serialize + Deserialize < ' de > , F : Reducer < ' de , ( TableRow , ) > >
444446 ExportFunctionForScheduledTable < ' de , TableRow , FnKindReducer > for F
445447{
446448}
447449
448- #[ cfg( feature = "unstable" ) ]
449- impl <
450- ' de ,
451- TableRow : SpacetimeType + Serialize + Deserialize < ' de > ,
452- Ret : SpacetimeType + Serialize + Deserialize < ' de > ,
453- F : Procedure < ' de , ( TableRow , ) , Ret > ,
454- > ExportFunctionForScheduledTable < ' de , TableRow , FnKindProcedure < Ret > > for F
455- {
456- }
450+ // TODO(scheduled-procedures): uncomment this to syntactically allow scheduled procedures.
451+ // #[cfg(feature = "unstable")]
452+ // impl<
453+ // 'de,
454+ // TableRow: SpacetimeType + Serialize + Deserialize<'de>,
455+ // Ret: SpacetimeType + Serialize + Deserialize<'de>,
456+ // F: Procedure<'de, (TableRow,), Ret>,
457+ // > ExportFunctionForScheduledTable<'de, TableRow, FnKindProcedure<Ret>> for F
458+ // {
459+ // }
457460
458461// the macro generates <T as SpacetimeType>::make_type::<DummyTypespace>
459462pub struct DummyTypespace ;
0 commit comments