rust/src/libsyntax
bors b4de424e41 Auto merge of #28034 - alexcrichton:new-lines, r=aturon
This commit is an implementation of [RFC 1212][rfc] which tweaks the behavior of
the `str::lines` and `BufRead::lines` iterators. Both iterators now account for
`\r\n` sequences in addition to `\n`, allowing for less surprising behavior
across platforms (especially in the `BufRead` case). Splitting *only* on the
`\n` character can still be achieved with `split('\n')` in both cases.

The `str::lines_any` function is also now deprecated as `str::lines` is a
drop-in replacement for it.

[rfc]: https://github.com/rust-lang/rfcs/blob/master/text/1212-line-endings.md

Closes #28032
2015-09-04 08:50:56 +00:00
..
diagnostics Introduce a "origin/cause" for new requirements (or bugfixes...) introduced by RFC 1214, 2015-08-12 17:58:22 -04:00
ext Use consistent terminology for byte string literals 2015-09-03 10:54:53 +03:00
parse Auto merge of #28034 - alexcrichton:new-lines, r=aturon 2015-09-04 08:50:56 +00:00
print Auto merge of #28170 - nagisa:loopctl-label-spans, r=alexcrichton 2015-09-04 05:15:22 +00:00
util syntax: replace sess.span_diagnostic.cm with sess.codemap(). 2015-05-14 01:47:56 +03:00
abi.rs Create "platform-intrinsic" ABI for SIMD/platform intrinsics. 2015-08-17 14:41:38 -07:00
ast.rs Auto merge of #28170 - nagisa:loopctl-label-spans, r=alexcrichton 2015-09-04 05:15:22 +00:00
ast_util.rs Add an intital HIR and lowering step 2015-09-03 10:02:36 +12:00
attr.rs feature gate cfg(target_feature). 2015-08-17 14:41:37 -07:00
codemap.rs Closures are not generated code. 2015-08-31 17:06:30 +12:00
config.rs feature gate cfg(target_feature). 2015-08-17 14:41:37 -07:00
diagnostic.rs Enumify CompilerExpansion in ExpnInfo 2015-08-27 05:16:05 +05:30
entry.rs Add an intital HIR and lowering step 2015-09-03 10:02:36 +12:00
feature_gate.rs Add an intital HIR and lowering step 2015-09-03 10:02:36 +12:00
fold.rs Use proper span for break and continue labels 2015-09-03 03:50:43 +03:00
lib.rs Move entry point identification logic to libsyntax 2015-08-24 20:27:42 -04: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 Move ExpnInfo to Name 2015-08-28 03:37:13 +05:30
str.rs syntax: Copy unstable str::char_at into libsyntax 2015-04-21 10:23:53 -07:00
test.rs Rollup merge of #28033 - Manishearth:compilerexpn, r=eddyb 2015-08-28 03:38:37 +05:30
visit.rs Rename FnKind variants and stop re-exporting them from the visit module. 2015-08-26 12:02:58 +02:00