rust/src/libsyntax
bors f11502cda8 Auto merge of #26904 - bluss:no-repeat, r=alexcrichton
In a followup to PR #26849, improve one more location for I/O where
we can use `Vec::resize` to ensure better performance when zeroing
buffers.

Use the `vec![elt; n]` macro everywhere we can in the tree. It replaces
`repeat(elt).take(n).collect()` which is more verbose, requires type
hints, and right now produces worse code. `vec![]` is preferable for vector
initialization.

The `vec![]` replacement touches upon one I/O path too, Stdin::read
for windows, and that should be a small improvement.

r? @alexcrichton
2015-07-09 10:36:41 +00:00
..
diagnostics diagnostics: Resurrect the Compiler Error Index. 2015-06-20 16:57:40 +10:00
ext Use vec![elt; n] where possible 2015-07-09 11:05:32 +02:00
parse Make the unused_mut lint smarter with respect to locals. 2015-07-01 00:12:12 +03:00
print Auto merge of #26904 - bluss:no-repeat, r=alexcrichton 2015-07-09 10:36:41 +00:00
util syntax: replace sess.span_diagnostic.cm with sess.codemap(). 2015-05-14 01:47:56 +03:00
abi.rs Add netbsd amd64 support 2015-07-01 19:09:14 -07:00
ast.rs Move AST Repr impls to Debug impls in libsyntax. 2015-06-19 01:32:46 +03:00
ast_util.rs Conver reborrows to .iter() calls where appropriate 2015-06-11 13:56:07 +01:00
attr.rs Auto merge of #26747 - huonw:stability-issue, r=alexcrichton 2015-07-07 17:41:43 +00:00
codemap.rs Move AST Repr impls to Debug impls in libsyntax. 2015-06-19 01:32:46 +03:00
config.rs syntax: Remove uses of #[feature(slice_patterns)] 2015-04-21 10:08:26 -07:00
diagnostic.rs Added unit test for code indent of multi-line errors 2015-06-24 12:25:40 +02:00
feature_gate.rs Feature-gate #[prelude_import]. 2015-07-05 22:35:20 +03:00
fold.rs Removed many pointless calls to *iter() and iter_mut() 2015-06-10 21:14:03 +01:00
lib.rs collections: Split the collections feature 2015-06-17 09:06:59 -07:00
owned_slice.rs Switched to Box::new in many places. 2015-03-03 21:05:55 +01:00
ptr.rs syntax: remove #![feature(box_syntax, box_patterns)] 2015-04-21 10:07:48 -07:00
show_span.rs std: Stabilize FromStr and parse 2015-01-30 08:52:44 -08:00
std_inject.rs Feature-gate #[prelude_import]. 2015-07-05 22:35:20 +03:00
str.rs syntax: Copy unstable str::char_at into libsyntax 2015-04-21 10:23:53 -07:00
test.rs Removed many pointless calls to *iter() and iter_mut() 2015-06-10 21:14:03 +01:00
visit.rs Fix issue #23302, ICE on recursively defined enum variant discriminant. 2015-06-22 20:55:57 -06:00