diff options
| author | Mark Rousskov <mark.simulacrum@gmail.com> | 2019-11-24 16:59:56 -0500 |
|---|---|---|
| committer | Mark Rousskov <mark.simulacrum@gmail.com> | 2019-11-26 14:57:07 -0500 |
| commit | 2299586ffc3b635c4bb90c15cd0ad92e1ea3128d (patch) | |
| tree | d3044ec6f5fa0b83c6547899e9db42c7bb25c6ed /src/librustc_errors | |
| parent | 797fd92628842c1f5face9fb93b0fe4f1f9d297f (diff) | |
| download | rust-2299586ffc3b635c4bb90c15cd0ad92e1ea3128d.tar.gz rust-2299586ffc3b635c4bb90c15cd0ad92e1ea3128d.zip | |
Move ErrorReported to rustc_errors
Diffstat (limited to 'src/librustc_errors')
| -rw-r--r-- | src/librustc_errors/lib.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/librustc_errors/lib.rs b/src/librustc_errors/lib.rs index 8a1799faaf8..ae587684818 100644 --- a/src/librustc_errors/lib.rs +++ b/src/librustc_errors/lib.rs @@ -993,3 +993,10 @@ macro_rules! pluralize { if $x != 1 { "s" } else { "" } }; } + +// 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, RustcEncodable, RustcDecodable, Hash, PartialEq, Eq)] +pub struct ErrorReported; + +rustc_data_structures::impl_stable_hash_via_hash!(ErrorReported); |
