mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
Make TraitEnvironment's constructor private
This commit is contained in:
parent
bc9c952b6d
commit
143203b713
8 changed files with 46 additions and 42 deletions
|
@ -40,7 +40,6 @@ pub use monomorphization::{
|
|||
use rustc_hash::FxHashMap;
|
||||
use smallvec::{smallvec, SmallVec};
|
||||
use stdx::{impl_from, never};
|
||||
use triomphe::Arc;
|
||||
|
||||
use super::consteval::{intern_const_scalar, try_const_usize};
|
||||
|
||||
|
@ -147,7 +146,7 @@ impl<V, T> ProjectionElem<V, T> {
|
|||
base = normalize(
|
||||
db,
|
||||
// FIXME: we should get this from caller
|
||||
Arc::new(TraitEnvironment::empty(krate)),
|
||||
TraitEnvironment::empty(krate),
|
||||
base,
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue