Skip to content

rustdoc query cycle regression #141492

@BoxyUwU

Description

@BoxyUwU
 I believe this caused a regression on nightly. See https://github.com/aya-rs/aya/actions/runs/15223453504/job/42822502727. 
 Documenting aya-log-ebpf v0.1.1 (/home/runner/work/aya/aya/ebpf/aya-log-ebpf) error[E0391]: cycle detected when computing revealed normalized predicates of `aya_ebpf::EbpfContext::command::{constant#0}` --> /home/runner/work/aya/aya/ebpf/aya-ebpf/src/lib.rs:42:38 | 42 | fn command(&self) -> Result<[u8; TASK_COMM_LEN], c_long> { | ^^^^^^^^^^^^^ | note: ...which requires computing normalized predicates of `aya_ebpf::EbpfContext::command::{constant#0}`... --> /home/runner/work/aya/aya/ebpf/aya-ebpf/src/lib.rs:42:38 | 42 | fn command(&self) -> Result<[u8; TASK_COMM_LEN], c_long> { | ^^^^^^^^^^^^^ = note: ...which again requires computing revealed normalized predicates of `aya_ebpf::EbpfContext::command::{constant#0}`, completing the cycle = note: cycle used when normalizing `aya_ebpf::::EbpfContext::command::{constant#0}` = note: see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information For more information about this error, try `rustc --explain E0391`. error: could not document `aya-log-ebpf` 

Oddly, this seems specific to rustdoc.

Originally posted by @tamird in #139635 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-const-genericsArea: const generics (parameters and arguments)C-bugCategory: This is a bug.F-generic_const_exprs`#![feature(generic_const_exprs)]`I-cycleIssue: A query cycle occurred while none was expectedT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.T-rustdocRelevant to the rustdoc 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