Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: rust-lang/annotate-snippets-rs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 3d97fb9
Choose a base ref
...
head repository: rust-lang/annotate-snippets-rs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: d6c36a6
Choose a head ref
  • 5 commits
  • 12 files changed
  • 4 contributors

Commits on Jun 9, 2019

  1. Enforce rust 2018 idioms

    Ruben Schmidmeister committed Jun 9, 2019
    Configuration menu
    Copy the full SHA
    48c08f0 View commit details
    Browse the repository at this point in the history

Commits on Jun 11, 2019

  1. Merge pull request #4 from bash/rust-2018-idioms

    Enforce Rust 2018 idioms
    oli-obk authored Jun 11, 2019
    Configuration menu
    Copy the full SHA
    9b92724 View commit details
    Browse the repository at this point in the history

Commits on Jun 12, 2019

  1. Update README.md

    zbraniecki authored Jun 12, 2019
    Configuration menu
    Copy the full SHA
    6543d2a View commit details
    Browse the repository at this point in the history

Commits on Jun 13, 2019

  1. Add option to anonymize line numbers

    With the current diagnostics emitter of Rust, the `-Z ui-testing` flag
    allows to 'anonymize' line numbers in the UI test output.
    
    This means that a line such as:
    
         2 |     concat!(b'f');
    
    is turned into:
    
        LL |     concat!(b'f');
    
    This is done because it makes the diff of UI test output changes much
    less noisy.
    
    To support this with `annotate-snippet`, we add a second parameter to
    `DisplayListFormatter` that, when true, replaces the line numbers in the
    left column with the text `LL`. The replacement text is always `LL` and
    it does not affect the initial location line number.
    
    In the new `annotate-snippet` emitter in rustc, we can then use this
    parameter depending on whether the `-Z ui-testing` flag is set or not.
    phansch committed Jun 13, 2019
    Configuration menu
    Copy the full SHA
    e353781 View commit details
    Browse the repository at this point in the history
  2. Replace magic constant '2'

    phansch committed Jun 13, 2019
    Configuration menu
    Copy the full SHA
    d6c36a6 View commit details
    Browse the repository at this point in the history
Loading