mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 13:51:31 +00:00
Remove unused
This commit is contained in:
parent
8040f4a5e3
commit
d992736e79
14 changed files with 20 additions and 69 deletions
|
@ -12,7 +12,7 @@ use crate::{
|
|||
Solution, TraitRefExt, Ty, TyKind, WhereClause,
|
||||
};
|
||||
|
||||
use self::chalk::{from_chalk, Interner, ToChalk};
|
||||
use self::chalk::Interner;
|
||||
|
||||
pub(crate) mod chalk;
|
||||
|
||||
|
@ -101,8 +101,7 @@ pub(crate) fn trait_solve_query(
|
|||
// We currently don't deal with universes (I think / hope they're not yet
|
||||
// relevant for our use cases?)
|
||||
let u_canonical = chalk_ir::UCanonical { canonical, universes: 1 };
|
||||
let solution = solve(db, krate, &u_canonical);
|
||||
solution.map(|solution| solution_from_chalk(db, solution))
|
||||
solve(db, krate, &u_canonical)
|
||||
}
|
||||
|
||||
fn solve(
|
||||
|
@ -170,13 +169,6 @@ fn is_chalk_print() -> bool {
|
|||
std::env::var("CHALK_PRINT").is_ok()
|
||||
}
|
||||
|
||||
fn solution_from_chalk(
|
||||
db: &dyn HirDatabase,
|
||||
solution: chalk_solve::Solution<Interner>,
|
||||
) -> Solution {
|
||||
solution
|
||||
}
|
||||
|
||||
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
|
||||
pub enum FnTrait {
|
||||
FnOnce,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue