]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #51073 - dtolnay:empty, r=alexcrichton
authorkennytm <kennytm@gmail.com>
Sat, 26 May 2018 11:32:33 +0000 (19:32 +0800)
committerGitHub <noreply@github.com>
Sat, 26 May 2018 11:32:33 +0000 (19:32 +0800)
commit84b2e14b9d00d6d50e87d113bdf819e9eb18b3c8
tree4377b9ae88f3b5715d060478cf5721842b011607
parent5089ebc5682ed71ee01b309c6681cb1ca127c62e
parenta49bc9ce5996b9cb0c49142f458a6612ef3c252c
Rollup merge of #51073 - dtolnay:empty, r=alexcrichton

Rename TokenStream::empty to TokenStream::new

There is no precedent for the `empty` name -- we do not have `Vec::empty` or `HashMap::empty` etc.

I would propose landing this but reflecting it in a non-breaking release of proc-macro2 that provides both `new` and a deprecated `empty` constructor.

Tracking issue: #38356

r? @alexcrichton