Skip to content

ICE in librustc::traits::select::confirm_param_candidate #68295

Closed
@aweinstock314

Description

@aweinstock314

Error message: error: internal compiler error: src/librustc/traits/select.rs:2922: Where clause `Binder(<base::default_allocator::DefaultAllocator as base::allocator::Allocator<N, R, C>>)` was applicable to `Obligation(predicate=Binder(TraitPredicate(<base::default_allocator::DefaultAllocator as base::allocator::Allocator<_, _, _>>)), depth=1)` but now is not

Commit that reproduces the issue: aweinstock314/nalgebra@5106e2d

I get the same error (except for the exact line number) on 1.38, 1.40, beta, and a couple of nightlies.

The other issues reachable via the query is:issue is:open ICE "but now is not" (#62742 and #55765) are both about the "was matchable against" bug! invocation at

"Impl {:?} was matchable against {:?} but now is not",
, this bug! invocation is at
"Where clause `{:?}` was applicable to `{:?}` but now is not",
, so this is unlikely to be a duplicate.

I haven't yet tried to minimize this: The commit beforehand (1 line difference) on the same nalgebra branch is a compile-fail due to a trait method not being found, and I'm still trying to figure out if that one's a bug in my code.

Metadata

Metadata

Assignees

Labels

A-associated-itemsArea: Associated items (types, constants & functions)A-trait-systemArea: Trait systemA-type-systemArea: Type systemC-bugCategory: This is a bug.E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️P-highHigh priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.glacierICE tracked in rust-lang/glacier.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions