Skip to content

unfulfilled-lint-expectations for missing_docs #152401

Description

@tisonkun

Summary

See https://github.com/fast/pqb/actions/runs/21790699964/job/62869466126?pr=20

The #[expect(missing_docs)] is fulfilled but clippy failed it with unfulfilled-lint-expectations.

If I remove the #[expect(missing_docs)], clippy failed with:

error: missing documentation for a variant
  --> pqb/src/value.rs:27:5
   |
27 |     Bool(Option<bool>),
   |     ^^^^
   |
note: the lint level is defined here
  --> pqb/src/lib.rs:30:9
   |
30 | #![deny(missing_docs)]
   |         ^^^^^^^^^^^^

error: missing documentation for a variant
  --> pqb/src/value.rs:28:5
   |
28 |     TinyInt(Option<i8>),
   |     ^^^^^^^

error: missing documentation for a variant
  --> pqb/src/value.rs:29:5
   |
29 |     SmallInt(Option<i16>),
   |     ^^^^^^^^

error: missing documentation for a variant
  --> pqb/src/value.rs:30:5
   |
30 |     Int(Option<i32>),
   |     ^^^

error: missing documentation for a variant
  --> pqb/src/value.rs:31:5
   |
31 |     BigInt(Option<i64>),
   |     ^^^^^^

error: missing documentation for a variant
  --> pqb/src/value.rs:32:5
   |
32 |     TinyUnsigned(Option<u8>),
   |     ^^^^^^^^^^^^

error: missing documentation for a variant
  --> pqb/src/value.rs:33:5
   |
33 |     SmallUnsigned(Option<u16>),
   |     ^^^^^^^^^^^^^

error: missing documentation for a variant
  --> pqb/src/value.rs:34:5
   |
34 |     Unsigned(Option<u32>),
   |     ^^^^^^^^

error: missing documentation for a variant
  --> pqb/src/value.rs:35:5
   |
35 |     BigUnsigned(Option<u64>),
   |     ^^^^^^^^^^^

error: missing documentation for a variant
  --> pqb/src/value.rs:36:5
   |
36 |     Float(Option<f32>),
   |     ^^^^^

error: missing documentation for a variant
  --> pqb/src/value.rs:37:5
   |
37 |     Double(Option<f64>),
   |     ^^^^^^

error: missing documentation for a variant
  --> pqb/src/value.rs:38:5
   |
38 |     String(Option<String>),
   |     ^^^^^^

error: missing documentation for a variant
  --> pqb/src/value.rs:39:5
   |
39 |     Array(Option<Vec<Value>>),
   |     ^^^^^

error: missing documentation for a variant
  --> pqb/src/value.rs:41:5
   |
41 |     Json(Option<Box<Json>>),
   |     ^^^^

error: missing documentation for a variant
  --> pqb/src/value.rs:43:5
   |
43 |     Uuid(Option<Uuid>),
   |     ^^^^

error: could not compile `pqb` (lib) due to 15 previous errors
warning: build failed, waiting for other jobs to finish...
error: could not compile `pqb` (lib test) due to 15 previous errors

Lint Name

unfulfilled-lint-expectations

Reproducer

See above.

Version

rustc 1.95.0-nightly (c7f5f3e0d 2026-02-07)
binary: rustc
commit-hash: c7f5f3e0d5defe632d44743cbaed56272e2b67f0
commit-date: 2026-02-07
host: aarch64-apple-darwin
release: 1.95.0-nightly
LLVM version: 22.1.0

Additional Labels

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsA-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.C-bugCategory: This is a bug.D-incorrectDiagnostics: A diagnostic that is giving misleading or incorrect information.L-missing_docsLint: missing_docsS-has-mcveStatus: A Minimal Complete and Verifiable Example has been found for this issueT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions