{"record":{"id":"8a85cac4bb5314f1","repo":"vosen/ZLUDA","slug":"expected-unified-got","errorCode":null,"errorMessage":"Expected `unified`, got `{}`","messagePattern":"Expected `unified`, got `(.+?)`","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"ptx_parser_macros_impl/src/parser.rs","lineNumber":569,"sourceCode":"            } else if lookahead.peek(token::Bracket) {\n                let bracketed;\n                bracketed!(bracketed in input);\n                if bracketed.peek(Token![|]) {\n                    optional = true;\n                    bracketed.parse::<Token![|]>()?;\n                    pre_pipe = true;\n                    ident = bracketed.parse::<HyphenatedIdent>()?;\n                } else {\n                    let mut sub_args = Self::parse(&bracketed)?;\n                    sub_args.0.first_mut().unwrap().pre_bracket = true;\n                    sub_args.0.last_mut().unwrap().post_bracket = true;\n                    if peek_brace_token(input, Token![.]) {\n                        let optional_suffix;\n                        braced!(optional_suffix in input);\n                        optional_suffix.parse::<Token![.]>()?;\n                        let unified_ident = optional_suffix.parse::<Ident>()?;\n                        if unified_ident.to_string() != \"unified\" {\n                            return Err(syn::Error::new(\n                                unified_ident.span(),\n                                format!(\"Expected `unified`, got `{}`\", unified_ident),\n                            ));\n                        }\n                        for a in sub_args.0.iter_mut() {\n                            a.unified = true;\n                        }\n                    }\n                    result.extend(sub_args.0);\n                    continue;\n                }\n            } else if lookahead.peek(Ident) {\n                ident = input.parse::<HyphenatedIdent>()?;\n            } else if lookahead.peek(Token![|]) {\n                input.parse::<Token![|]>()?;\n                pre_pipe = true;\n                ident = input.parse::<HyphenatedIdent>()?;\n            } else {","sourceCodeStart":551,"sourceCodeEnd":587,"githubUrl":"https://github.com/vosen/ZLUDA/blob/9c8b43f242985150f86a7f485218b7b82c3e96ca/ptx_parser_macros_impl/src/parser.rs#L551-L587","documentation":"Proc-macro parse error from the PTX parser generator: while parsing an instruction operand state descriptor it encountered a token other than `unified` where `unified` was expected. This is an error in the ZLUDA project's own grammar source (ptx_parser_macros macros), not in user PTX code — a state-parsing rule was written with the wrong token order or a typo.","triggerScenarios":"Thrown at ptx_parser_macros_impl/src/parser.rs:569 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the grammar rule around the error site in ptx_parser_macros_impl and place `unified` where the parser expects it","Verify optional/bracketed operand syntax matches what the sub-parser produces","Update to a upstream revision where the grammar compiles"],"exampleFix":null,"handlingStrategy":"type-guard","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"9c8b43f242985150f86a7f485218b7b82c3e96ca","analyzedAt":"2026-09-06T09:21:08.049Z","contentChangedAt":"2026-09-06T09:21:08.049Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}