Skip to content

lint mode for int/uint in FFI does not warn about *uint, but should #3395

Closed
@nikomatsakis

Description

@nikomatsakis

Right now if you have an FFI function like:

fn foo(c: *uint, l: uint);

you only get a warning about the variable l, but c is (probably) equally broken. This actually but is in the LLVM bindings, where we translated unsigned * to *uint.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-FFIArea: Foreign function interface (FFI)A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.C-enhancementCategory: An issue proposing an enhancement or a PR with one.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions