Skip to content

Indexing regression in beta #48715

Closed
Closed
@Mark-Simulacrum

Description

@Mark-Simulacrum

seal-0.1.0 regressed with the following:

error[E0502]: cannot borrow `*self` as immutable because it is also borrowed as mutable
  --> src/pair/alignment_matrix.rs:79:26
   |
79 |         self.mut_slice()[self.offset(cursor)] = byte;
   |         ----             ^^^^               - mutable borrow ends here
   |         |                |
   |         |                immutable borrow occurs here
   |         mutable borrow occurs here

error: aborting due to previous error

error: Could not compile `seal`.

This looks vaguely familiar but looking at pull requests didn't seem to find anything apparent.

cc @rust-lang/compiler

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-borrow-checkerArea: The borrow checkerC-bugCategory: This is a bug.T-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.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions