Enforce builtin binop expectations even without lang items

This commit is contained in:
Ryo Yoshida 2023-01-17 19:51:48 +09:00
parent 461435adab
commit c53064fb58
No known key found for this signature in database
GPG key ID: E25698A930586171
2 changed files with 16 additions and 102 deletions

View file

@ -1041,10 +1041,6 @@ impl Expectation {
}
}
fn from_option(ty: Option<Ty>) -> Self {
ty.map_or(Expectation::None, Expectation::HasType)
}
/// The following explanation is copied straight from rustc:
/// Provides an expectation for an rvalue expression given an *optional*
/// hint, which is not required for type safety (the resulting type might