Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error generating stdlib in json #32638

Closed
UtherII opened this issue Mar 31, 2016 · 2 comments
Closed

error generating stdlib in json #32638

UtherII opened this issue Mar 31, 2016 · 2 comments

Comments

@UtherII
Copy link

UtherII commented Mar 31, 2016

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

@mitaa
Copy link
Contributor

mitaa commented Mar 31, 2016

This is probably #25108. I've been meaning to take a look at this...

@UtherII
Copy link
Author

UtherII commented Mar 31, 2016

Indeed, this issue is a duplicate. I had found issue #25108 before posting mine, but I only read the first part about compilation error.

@UtherII UtherII closed this as completed Mar 31, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants