summary refs log tree commit diff
path: root/src/libsyntax/util/parser_testing.rs
AgeCommit message (Collapse)AuthorLines
2019-02-10rustc: doc commentsAlexander Regueiro-1/+1
2019-02-07fix testEsteban Küber-2/+5
2019-02-07libsyntax => 2018Taiki Endo-7/+8
2019-01-24Remove quote_*! macros and associated APIsMark Simulacrum-1/+1
2018-12-25Remove licensesMark Rousskov-10/+0
2018-10-28Provide specific label for patern parsing errorEsteban Küber-1/+1
2018-08-19mv codemap() source_map()Donato Sciarra-1/+1
2018-08-19mv (mod) codemap source_mapDonato Sciarra-1/+1
2018-08-19mv filemap source_fileDonato Sciarra-3/+3
2018-07-14Remove some tests using AST comparisons, fix other testsVadim Petrochenkov-8/+0
2017-12-14Use PathBuf instead of String where applicableOliver Schneider-2/+4
2017-06-26Update and fix a few testsAlex Crichton-1/+1
2017-04-26Implement a file-path remapping feature in support of debuginfo and ↵Michael Woerister-7/+8
reproducible builds.
2017-03-03Fix fallout in unit tests.Jeffrey Seyfried-4/+4
2016-11-21Fix fallout in `rustdoc` and tests.Jeffrey Seyfried-5/+4
2016-10-29Move `CrateConfig` from `Crate` to `ParseSess`.Jeffrey Seyfried-4/+1
2016-06-21Refactored tokentrees into their own files in preparation for tokenstreams. ↵cgswords-1/+2
Modified tests to point to the new file now.
2016-06-16Add an abs_path member to FileMap, use it when writing debug info.Ted Mielczarek-1/+1
When items are inlined from extern crates, the filename in the debug info is taken from the FileMap that's serialized in the rlib metadata. Currently this is just FileMap.name, which is whatever path is passed to rustc. Since libcore and libstd are built by invoking rustc with relative paths, they wind up with relative paths in the rlib, and when linked into a binary the debug info uses relative paths for the names, but since the compilation directory for the final binary, tools trying to read source filenames will wind up with bad paths. We noticed this in Firefox with source filenames from libcore/libstd having bad paths. This change stores an absolute path in FileMap.abs_path, and uses that if available for writing debug info. This is not going to magically make debuggers able to find the source, but it will at least provide sensible paths.
2016-03-07Auto merge of #29734 - Ryman:whitespace_consistency, r=Aatchbors-49/+59
libsyntax: be more accepting of whitespace in lexer Fixes #29590. Perhaps this may need more thorough testing? r? @Aatch
2016-02-11Remove some unnecessary indirection from AST structuresVadim Petrochenkov-1/+1
2016-01-16libsyntax: accept only whitespace with the PATTERN_WHITE_SPACE propertyKevin Butler-20/+19
This aligns with unicode recommendations and should be stable for all future unicode releases. See http://unicode.org/reports/tr31/#R3. This renames `libsyntax::lexer::is_whitespace` to `is_pattern_whitespace` so potentially breaks users of libsyntax.
2016-01-14libsyntax: make matches_codepattern unicode awareKevin Butler-45/+57
2016-01-14libsyntax: use char::is_whitespace instead of custom implementationsKevin Butler-2/+1
Fixes #29590.
2015-12-30use structured errorsNick Cameron-8/+12
2015-11-10Rename _nopanic methods to remove the suffix.Eli Friedman-4/+4
Just `sed s/_nopanic//g`. Hopefully makes libsyntax a bit more readable.
2015-10-27Update libsyntax tests.Eli Friedman-13/+11
2015-05-14syntax: replace sess.span_diagnostic.cm with sess.codemap().Eduard Burtescu-3/+2
2015-05-14syntax: refactor (Span)Handler and ParseSess constructors to be methods.Eduard Burtescu-4/+3
2015-05-09address fallout in libsyntaxtest.Felix S. Klock II-1/+5
2015-04-24Change name of unit test sub-module to "tests".Johannes Oertel-1/+1
Changes the style guidelines regarding unit tests to recommend using a sub-module named "tests" instead of "test" for unit tests as "test" might clash with imports of libtest.
2015-04-21syntax: Copy unstable str::char_at into libsyntaxErick Tryzelaar-6/+7
2015-04-05Work towards a non-panicing parser (libsyntax)Phil Dawes-1/+1
- Functions in parser.rs return PResult<> rather than panicing - Other functions in libsyntax call panic! explicitly for now if they rely on panicing behaviour. - 'panictry!' macro added as scaffolding while converting panicing functions. (This does the same as 'unwrap()' but is easier to grep for and turn into try!()) - Leaves panicing wrappers for the following functions so that the quote_* macros behave the same: - parse_expr, parse_item, parse_pat, parse_arm, parse_ty, parse_stmt
2015-03-28cleanup: Remove unused braces in use statementsRicho Healey-2/+2
2015-03-13syntax: use lookahead to distinguish inner and outer attributes, instead of ↵Eduard Burtescu-2/+2
passing the latter around.
2015-01-21rollup merge of #20179: eddyb/blind-itemsAlex Crichton-7/+0
Conflicts: src/librustc/diagnostics.rs src/librustdoc/clean/mod.rs src/librustdoc/html/format.rs src/libsyntax/parse/parser.rs
2015-01-21syntax: fix fallout of merging ast::ViewItem into ast::Item.Eduard Burtescu-7/+0
2015-01-17libsyntax: uint types to usizePaul Collier-2/+2
2014-12-13libsyntax: use unboxed closuresJorge Aparicio-1/+3
2014-11-17libsyntax: Add tests for `parse_view_item`Murarth-0/+7
2014-09-14syntax: tests: fix fallout from using ptr::P.Eduard Burtescu-3/+1
2014-09-14syntax: fix fallout from using ptr::P.Eduard Burtescu-4/+5
2014-09-03Fix spelling errors and capitalization.Joseph Crail-2/+2
2014-07-09syntax: doc comments all the thingsCorey Richardson-19/+19
2014-06-14rustc: Obsolete the `@` syntax entirelyAlex Crichton-4/+6
This removes all remnants of `@` pointers from rustc. Additionally, this removes the `GC` structure from the prelude as it seems odd exporting an experimental type in the prelude by default. Closes #14193 [breaking-change]
2014-05-27std: Rename strbuf operations to stringRicho Healey-2/+2
[breaking-change]
2014-05-24core: rename strbuf::StrBuf to string::StringRicho Healey-8/+8
[breaking-change]
2014-05-08libsyntax: Remove uses of `~str` from libsyntax, and fix falloutPatrick Walton-10/+14
2014-04-18Replace all ~"" with "".to_owned()Richo Healey-2/+2
2014-03-30Removed deprecated functions `map` and `flat_map` for vectors and slices.Marvin Löbel-1/+1
2014-03-20Removing imports of std::vec_ng::VecAlex Crichton-2/+0
It's now in the prelude.