Files
rust/src/libsyntax
bors 9f79d2f86a Auto merge of #50997 - michaelwoerister:pre-analyze-filemaps, r=Mark-Simulacrum
Make FileMap::{lines, multibyte_chars, non_narrow_chars} non-mutable.

This PR removes most of the interior mutability from `FileMap`, which should be beneficial, especially in a multithreaded setting. This is achieved by initializing the state in question when the filemap is constructed instead of during lexing. Hopefully this doesn't degrade performance.

cc @wesleywiser
2018-06-28 11:20:41 +00:00
..
2018-05-26 15:20:23 +03:00
2018-06-21 22:36:36 -07:00
2018-06-20 12:23:23 +01:00
2018-06-19 17:33:14 -07:00
2016-11-21 09:00:56 +00:00
2018-06-22 12:12:53 -07:00
2018-05-13 17:16:02 +10:00
2018-05-18 22:20:33 +10:00
2018-06-21 22:36:36 -07:00

The syntax crate contains those things concerned purely with syntax that is, the AST ("abstract syntax tree"), parser, pretty-printer, lexer, macro expander, and utilities for traversing ASTs.

For more information about how these things work in rustc, see the rustc guide: