Skip to content

error generating stdlib in json #32638

Closed
Closed
@UtherII

Description

@UtherII

When i try to generate the stdlib in json format, I get a panic :

$ rustdoc -o ~/jsondoc -w json lib.rs 
thread '<unnamed>' panicked at 'Rust generated JSON is invalid: SyntaxError(EOFWhileParsingObject, 1, 16591770)', src/libcore/result.rs:746
stack backtrace:
   1:     0x7faf69d6d330 - std::sys::backtrace::tracing::imp::write::h3152d690c5b90b0c
   2:     0x7faf69d7a9fb - std::panicking::default_hook::_$u7b$$u7b$closure$u7d$$u7d$::hb638acea7c29901b
   3:     0x7faf69d7a62e - std::panicking::default_hook::h508c3dab3df347d6
   4:     0x7faf69d3e32f - std::sys_common::unwind::begin_unwind_inner::h5cd31b1580026517
   5:     0x7faf69d40418 - std::sys_common::unwind::begin_unwind_fmt::h5d8ad4b339509f9d
   6:     0x7faf69d6aa01 - rust_begin_unwind
   7:     0x7faf69ddb22f - core::panicking::panic_fmt::h813eaa27a5810609
   8:     0x7faf6a35d639 - core::result::unwrap_failed::h670a1e09f7460ca6
   9:     0x7faf6a2a0f2a - rustdoc::main_args::h8956ea1c04388a7f
  10:     0x7faf6a29ad7a - std::sys_common::unwind::try::try_fn::hde24304b9a3cc91a
  11:     0x7faf69d6a98b - __rust_try
  12:     0x7faf69d6a91d - std::sys_common::unwind::inner_try::h0adf4a3bf383b17e
  13:     0x7faf6a29b1b8 - _<F as alloc..boxed..FnBox<A>>::call_box::hcf7fef0db7df236b
  14:     0x7faf69d78bc4 - std::sys::thread::Thread::new::thread_start::h8dfc0bc1e9d1f51d
  15:     0x7faf62cbc6a9 - start_thread
  16:     0x7faf699cbe9c - clone
  17:                0x0 - <unknown>

I am using Nighly

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions