diff options
| author | Ralf Jung <post@ralfj.de> | 2023-02-15 10:44:40 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2023-02-15 10:44:40 +0100 |
| commit | 1a2908bfaa4e8283b08aa3c29ff41515f247e322 (patch) | |
| tree | ba0769c8b2e29eb20b5f935fba4567c73e4ec0b9 /compiler/rustc_errors/src/lib.rs | |
| parent | f407e96b263e5ce71cde4bf93ad1865119ea45ad (diff) | |
| parent | 90f642bb3d74ee0ba8e0faf967748f36ff78d572 (diff) | |
| download | rust-1a2908bfaa4e8283b08aa3c29ff41515f247e322.tar.gz rust-1a2908bfaa4e8283b08aa3c29ff41515f247e322.zip | |
Merge from rustc
Diffstat (limited to 'compiler/rustc_errors/src/lib.rs')
| -rw-r--r-- | compiler/rustc_errors/src/lib.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/compiler/rustc_errors/src/lib.rs b/compiler/rustc_errors/src/lib.rs index ec04e865d53..83b733d4c06 100644 --- a/compiler/rustc_errors/src/lib.rs +++ b/compiler/rustc_errors/src/lib.rs @@ -573,6 +573,7 @@ impl Handler { None, flags.macro_backtrace, flags.track_diagnostics, + TerminalUrl::No, )); Self::with_emitter_and_flags(emitter, flags) } @@ -1838,6 +1839,13 @@ pub fn add_elided_lifetime_in_path_suggestion( ); } +#[derive(Clone, Copy, PartialEq, Hash, Debug)] +pub enum TerminalUrl { + No, + Yes, + Auto, +} + /// Useful type to use with `Result<>` indicate that an error has already /// been reported to the user, so no need to continue checking. #[derive(Clone, Copy, Debug, Encodable, Decodable, Hash, PartialEq, Eq, PartialOrd, Ord)] |
