Skip to content

Find a way to detect API breakage. #17152

@mahkoh

Description

@mahkoh

Given that the current rust ecosystem tries very hard to force everyone to use semver, and given that rust code breaks the API easily, this is very important.

Some easy but surprising ways to break the API:

Therefore rustc needs to have something like this:

rustc --record-api out.json lib_old.rs

stores api information in out.json

rustc --compare-api out.json lib_new.rs

Checks if the new api is compatible with the old one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions