Skip to content

Bug: ICE upvar self borrowed but not mutably./  #6672

@brightly-salty

Description

@brightly-salty

I recieved this unexpected output when running cargo clippy on a branch of scryer-prolog:

➜  scryer-prolog git:(clippy-warnings) ✗ cargo clippy
    Checking scryer-prolog v0.8.127 (/Users/cadenhaustein/Documents/GitHub/scryer-prolog)
error: internal compiler error: compiler/rustc_mir/src/borrow_check/diagnostics/mutability_errors.rs:505:22: upvar `self` borrowed, but not mutably

thread 'rustc' panicked at 'Box<Any>', compiler/rustc_errors/src/lib.rs:958:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

note: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: https://github.com/rust-lang/rust-clippy/issues/new

note: Clippy version: clippy 0.1.51 (04caa632 2021-01-30)

query stack during panic:
#0 [mir_borrowck] borrow-checking `machine::loader::<impl machine::Machine>::compile_user_assert`
#1 [analysis] running analysis passes on this crate
end of query stack
error: aborting due to previous error

error: could not compile `scryer-prolog`

To learn more, run the command again with --verbose.
➜  scryer-prolog git:(clippy-warnings) ✗

Metadata

Metadata

Assignees

No one assigned

    Labels

    I-ICEIssue: Clippy panicked, giving an Internal Compilation Error (ICE) ❄️

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions