diff options
| author | Michael Goulet <michael@errs.io> | 2023-10-26 17:30:53 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2023-10-26 17:58:02 +0000 |
| commit | 1836c1fbbdf0d6902da9a2d2473dbc72f371eb2e (patch) | |
| tree | 65993066515084f35f49bf7c5349687a1f46f0cb /compiler/rustc_errors/src | |
| parent | cf226e93dcb0e21e2daa7c26aca0c5b46ff1b646 (diff) | |
| download | rust-1836c1fbbdf0d6902da9a2d2473dbc72f371eb2e.tar.gz rust-1836c1fbbdf0d6902da9a2d2473dbc72f371eb2e.zip | |
Stash and cancel cycle errors for auto trait leakage in opaques
Diffstat (limited to 'compiler/rustc_errors/src')
| -rw-r--r-- | compiler/rustc_errors/src/lib.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_errors/src/lib.rs b/compiler/rustc_errors/src/lib.rs index da74ee6391a..5e3fdf170bc 100644 --- a/compiler/rustc_errors/src/lib.rs +++ b/compiler/rustc_errors/src/lib.rs @@ -508,6 +508,8 @@ pub enum StashKey { TraitMissingMethod, OpaqueHiddenTypeMismatch, MaybeForgetReturn, + /// Query cycle detected, stashing in favor of a better error. + Cycle, } fn default_track_diagnostic(d: &mut Diagnostic, f: &mut dyn FnMut(&mut Diagnostic)) { |
