Skip to content

[cargo doc ICE] SBC-Case parentheses result in ICE #55723

Closed
@ZhangHanDong

Description

@ZhangHanDong
///  this is sbc-case parentheses ->(sum )
fn test(){}

ICE happened when run cargo doc:

thread '<unnamed>' panicked at 'assertion failed: bpos.to_u32() >= mbc.pos.to_u32() + mbc.bytes as u32', libsyntax/source_map.rs:842:17
note: Run with `RUST_BACKTRACE=1` for a backtrace.

error: internal compiler error: unexpected panic

note: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports

note: rustc 1.32.0-nightly (8b096314a 2018-11-02) running on x86_64-apple-darwin

error: Could not document `xxx`.

Caused by:
  process didn't exit successfully: `rustdoc --edition=2018 --crate-name interview_500 src/lib.rs --color always -o /path/target/doc -L dependency=/path/target/debug/deps` (exit code: 1)

Metadata

Metadata

Labels

A-UnicodeArea: UnicodeA-intra-doc-linksArea: Intra-doc links, the ability to link to items in docs by nameI-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.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions