Skip to content

Tracking Issue for experiment with default auto traits #138781

Open
@Bryanskiy

Description

@Bryanskiy
Contributor

This is a tracking issue for the lang experiment with new default auto traits, which is part of "MCP: Low level components for async drop" (rust-lang/compiler-team#727 + #120706 (comment))
Default auto traits are gated behind -Zexperimental-default-bounds.

The experiment was accepted in rust-lang/rust#120706 (comment). See the PR description of #120706 for more details.

About tracking issues

Tracking issues are used to record the overall progress of implementation. They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions. A tracking issue is however not meant for large scale discussion, questions, or bug reports about a feature. Instead, open a dedicated issue for the specific matter and add the relevant feature gate label. Discussion comments will get marked as off-topic or deleted. Repeated discussions on the tracking issue may lead to the tracking issue getting locked.

Steps

  • Implementation
  • Standard library experiments
    Publish results

Unresolved Questions

  • due to performance issues, we currently only add the new default traits as super traits if it is required. Ideally this behavior should be consistent
  • Default auto traits trigger several compiler bugs:
  • Default auto traits cause a huge performance regressions and overflow errors
    Default auto traits are incompatible with non-lifetime binders
    Migration to a new edition

Implementation history

rust-lang/rust#120706
rust-lang/rust#121676

Activity

added
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFC
on Mar 21, 2025
added
T-langRelevant to the language team
B-experimentalBlocker: In-tree experiment; RFC pending, not yet approved or unneeded (requires FCP to stabilize).
on Mar 21, 2025
added a commit that references this issue on Apr 4, 2025

Auto merge of rust-lang#120706 - Bryanskiy:leak, r=lcnr

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

    B-experimentalBlocker: In-tree experiment; RFC pending, not yet approved or unneeded (requires FCP to stabilize).C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCT-langRelevant to the language team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @fmease@Bryanskiy

        Issue actions

          Tracking Issue for experiment with default auto traits · Issue #138781 · rust-lang/rust