mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 13:51:31 +00:00
Create TraitEnvironment through a query
This commit is contained in:
parent
17eeb2a6d2
commit
c82d1823a1
6 changed files with 77 additions and 51 deletions
|
@ -63,6 +63,15 @@ impl TraitEnvironment {
|
|||
}
|
||||
}
|
||||
|
||||
impl Default for TraitEnvironment {
|
||||
fn default() -> Self {
|
||||
TraitEnvironment {
|
||||
traits_from_clauses: Vec::new(),
|
||||
env: chalk_ir::Environment::new(&Interner),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// Something (usually a goal), along with an environment.
|
||||
#[derive(Clone, Debug, PartialEq, Eq, Hash)]
|
||||
pub struct InEnvironment<T> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue