Skip to content

rustdoc fails on block comments for methods #32845

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

Closed
zetok opened this issue Apr 8, 2016 · 2 comments
Closed

rustdoc fails on block comments for methods #32845

zetok opened this issue Apr 8, 2016 · 2 comments

Comments

@zetok
Copy link

zetok commented Apr 8, 2016

Fails with both 1.7 and nightly 2016-04-07

$ rustdoc --version --verbose
rustdoc 1.7.0 (a5d1e7a59 2016-02-29)
binary: rustdoc
commit-hash: a5d1e7a59a2a3413c377b003075349f854304b5e
commit-date: 2016-02-29
host: x86_64-unknown-linux-gnu
release: 1.7.0

Reproducible: Always

reproducible with

#!/bin/bash

cargo new broken
cd broken
echo '

pub struct Somestruct;

impl Somestruct {
    /** Documentation

        `and` the failing part of it.
    */
    pub fn somefn() {
        println!("works");
    }
}
' >> src/lib.rs

cargo doc

results in:

<stdin>:1:4: 1:5 error: unknown start of token: `
<stdin>:1    `and` the failing part of it.
             ^
thread '<unnamed>' panicked at 'Box<Any>', ../src/libsyntax/parse/lexer/mod.rs:1437
stack backtrace:
   1:     0x7f9028126d50 - <unknown>
Could not document `broken`.

To learn more, run the command again with --verbose.
@mitaa
Copy link
Contributor

mitaa commented Apr 9, 2016

This is a dup of #12834

@alexcrichton
Copy link
Member

Indeed!

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

3 participants