Skip to content

Compat of adding parameters to stable types #1

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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