(span: SpanId)
| 233 | |
| 234 | #[coverage(off)] |
| 235 | pub(super) fn closure_aggregate(span: SpanId) -> EvalDiagnostic { |
| 236 | let mut diagnostic = Diagnostic::new( |
| 237 | category(PostgresDiagnosticCategory::ClosureAggregate), |
| 238 | Severity::Bug, |
| 239 | ) |
| 240 | .primary(Label::new( |
| 241 | span, |
| 242 | "closure construction cannot be compiled to SQL", |
| 243 | )); |
| 244 | |
| 245 | diagnostic.add_message(Message::note( |
| 246 | "the statement placement pass should have rejected this from the Postgres backend", |
| 247 | )); |
| 248 | |
| 249 | diagnostic |
| 250 | } |
| 251 | |
| 252 | #[coverage(off)] |
| 253 | pub(super) fn function_pointer_constant(span: SpanId) -> EvalDiagnostic { |
no test coverage detected