{"record":{"id":"e8ee75beb0d51fe8","repo":"diesel-rs/diesel","slug":"only-true-is-accepted-in-this-position-if-you-w","errorCode":null,"errorMessage":"only `true` is accepted in this position. If you want to enable these checks, just skip the attribute entirely","messagePattern":"only `true` is accepted in this position\\. If you want to enable these checks, just skip the attribute entirely","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"diesel_attribute_parser/src/lib.rs","lineNumber":463,"sourceCode":"    Ok(out)\n}\n\nstruct DisabledCheckForBackend {\n    value: LitBool,\n}\n\nimpl syn::parse::Parse for DisabledCheckForBackend {\n    fn parse(input: ParseStream) -> Result<Self> {\n        let ident = input.parse::<Ident>()?;\n        if ident != \"disable\" {\n            return Err(syn::Error::new(\n                ident.span(),\n                format!(\"expected `disable`, but got `{ident}`\"),\n            ));\n        }\n        let lit = parse_eq::<LitBool>(input, \"\")?;\n        if !lit.value {\n            return Err(syn::Error::new(\n                lit.span(),\n                \"only `true` is accepted in this position. \\\n                 If you want to enable these checks, just skip the attribute entirely\",\n            ));\n        }\n        Ok(Self { value: lit })\n    }\n}\n\n#[derive(Debug, Clone, Copy)]\n#[allow(clippy::enum_variant_names)]\npub enum RenameVariants {\n    LowerCase,\n    UpperCase,\n    PascalCase,\n    CamelCase,\n    SnakeCase,\n    ScreamingSnakeCase,","sourceCodeStart":445,"sourceCodeEnd":481,"githubUrl":"https://github.com/diesel-rs/diesel/blob/6fa6ed01b24b24248ab2a611698d0a7c6a2e9120/diesel_attribute_parser/src/lib.rs#L445-L481","documentation":"After `disable`, only the literal `true` is accepted. The offending input is the boolean literal supplied in the attribute; `false` is meaningless because omitting the attribute already enables the checks.","triggerScenarios":"Thrown at diesel_attribute_parser/src/lib.rs:463 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use `disable = true`","Remove the attribute entirely to keep checks enabled","Do not supply `false` in this position"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"6fa6ed01b24b24248ab2a611698d0a7c6a2e9120","analyzedAt":"2026-09-07T01:50:13.074Z","contentChangedAt":"2026-09-07T01:50:13.074Z","schemaVersion":2},"datasetVersion":"2026-09-16T09:17:16.951Z"}