about summary refs log tree commit diff
path: root/compiler/rustc_errors/src/markdown
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume.gomez@huawei.com>2024-03-09 18:04:39 +0100
committerGuillaume Gomez <guillaume.gomez@huawei.com>2024-03-09 18:04:39 +0100
commit2b5b43eeb90fb10e0fa28e74157bf7c21f9a33ca (patch)
tree521778a300c67f86def2b55b72a672c8d6cbd890 /compiler/rustc_errors/src/markdown
parent379908ef4e61a4d813ecda3e67851d475ef2540e (diff)
parentb054da815501bafb24a08284151d32862f7a3a13 (diff)
downloadrust-2b5b43eeb90fb10e0fa28e74157bf7c21f9a33ca.tar.gz
rust-2b5b43eeb90fb10e0fa28e74157bf7c21f9a33ca.zip
Merge remote-tracking branch 'upstream/master' into HEAD
Diffstat (limited to 'compiler/rustc_errors/src/markdown')
-rw-r--r--compiler/rustc_errors/src/markdown/term.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_errors/src/markdown/term.rs b/compiler/rustc_errors/src/markdown/term.rs
index 88c3c8b9ff2..06c1333d93d 100644
--- a/compiler/rustc_errors/src/markdown/term.rs
+++ b/compiler/rustc_errors/src/markdown/term.rs
@@ -9,9 +9,9 @@ const DEFAULT_COLUMN_WIDTH: usize = 140;
 
 thread_local! {
     /// Track the position of viewable characters in our buffer
-    static CURSOR: Cell<usize> = Cell::new(0);
+    static CURSOR: Cell<usize> = const { Cell::new(0) };
     /// Width of the terminal
-    static WIDTH: Cell<usize> = Cell::new(DEFAULT_COLUMN_WIDTH);
+    static WIDTH: Cell<usize> = const { Cell::new(DEFAULT_COLUMN_WIDTH) };
 }
 
 /// Print to terminal output to a buffer