mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 15:15:24 +00:00
Enforce builtin binop expectations even without lang items
This commit is contained in:
parent
461435adab
commit
c53064fb58
2 changed files with 16 additions and 102 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue