Skip to content

Commit 24f4ece

Browse files
committed
Introduce -Zterminal-urls to use OSC8 for error codes
Terminals supporting the OSC8 Hyperlink Extension can support inline anchors where the text is user defineable but clicking on it opens a browser to a specified URLs, just like `<a href="URL">` does in HTML. https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda
1 parent c6b822d commit 24f4ece

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/parse/session.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use std::sync::atomic::{AtomicBool, Ordering};
44
use rustc_data_structures::sync::{Lrc, Send};
55
use rustc_errors::emitter::{Emitter, EmitterWriter};
66
use rustc_errors::translation::Translate;
7-
use rustc_errors::{ColorConfig, Diagnostic, Handler, Level as DiagnosticLevel};
7+
use rustc_errors::{ColorConfig, Diagnostic, Handler, Level as DiagnosticLevel, TerminalUrl};
88
use rustc_session::parse::ParseSess as RawParseSess;
99
use rustc_span::{
1010
source_map::{FilePathMapping, SourceMap},
@@ -135,6 +135,7 @@ fn default_handler(
135135
None,
136136
false,
137137
false,
138+
TerminalUrl::No,
138139
))
139140
};
140141
Handler::with_emitter(

0 commit comments

Comments
 (0)