diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-01-30 01:46:43 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-30 01:46:43 +0100 |
| commit | 4af33a9c2608383fea0bac87fc0205603833bf6f (patch) | |
| tree | 97a04501dceb8afba1fef5c444a6e204a374ae25 /src/librustc_errors | |
| parent | f837c730caaf5d7f1d9105e623a64f978dacea70 (diff) | |
| parent | b0b11d31a2cd4ff00973c17ff987c345301b2ebd (diff) | |
| download | rust-4af33a9c2608383fea0bac87fc0205603833bf6f.tar.gz rust-4af33a9c2608383fea0bac87fc0205603833bf6f.zip | |
Rollup merge of #68626 - Zoxc:termize, r=estebank
Use termize instead of term_size `termize` is a fork of `term_size` which uses `winapi` 0.3 instead of 0.2. This is a step towards removing the `winapi` 0.2 dependency. r? @Mark-Simulacrum
Diffstat (limited to 'src/librustc_errors')
| -rw-r--r-- | src/librustc_errors/Cargo.toml | 2 | ||||
| -rw-r--r-- | src/librustc_errors/emitter.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_errors/Cargo.toml b/src/librustc_errors/Cargo.toml index 01ea80659d6..b8340b1a1df 100644 --- a/src/librustc_errors/Cargo.toml +++ b/src/librustc_errors/Cargo.toml @@ -18,7 +18,7 @@ unicode-width = "0.1.4" atty = "0.2" termcolor = "1.0" annotate-snippets = "0.6.1" -term_size = "0.3.1" +termize = "0.1.1" [target.'cfg(windows)'.dependencies] winapi = { version = "0.3", features = ["handleapi", "synchapi", "winbase"] } diff --git a/src/librustc_errors/emitter.rs b/src/librustc_errors/emitter.rs index 7ef623807d0..1fcb36a2a30 100644 --- a/src/librustc_errors/emitter.rs +++ b/src/librustc_errors/emitter.rs @@ -1367,7 +1367,7 @@ impl EmitterWriter { } else if self.ui_testing { 140 } else { - term_size::dimensions() + termize::dimensions() .map(|(w, _)| w.saturating_sub(code_offset)) .unwrap_or(std::usize::MAX) }; |
