Skip to content

Rollup of 8 pull requests #37341

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

Closed
wants to merge 20 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
da9e9e8
Remove `CrateReader`, use `CrateLoader` instead.
jseyfried Oct 19, 2016
feefe77
Remove `{in,de}flate_bytes_zlib`.
nnethercote Oct 20, 2016
94771a1
Use fast decompression in `deflate_bytes`.
nnethercote Oct 20, 2016
b94d2fb
Rename `csearch.rs` -> `cstore_impl.rs`.
jseyfried Oct 19, 2016
63f9314
Move `Library` into `creader.rs`.
jseyfried Oct 20, 2016
80fe1d2
Rename `loader.rs` -> `locator.rs`.
jseyfried Oct 20, 2016
209fe0d
Fix line stepping in debugger.
vadimcn Oct 19, 2016
a935481
Avoid an unnecessary clone in `macro_parser::parse`.
nnethercote Oct 20, 2016
e382267
Avoid an unnecessary clone in `generic_extensions`.
nnethercote Oct 20, 2016
b817cf8
Replace the `String` in `ParseResult::Failure` with `Token`.
nnethercote Oct 21, 2016
974817d
when pop skol, also remove from proj cache
nikomatsakis Oct 19, 2016
567b11f
only remove keys that mention skolemized regions
nikomatsakis Oct 19, 2016
483bc86
add regression test for #37154
nikomatsakis Oct 19, 2016
7e603d4
Implement `From<Cow<str>> for String` and `From<Cow<[T]>> for Vec<T>`.
SimonSapin Oct 21, 2016
4a413d8
Rollup merge of #37294 - nikomatsakis:issue-37154, r=nikomatsakis
Manishearth Oct 22, 2016
7b1282c
Rollup merge of #37298 - nnethercote:faster-deflate, r=alexcrichton
Manishearth Oct 22, 2016
034ae77
Rollup merge of #37301 - jseyfried:improve_metadata_modules, r=eddyb
Manishearth Oct 22, 2016
14e7c6d
Rollup merge of #37310 - vadimcn:drop-spans, r=michaelwoerister
Manishearth Oct 22, 2016
2e4d80d
Rollup merge of #37318 - nnethercote:html5ever-more, r=nrc,eddyb
Manishearth Oct 22, 2016
e941e01
Rollup merge of #37326 - SimonSapin:from-cow, r=alexcrichton
Manishearth Oct 22, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Avoid an unnecessary clone in macro_parser::parse.
This avoids ~800,000 allocations in html5ever.
  • Loading branch information
nnethercote committed Oct 21, 2016
commit a935481ae9052d42c39af1d71c8e8e64750c9e02
2 changes: 1 addition & 1 deletion src/libsyntax/ext/tt/macro_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -425,8 +425,8 @@ pub fn parse(sess: &ParseSess,
cur_eis.push(ei);
}
TokenTree::Token(_, ref t) => {
let mut ei_t = ei.clone();
if token_name_eq(t,&tok) {
let mut ei_t = ei.clone();
ei_t.idx += 1;
next_eis.push(ei_t);
}
Expand Down