Skip to content

failed to build tushare_api crate doc in crates.io #144788

@rock117

Description

@rock117

Code

the build always failed, I created a issue in crates.io rust-lang/docs.rs#2880, the Rustdoc team guy said , it's compiler bug. build log is here https://docs.rs/crate/tushare-api/1.1.0/builds/2367646, the log is in below:

rustdoc[923b49b6c48d80ff]::main_args::{closure#2}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>
[INFO] [stderr] 29: 0x558289f8e32d - <<std[252cdfc11d70884]::thread::Builder>::spawn_unchecked_<rustc_interface[46364056eeddd9e7]::util::run_in_thread_with_globals<rustc_interface[46364056eeddd9e7]::util::run_in_thread_pool_with_globals<rustc_interface[46364056eeddd9e7]::interface::run_compiler<(), rustdoc[923b49b6c48d80ff]::main_args::{closure#2}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1} as core[f23c4ce622767e30]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
[INFO] [stderr] 30: 0x7f4e2f598805 - std::sys::pal::unix::thread::Thread::new::thread_start::h63564cc3addf83a5
[INFO] [stderr] 31: 0x7f4e28e37aa4 -
[INFO] [stderr] 32: 0x7f4e28ec4a34 - clone
[INFO] [stderr] 33: 0x0 -
[INFO] [stderr]
[INFO] [stderr] error: the compiler unexpectedly panicked. this is a bug.

Reproduction Steps

trigger the build process: https://docs.rs/crate/tushare-api/1.1.0/builds

Expected Outcome

build succes, no error log output.

Actual Output

build failed, error log is present:

<<std[252cdfc11d70884]::thread::Builder>::spawn_unchecked_<rustc_interface[46364056eeddd9e7]::util::run_in_thread_with_globals<rustc_interface[46364056eeddd9e7]::util::run_in_thread_pool_with_globals<rustc_interface[46364056eeddd9e7]::interface::run_compiler<(), rustdoc[923b49b6c48d80ff]::main_args::{closure#2}>::{closure#1}, ()>::{closure#0}, ()>::{closure#0}::{closure#0}, ()>::{closure#1} as core[f23c4ce622767e30]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
[INFO] [stderr]   30:     0x7f4e2f598805 - std::sys::pal::unix::thread::Thread::new::thread_start::h63564cc3addf83a5
[INFO] [stderr]   31:     0x7f4e28e37aa4 - <unknown>
[INFO] [stderr]   32:     0x7f4e28ec4a34 - clone
[INFO] [stderr]   33:                0x0 - <unknown>
[INFO] [stderr] 
[INFO] [stderr] error: the compiler unexpectedly panicked. this is a bug.
[INFO] [stderr] 
[INFO] [stderr] note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-rustdoc&template=ice.md
[INFO] [stderr] 
[INFO] [stderr] note: please make sure that you have updated to the latest nightly
[INFO] [stderr] 
[INFO] [stderr] warning: the ICE couldn't be written to `/opt/rustwide/workdir/rustc-ice-2025-08-01T00_52_57-155.txt`: Read-only file system (os error 30)
[INFO] [stderr] 
[INFO] [stderr] note: rustc 1.90.0-nightly (3048886e5 2025-07-30) running on x86_64-unknown-linux-gnu
[INFO] [stderr] 
[INFO] [stderr] note: compiler flags: --crate-type lib -Z unstable-options -Z unstable-options -Z unstable-options
[INFO] [stderr] 
[INFO] [stderr] note: some of the compiler flags provided by cargo are hidden
[INFO] [stderr] 
[INFO] [stderr] query stack during panic:
[INFO] [stderr] end of query stack
[INFO] [stderr] warning: `tushare-api` (lib doc) generated 7 warnings
[INFO] [stderr] error: could not document `tushare-api`
[INFO] running `Command { std: "docker" "inspect" "bd3bae53c673e79faee030eb85f9b35f54e63616e91ddf6cfa705bed0dafddf0", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "bd3bae53c673e79faee030eb85f9b35f54e63616e91ddf6cfa705bed0dafddf0", kill_on_drop: false }`
[INFO] [stdout] bd3bae53c673e79faee030eb85f9b35f54e63616e91ddf6cfa705bed0dafddf0

Version

Additional Details

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.E-needs-mcveCall for participation: This issue has a repro, but needs a Minimal Complete and Verifiable ExampleI-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.needs-triageThis issue may need triage. Remove it if it has been sufficiently triaged.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions