about summary refs log tree commit diff
path: root/src/libsyntax/test_snippet.rs
AgeCommit message (Collapse)AuthorLines
2019-08-02libsyntax: Unconfigure tests during normal buildVadim Petrochenkov-1164/+0
2019-05-21Move `edition` outside the hygiene lock and avoid accessing itJohn Kåre Alsaker-2/+2
2019-04-22Remove double trailing newlinesvarkor-1/+0
2019-04-02Update more unit test to new APIOliver Scherer-0/+1
2019-03-27Account for fully overlapping multiline annotationsEsteban Küber-0/+60
When two multiline span labels point at the same span, we special case the output to avoid weird behavior: ``` foo( _____^ |_____| || bar, || ); || ^ ||______| |______foo baz ``` instead showing ``` foo( _____^ | bar, | ); | ^ | | |______foo baz ```
2019-03-07Fix with_emitter callersEsteban Küber-1/+1
2019-02-13Cleanup importsTaiki Endo-1/+2
2019-02-13Rename rustc_errors dependency in rust 2018 cratesTaiki Endo-2/+2
2019-02-07libsyntax => 2018Taiki Endo-4/+5
2018-12-25Remove licensesMark Rousskov-10/+0
2018-10-29Rename other occs of (Code/File)Map to Source(Map/File) #51574David Lavati-4/+4
2018-08-19mv (mod) codemap source_mapDonato Sciarra-1/+1
2018-08-19mv filemap source_fileDonato Sciarra-1/+1
2018-08-19mv CodeMap SourceMapDonato Sciarra-2/+2
2018-06-27Remove the now redundant CodeMap::new_filemap_with_lines() method.Michael Woerister-1/+1
2018-03-14Remove syntax and syntax_pos thread localsJohn Kåre Alsaker-25/+28
2018-03-02Replace Rc with Lrc for shared dataJohn Kåre Alsaker-2/+2
2018-01-29Toggle span highlighting on `-Zteach`Esteban Küber-0/+1
2017-12-14Use PathBuf instead of String where applicableOliver Schneider-1/+2
2017-10-20Add short message-formatGuillaume Gomez-1/+2
2017-08-30Make fields of `Span` privateVadim Petrochenkov-5/+1
2017-06-15Position span label correctly when it isn't lastEsteban Küber-0/+43
2017-04-26Implement a file-path remapping feature in support of debuginfo and ↵Michael Woerister-3/+3
reproducible builds.
2017-04-20Reduce visual clutter of multiline start when possibleEsteban Küber-47/+46
When a span starts on a line with nothing but whitespace to the left, and there are no other annotations in that line, simplify the visual representation of the span. Go from: ```rust error[E0072]: recursive type `A` has infinite size --> file2.rs:1:1 | 1 | struct A { | _^ starting here... 2 | | a: A, 3 | | } | |_^ ...ending here: recursive type has infinite size | ``` To: ```rust error[E0072]: recursive type `A` has infinite size --> file2.rs:1:1 | 1 | / struct A { 2 | | a: A, 3 | | } | |_^ recursive type has infinite size ``` Remove `starting here...`/`...ending here` labels from all multiline diagnostics.
2017-04-09Always show end line of multiline annotationsEsteban Küber-0/+134
```rust error[E0046]: not all trait items implemented, missing: `Item` --> $DIR/issue-23729.rs:20:9 | 20 | impl Iterator for Recurrence { | _________^ starting here... 21 | | //~^ ERROR E0046 22 | | //~| NOTE missing `Item` in implementation 23 | | //~| NOTE `Item` from trait: `type Item;` ... | 36 | | } 37 | | } | |_________^ ...ending here: missing `Item` in implementation | = note: `Item` from trait: `type Item;` ``` instead of ```rust error[E0046]: not all trait items implemented, missing: `Item` --> $DIR/issue-23729.rs:20:9 | 20 | impl Iterator for Recurrence { | ^ missing `Item` in implementation | = note: `Item` from trait: `type Item;` ```
2017-03-29Merge `ExpnId` and `SyntaxContext`.Jeffrey Seyfried-1/+1
2017-01-20Fix multiple labels when some don't have messageEsteban Küber-0/+388
The diagnostic emitter now accounts for labels with no text message, presenting the underline on its own, without drawing the line for the non existing message below it. Go from ``` error: foo --> test.rs:3:6 | 3 | a { b { c } d } | ----^^^^^^^---- | | | | | `b` is a good letter | ``` to ``` error: foo --> test.rs:3:6 | 3 | a { b { c } d } | ----^^^^^^^---- | | | `b` is a good letter ``` and from ``` error: foo --> test.rs:3:6 | 3 | a { b { c } d } | ^^^^-------^^^^ | | | | | | `a` is a good letter ``` to ``` error: foo --> test.rs:3:6 | 3 | a { b { c } d } | ^^^^-------^^^^ `a` is a good letter ```
2016-11-23review commentsEsteban Küber-0/+100
2016-11-22Show multiline spans in full if short enoughEsteban Küber-0/+446
When dealing with multiline spans that span few lines, show the complete span instead of restricting to the first character of the first line. For example, instead of: ``` % ./rustc foo.rs error[E0277]: the trait bound `{integer}: std::ops::Add<()>` is not satisfied --> foo.rs:13:9 | 13 | foo(1 + bar(x, | ^ trait `{integer}: std::ops::Add<()>` not satisfied | ``` show ``` % ./rustc foo.rs error[E0277]: the trait bound `{integer}: std::ops::Add<()>` is not satisfied --> foo.rs:13:9 | 13 | foo(1 + bar(x, | ________^ starting here... 14 | | y), | |_____________^ ...ending here: trait `{integer}: std::ops::Add<()>` not satisfied | ```