Skip to content

cannot borrow as mutable because it is also borrowed as immutable (likely regression) #60136

Closed
@Dylan-DPC-zz

Description

@Dylan-DPC-zz

From a crater run:

 Compiling web-dom v0.0.8
[INFO] [stderr]    Compiling webcomponent v0.3.3 (/opt/crater/workdir)
[INFO] [stderr] error[E0502]: cannot borrow `*controller` as mutable because it is also borrowed as immutable
[INFO] [stderr]   --> src/lib.rs:27:13
[INFO] [stderr]    |
[INFO] [stderr] 27 |             (controller.processor)(controller, &tag, el);
[INFO] [stderr]    |             ----------------------^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |             |
[INFO] [stderr]    |             mutable borrow occurs here
[INFO] [stderr]    |             immutable borrow occurs here
[INFO] [stderr]    |             immutable borrow later used by call
[INFO] [stderr] 
[INFO] [stderr] error: aborting due to previous error

crate(s) affected: webcomponent (0.3)
author: @richardanaya
log: https://crater-reports.s3.amazonaws.com/beta-1.35-1/beta-2019-04-11/reg/webcomponent-0.3.3/log.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    P-highHigh priorityT-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

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions