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

Some macros are not well formatted #49649

Closed
rleungx opened this issue Apr 4, 2018 · 2 comments
Closed

Some macros are not well formatted #49649

rleungx opened this issue Apr 4, 2018 · 2 comments

Comments

@rleungx
Copy link
Contributor

rleungx commented Apr 4, 2018

There are some macros which are not well formatted in std, such as writeln.

macro_rules! writeln {
    ( $ dst : expr ) => { ... };
    (
$ dst : expr , $ fmt : expr ) => { ... };
    (
$ dst : expr , $ fmt : expr , $ ( $ arg : tt ) * ) => { ... };
}

Another example is unreachable.

macro_rules! unreachable {
    (  ) => { ... };
    (
$ msg : expr ) => { ... };
    (
$ fmt : expr , $ ( $ arg : tt ) * ) => { ... };
}
@sinkuu
Copy link
Contributor

sinkuu commented Apr 4, 2018

If they are ones reexported from libcore, this is #26560.

@pietroalbini
Copy link
Member

Duplicate of #26560
Thanks for reporting this!

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