Skip to content

Ugly ICE output #108429

Closed
Closed
@GuillaumeGomez

Description

@GuillaumeGomez
Member

I got this output with an ICE:

error: internal compiler error: compiler/rustc_middle/src/ty/query.rs:440:1: `tcx.item_attrs(DefId(0:3 ~ mycrate_impl[f883]::{use#1}))` is not supported for local crate;
                                
                                                        hint: Queries can be either made to the local crate, or the external crate. This error means you tried to use it for one that's not supported.
                                
                                                        If that's not the case, item_attrs was likely never assigned to a provider function.

Very weird left padding.

cc @estebank

Activity

estebank

estebank commented on Feb 24, 2023

@estebank
Contributor

Providers {
$($name: |_, key| bug!(
"`tcx.{}({:?})` is not supported for {} crate;\n
hint: Queries can be either made to the local crate, or the external crate. This error means you tried to use it for one that's not supported.\n
If that's not the case, {} was likely never assigned to a provider function.\n",
stringify!($name),
key,
if key.query_crate_is_local() { "local" } else { "external" },
stringify!($name),
),)*

added
E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
on Feb 24, 2023
GuillaumeGomez

GuillaumeGomez commented on Feb 24, 2023

@GuillaumeGomez
MemberAuthor

Sending a fix for it then.

added 2 commits that reference this issue on Feb 24, 2023

Rollup merge of rust-lang#108433 - compiler-errors:missing-provider-n…

2b43a98

Rollup merge of rust-lang#108433 - compiler-errors:missing-provider-n…

a4740a1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @estebank@GuillaumeGomez

      Issue actions

        Ugly ICE output · Issue #108429 · rust-lang/rust