Skip to content

indentation misaligned due to where in comment #151

Closed
@nikomatsakis

Description

@nikomatsakis

This example indents as shown:

/// - there must not exist an edge U->V in the graph where:
#[derive(Clone, PartialEq, Eq)]
    pub struct Region {
    entry: BasicBlockIndex,
    leaves: BTreeMap<BasicBlockIndex, usize>,
}

But I would expect:

/// - there must not exist an edge U->V in the graph where:
#[derive(Clone, PartialEq, Eq)]
pub struct Region { // <-- this should be flush with left margin!
    entry: BasicBlockIndex,
    leaves: BTreeMap<BasicBlockIndex, usize>,
}

Presumably the angle-bracket matching code is going a bit awry here.

cc @MicahChalmer

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