Skip to content

Compat of adding parameters to stable types #1

Closed
@SimonSapin

Description

@SimonSapin

Are there backward-compatibility issues with adding a defaulted type parameter to a stable type? For example changing:

struct Vec<T> {}

To:

struct Vec<T, A: Alloc = Global> {}

The API Evolution RFC claims this is not a major breaking change, but I vaguely recall discussion of type inference being negatively affected.

Is rust-lang/rust#27336 relevant here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-CompatibilityIssues regarding semver compatibilityBlockerThis issue has to be resolved before progress can be made

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions