diff --git a/src/libsyntax/errors/emitter.rs b/src/libsyntax/errors/emitter.rs index eaa973db2b8..cea6dbb75d9 100644 --- a/src/libsyntax/errors/emitter.rs +++ b/src/libsyntax/errors/emitter.rs @@ -556,8 +556,8 @@ mod test { println!("r#\"\n{}\"#", str); assert_eq!(str, &r#" --> dummy.txt:11:1 -11 |> e-lä-vän - |> ^ +11 |> e-lä-vän + |> ^ "#[1..]); } diff --git a/src/libsyntax/errors/snippet/test.rs b/src/libsyntax/errors/snippet/test.rs index d995d828bc7..286a3e3d407 100644 --- a/src/libsyntax/errors/snippet/test.rs +++ b/src/libsyntax/errors/snippet/test.rs @@ -405,8 +405,8 @@ impl SomeTrait for () { println!("r#\"\n{}\"", text); assert_eq!(text, &r#" >>>>>> foo.rs -3 |> fn foo(x: u32) { - |> - +3 |> fn foo(x: u32) { + |> - "#[1..]); } @@ -516,6 +516,6 @@ fn span_overlap_label3() { 3 |> let closure = || { |> - foo 4 |> inner - |> ---- bar + |> ----- bar "#[1..]); }