Skip to content

Commit f08b036

Browse files
committed
Introduce term-size dependency and consider term width when trimming
1 parent 266b878 commit f08b036

17 files changed

+277
-121
lines changed

Cargo.lock

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3219,6 +3219,7 @@ dependencies = [
32193219
"rustc_data_structures",
32203220
"serialize",
32213221
"syntax_pos",
3222+
"term_size",
32223223
"termcolor",
32233224
"unicode-width",
32243225
]
@@ -4090,6 +4091,17 @@ dependencies = [
40904091
"winapi 0.3.6",
40914092
]
40924093

4094+
[[package]]
4095+
name = "term_size"
4096+
version = "0.3.1"
4097+
source = "registry+https://github.com/rust-lang/crates.io-index"
4098+
checksum = "9e5b9a66db815dcfd2da92db471106457082577c3c278d4138ab3e3b4e189327"
4099+
dependencies = [
4100+
"kernel32-sys",
4101+
"libc",
4102+
"winapi 0.2.8",
4103+
]
4104+
40934105
[[package]]
40944106
name = "termcolor"
40954107
version = "1.0.4"

src/librustc_errors/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ unicode-width = "0.1.4"
1818
atty = "0.2"
1919
termcolor = "1.0"
2020
annotate-snippets = "0.6.1"
21+
term_size = "0.3.1"

0 commit comments

Comments
 (0)