Skip to content

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

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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
RalfJung added a commit to RalfJung/rust that referenced this issue Feb 2, 2025
# for free to join this conversation on GitHub. Already have an account? # 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