Skip to content

[BUG] failed to build against rust 1.89.0 #649

@chenrui333

Description

@chenrui333

Describe the bug
seeing some regression build failure with 3.1.12 release against rust 1.89.0

  error: implicit autoref creates a reference to the dereference of a raw pointer
    --> guard/src/rules/libyaml/parser.rs:48:16
     |
  48 |             if (*parser).error != sys::YAML_NO_ERROR {
     |                ^^------^^^^^^^
     |                  |
     |                  this raw pointer has type `*mut yaml_parser_t`
     |
     = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements
     = note: references are created through calls to explicit `Deref(Mut)::deref(_mut)` implementations
     = note: `#[deny(dangerous_implicit_autorefs)]` on by default
  help: try using a raw pointer method instead; or if this reference is intentional, make it explicit
     |
  48 |             if (&(*parser)).error != sys::YAML_NO_ERROR {
     |                ++         +
  

full build log, https://github.com/Homebrew/homebrew-core/actions/runs/17683652511/job/50263469374#step:4:930

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions