Skip to content

"no warnings or errors encountered even though delayed_good_path_bugs issued" after panic #117381

Closed
@RalfJung

Description

@RalfJung

I'm getting a panic

thread 'rustc' panicked at compiler/rustc_ty_utils/src/abi.rs:360:21:
`PassMode::Direct` for aggregates only allowed on wasm and `extern "ptx-kernel"` fns
Problematic type: TyAndLayout {
    ty: ReprC1<*const i32>,
...

(that's expected, I'm working on that part of the compiler)
and after that I am getting a second error

error: internal compiler error: no warnings or errors encountered even though `delayed_good_path_bugs` issued

error: internal compiler error: trimmed_def_paths constructed but no error emitted; use `DelayDm` for lints or `with_no_trimmed_paths` for debugging

That's bad, it makes the panic message harder to find. It's also wrong, there was an error encountered, a panic even!

Cc @compiler-errors -- that's one of the trimmed-path issues I encountered recently (but might be unrelated to #117373)

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.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.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions