about summary refs log tree commit diff
path: root/src/libsyntax/errors/snippet/test.rs
AgeCommit message (Collapse)AuthorLines
2016-06-23Move errors from libsyntax to its own crateJonathan Turner-597/+0
2016-06-16Add an abs_path member to FileMap, use it when writing debug info.Ted Mielczarek-14/+14
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-05-24Back to single line between errors. Add header space to secondary filesJonathan Turner-0/+14
2016-05-12Better handling of tab in errorSeo Sanghyeon-0/+24
2016-05-03degrade gracefully with empty spansNiko Matsakis-0/+38
2016-05-02update unit testsNiko Matsakis-11/+11
2016-05-02fix snippet tests MORE!Niko Matsakis-1/+1
2016-05-02fix tests betterNiko Matsakis-3/+3
2016-05-02only emit `^` at the start of a multi-line errorNiko Matsakis-8/+3
as a result, simplify elision code
2016-05-02Nit: address various style nitsNiko Matsakis-1/+3
2016-05-02revamp MultiSpan and introduce new snippet codeNiko Matsakis-0/+524
MultiSpan model is now: - set of primary spans - set of span+label pairs Primary spans render with `^^^`, secondary spans with `---`. Labels are placed next to the `^^^` or `---` marker as appropriate.