Skip to content

regression 1.49: trait bound no longer inferred for associated type #79904

Closed

Description

@rylev

Log: https://crater-reports.s3.amazonaws.com/beta-1.49-1/beta-2020-11-26/gh/marcianx.openmesh-rs-core/log.txt

[INFO] [stdout] error[E0277]: the trait bound `H: handle::ItemHandle` is not satisfied
[INFO] [stdout]    --> src/property/property.rs:119:14
[INFO] [stdout]     |
[INFO] [stdout] 119 |         self.clone_as_trait()
[INFO] [stdout]     |              ^^^^^^^^^^^^^^ the trait `handle::ItemHandle` is not implemented for `H`
[INFO] [stdout]     |
[INFO] [stdout] help: consider restricting type parameter `H`
[INFO] [stdout]     |
[INFO] [stdout] 116 | impl<H: handle::ItemHandle> Clone for Box<dyn ResizeableProperty<Handle=H>>
[INFO] [stdout]     |       ^^^^^^^^^^^^^^^^^^^^

ResizeablePropertyHandle::Handle is constrained to implement handle::ItemHandle.

Other logs:
https://crater-reports.s3.amazonaws.com/beta-1.49-1/beta-2020-11-26/gh/Polkadex-Substrate.polkadex-engine/log.txt
https://crater-reports.s3.amazonaws.com/beta-1.49-1/beta-2020-11-26/reg/actix-amqp-0.1.4/log.txt
https://crater-reports.s3.amazonaws.com/beta-1.49-1/beta-2020-11-26/reg/ntex-amqp-0.1.20/log.txt

@rustbot modify labels: +regression-from-stable-to-beta

Activity

  1. added
    I-prioritizeIssue needs a team member to assess the impact. Will be replaced by P-{low,medium,high,critical}
    on Dec 10, 2020
  2. added this to the 1.49.0 milestone on Dec 10, 2020
  3. Mark-Simulacrum commented on Dec 10, 2020

    @Mark-Simulacrum
    Member

    cc @nikomatsakis, @matthewjasper -- might this be related to #78893? It looks sort of "inverse" of that one I guess

  4. rylev commented on Dec 10, 2020

    @rylev
    ContributorAuthor

    The actix-amqp and ntex-amqp logs also show another error (E0271). Perhaps these errors are related, but it's not easy to tell.

  5. dillona commented on Dec 11, 2020

    @dillona
    Contributor

    searched nightlies: from nightly-2020-09-24 to nightly-2020-12-11
    regressed nightly: nightly-2020-10-07
    searched commits: from a1dfd24 to 98edd1f
    regressed commit: 08e2d46

    bisected with cargo-bisect-rustc v0.6.0

    Host triple: aarch64-unknown-linux-gnu
    Reproduce with:

    cargo bisect-rustc
  6. Mark-Simulacrum commented on Dec 11, 2020

    @Mark-Simulacrum
    Member

    Probably a duplicate of #79905

  7. matthewjasper commented on Dec 11, 2020

    @matthewjasper
    Contributor

    #77638 maybe?

  8. added
    T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
    on Dec 11, 2020
  9. jyn514 commented on Dec 16, 2020

    @jyn514
    Member

    #77638 was marked as wontfix: #77638 (comment). If this is the same issue, does it make sense to close it too?

  10. rylev commented on Dec 17, 2020

    @rylev
    ContributorAuthor

    I'm surprised #77638 was marked as wontfix. This is a breaking change that seems to effect several real crates. While I admit I was surprised that this used to work (i.e., the current behavior makes more sense to me), I think we should confirm that how it's currently implemented in beta is how it's supposed to work.

  11. rylev commented on Dec 17, 2020

    @rylev
    ContributorAuthor

    After discussion in Zulip, we decided to nominate this for discussion:

    @rustbot label I-nominate

  12. apiraino commented on Dec 17, 2020

    @apiraino
    Contributor

    @rustbot label I-nominate

    (let me try)

  13. 1 remaining item

  14. matthewjasper commented on Dec 18, 2020

    @matthewjasper
    Contributor

    Looking at this more closely, this is fallout from fixing #27675.

  15. added
    relnotesMarks issues that should be documented in the release notes of the next release.
    and removed
    I-prioritizeIssue needs a team member to assess the impact. Will be replaced by P-{low,medium,high,critical}
    on Dec 18, 2020
  16. Mark-Simulacrum commented on Dec 18, 2020

    @Mark-Simulacrum
    Member

    Okay, sounds like won't fix and that we should note the fix for #27675 as a compatibility note. Assigning to @XAMPPRocky to do so (and close this issue once you have done so).

  17. XAMPPRocky commented on Dec 23, 2020

    @XAMPPRocky
    Contributor

    Now in relnotes.

  18. ibaryshnikov commented on Jan 5, 2021

    @ibaryshnikov

    Can we have a summary of what happened? Or maybe a mention in the rust blog? After following through linked issues and pull requests I found a few mentions of security holes, but it's hard for me to reason about it. Some explanations from those who are more familiar with the topic would be much appreciated.
    And what should I do with the code which compiled on stable rust 1.48.0 but stopped to compile on stable rust 1.49.0? Should I wait for a fix or rewrite it?

  19. matthewjasper commented on Jan 10, 2021

    @matthewjasper
    Contributor
  20. added a commit that references this issue on Feb 3, 2021
  21. added a commit that references this issue on May 11, 2026
  22. added a commit that references this issue on May 14, 2026
  23. added a commit that references this issue on Oct 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A-trait-systemArea: Trait systemT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.relnotesMarks issues that should be documented in the release notes of the next release.

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions