iter ct.2.2-doctidy: refresh stale doc-comments on UnknownCtorInPattern and mono_xmod_ctor_pattern

This commit is contained in:
2026-05-11 09:16:20 +02:00
parent 0044467425
commit edb694fdce
2 changed files with 15 additions and 7 deletions
+5 -2
View File
@@ -345,8 +345,11 @@ pub enum CheckError {
#[error("type `{ty}` has no constructor `{ctor}`")]
UnknownCtor { ty: String, ctor: String },
/// A pattern referenced a ctor not in [`Env::ctor_index`]. Code:
/// `unknown-ctor-in-pattern`.
/// A pattern referenced a ctor that does not exist in the
/// scrutinee's resolved [`TypeDef`]. The Pattern::Ctor lookup
/// is type-driven (post-ct.2): it walks `td.ctors` for the
/// `expected` Type::Con's TypeDef and reports this code when
/// no ctor of that name is present. Code: `unknown-ctor-in-pattern`.
#[error("unknown constructor `{0}` in pattern")]
UnknownCtorInPattern(String),