lang: Remove deprecated account (#907)

This commit is contained in:
Sandra 2021-10-21 03:28:36 +01:00 committed by GitHub
parent 5608436d68
commit 2a4fa8c94b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 7 deletions

View File

@ -172,13 +172,6 @@ pub fn parse_token(stream: ParseStream) -> ParseResult<ConstraintToken> {
.join(stream.span())
.unwrap_or_else(|| ident.span());
match kw.as_str() {
// Deprecated since 0.11
"belongs_to" => {
return Err(ParseError::new(
ident.span(),
"belongs_to is deprecated, please use has_one",
))
}
"has_one" => ConstraintToken::HasOne(Context::new(
span,
ConstraintHasOne {