Skip to content

Incorrect quoting in 'attempted access of field' message #2358

Closed
@brson

Description

@brson
./bindgen.rs:644:12: 644:34 error: attempted access of field items on type @{count: mut uint,chains: mut [mut std::map::chained::chain<clang::CXCursor,bool>],hasher: fn@(clang::CXCursor) -> uint,eqer: fn@(clang::CXCursor, clang::CXCursor) -> bool}, but no public field or method with that name was found
./bindgen.rs:644             ctx.unnamed_decl.items() {|c, b|
                             ^~~~~~~~~~~~~~~~~~~~~~
./bindgen.rs:644:12: 644:36 error: the type of this value must be known in this context
./bindgen.rs:644             ctx.unnamed_decl.items() {|c, b|

The word "items" should be backquoted. Maybe the type should be backquoted as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-frontendArea: Compiler frontend (errors, parsing and HIR)E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions