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

pretty printer adds an extra space in borrowed pointer return type #4161

Closed
thestinger opened this issue Dec 11, 2012 · 1 comment
Closed
Labels
A-pretty Area: Pretty printing (including `-Z unpretty`) E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Milestone

Comments

@thestinger
Copy link
Contributor

Simple test case:

struct Foo {
    i: int,
}

impl Foo {
    fn bar(&self) -> &self/int { &self.i }
}

fn main() { }

The pretty printer outputs this:

struct Foo {
    i: int,
}

impl Foo {
    fn bar(&self) -> &self /int { &self.i }
}

fn main() { }

Note the space between &self and /int, which is different than how it's usually printed out.

@ghost
Copy link

ghost commented Mar 20, 2013

This can be closed as a result of the new region syntax.

@sanxiyn sanxiyn closed this as completed Mar 21, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-pretty Area: Pretty printing (including `-Z unpretty`) E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Projects
None yet
Development

No branches or pull requests

2 participants