Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(tests): revert test-breaking changes of e5c7ae4 #339

Merged
merged 2 commits into from
Feb 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,4 @@ jobs:
with:
toolchain: nightly
- name: Run minimal version build
run: cargo build -Z minimal-versions --features fancy,no-format-args-capture
run: cargo build -Z direct-minimal-versions --features fancy,no-format-args-capture
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ futures = { version = "0.3", default-features = false }
indenter = "0.3.3"
rustversion = "1.0"
trybuild = { version = "1.0.89", features = ["diff"] }
syn = { version = "2.0", features = ["full"] }
syn = { version = "2.0.48", features = ["full"] }
regex = "1.10"
lazy_static = "1.4"

Expand Down
2 changes: 1 addition & 1 deletion miette-derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ proc-macro = true

[dependencies]
proc-macro2 = "1.0.78"
quote = "1.0"
quote = "1.0.35"
syn = "2.0.48"
16 changes: 8 additions & 8 deletions tests/graphical.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1864,11 +1864,11 @@ fn syntax_highlighter_on_real_file() {
let expected = format!(
r#" × This is an error
╭─[{filename}:{l2}:{CO}]
{l1} │
{l1} │
{l2} │ let (filename, line) = (file!(), line!() as usize);
· ─────────────┬─────────────
· ╰── this is a label
{l3} │
{l3} │
╰────
"#,
l1 = line - 1,
Expand Down Expand Up @@ -1911,13 +1911,13 @@ fn triple_adjacent_highlight() -> Result<(), MietteError> {
1 │ source
· ───┬──
· ╰── this bit here
2 │
3 │
2 │
3 │
4 │ text
· ──┬─
· ╰── also this bit
5 │
6 │
5 │
6 │
7 │ here
· ──┬─
· ╰── finally we got
Expand Down Expand Up @@ -1957,10 +1957,10 @@ fn non_adjacent_highlight() -> Result<(), MietteError> {
1 │ source
· ───┬──
· ╰── this bit here
2 │
2 │
╰────
╭─[bad_file.rs:5:3]
4 │
4 │
5 │ text here
· ──┬─
· ╰── also this bit
Expand Down