Skip to content

regression: ICE no resolution found for import #147966

Closed

Description

@BoxyUwU
[INFO] [stdout] error: internal compiler error: no resolution for an import
[INFO] [stdout]  --> tests/config_handler_tests.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use hyper::StatusCode;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout] note: delayed at compiler/rustc_ast_lowering/src/lib.rs:760:24

Activity

  1. added
    I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
    T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
    C-bugCategory: This is a bug.
    regression-untriagedUntriaged performance or correctness regression.
    on Oct 22, 2025
  2. added
    needs-triageThis issue may need triage. Remove when done. See docs forge.rust-lang.org/release/issue-triaging
    I-prioritizeIssue needs a team member to assess the impact. Will be replaced by P-{low,medium,high,critical}
    on Oct 22, 2025
  3. added
    E-needs-bisectionCall for participation: This issue needs bisection: https://github.com/rust-lang/cargo-bisect-rustc
    E-needs-investigationCall for participation: This issues needs some investigation to determine current status
    on Oct 22, 2025
  4. theemathas commented on Oct 23, 2025

    @theemathas
    Contributor

    I am having trouble reproducing this issue. When I compiled ohttp-gateway on stable rust 1.90 on windows, I got the following error.

    error[E0464]: multiple candidates for rlib dependency hyper found

    Note that ohttp-gateway specifies two different versions for hyper, one in [dependencies], and one in [dev-dependencies].

    I'm confused on how it compiled on stable in crater in the first place. Is there some odd setup I need?

    Edit: I'm told that it compiles on stable in Linux? Weird.......

  5. frogtd commented on Oct 23, 2025

    @frogtd
    Contributor

    This does compile on stable on Linux, and ICEs on beta, but if you remove everything but the two conflicting deps, it does give the error about duplicated rlib's, both on stable and beta:

    error[E0464]: multiple candidates for `rlib` dependency `hyper` found
     --> tests/config_handler_tests.rs:1:5
      |
    1 | use hyper::StatusCode;
      |     ^^^^^
      |
      = note: candidate #1: /home/ash/Downloads/ohttp-gateway/target/debug/deps/libhyper-08a7d65fae167315.rlib
      = note: candidate #2: /home/ash/Downloads/ohttp-gateway/target/debug/deps/libhyper-a6c863e938beb4b9.rlib
    
  6. theemathas commented on Oct 23, 2025

    @theemathas
    Contributor

    My guess is: There's a preexisting bug in stable that fails to detect duplicate rlibs, but only in some conditions, and not on windows. This bug was previously hidden, and manifested as an ICE on beta due to some additional check performed.

  7. Kivooeo commented on Oct 24, 2025

    @Kivooeo
    Member

    here is bisect for this regression

    searched nightlies: from nightly-2025-07-01 to nightly-2025-10-12
    regressed nightly: nightly-2025-09-02
    searched commit range: 07d246f...7aef4be
    regressed commit: be4e9b7

    bisected with cargo-bisect-rustc v0.6.10

    Host triple: aarch64-unknown-linux-gnu
    Reproduce with:

    cargo bisect-rustc --start=2025-07-01 --end=2025-10-12 --regress=ice -- test --no-run 
  8. Kivooeo commented on Oct 24, 2025

    @Kivooeo
    Member

    presumably #146004

  9. 28 remaining items

  10. added 2 commits that reference this issue on Dec 13, 2025
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

    A-resolveArea: Name/path resolution done by `rustc_resolve` specificallyC-bugCategory: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️P-mediumMedium priorityS-has-bisectionStatus: A bisection has been found for this issueT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-stablePerformance or correctness regression from one stable version to another.

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions