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

rustc_trait: Code snippet ignore problem #80369

Closed
pierwill opened this issue Dec 25, 2020 · 1 comment
Closed

rustc_trait: Code snippet ignore problem #80369

pierwill opened this issue Dec 25, 2020 · 1 comment
Labels
A-contributor-roadblock Area: Makes things more difficult for new contributors to rust itself T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@pierwill
Copy link
Member

pierwill commented Dec 25, 2020

When running cargo doc in compiler/rustc_passes/, I got the following:

warning: could not parse code block as Rust code
  --> compiler/rustc_trait_selection/src/opaque_types.rs:45:9
   |
45 |       /// ```ignore (incomplete snippet)
   |  _________^
46 | |     /// type Foo = impl Baz;
47 | |     /// fn bar() -> Foo {
48 | |     /// //          ^^^ This is the span we are looking for!
49 | |     /// ```
   | |___________^
   |
   = note: error from rustc: this file contains an unclosed delimiter

The code is here:

/// ```ignore (incomplete snippet)
/// type Foo = impl Baz;
/// fn bar() -> Foo {
/// // ^^^ This is the span we are looking for!
/// ```

@jyn514 jyn514 added A-contributor-roadblock Area: Makes things more difficult for new contributors to rust itself T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Dec 26, 2020
@jyn514
Copy link
Member

jyn514 commented Dec 26, 2020

@pierwill this particular one should be fixed by #79816.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-contributor-roadblock Area: Makes things more difficult for new contributors to rust itself T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

2 participants