mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-27 10:17:15 +00:00
cargo fmt
This commit is contained in:
parent
87f837cec7
commit
7535bb4661
571 changed files with 2210 additions and 2458 deletions
|
|
@ -10,19 +10,19 @@ use hir_def::{
|
|||
resolver::HasResolver,
|
||||
};
|
||||
use hir_expand::name::Name;
|
||||
use intern::{sym, Symbol};
|
||||
use intern::{Symbol, sym};
|
||||
use stdx::never;
|
||||
|
||||
use crate::{
|
||||
DropGlue,
|
||||
display::DisplayTarget,
|
||||
error_lifetime,
|
||||
mir::eval::{
|
||||
pad16, Address, AdtId, Arc, BuiltinType, Evaluator, FunctionId, HasModule, HirDisplay,
|
||||
Address, AdtId, Arc, BuiltinType, Evaluator, FunctionId, HasModule, HirDisplay,
|
||||
InternedClosure, Interner, Interval, IntervalAndTy, IntervalOrOwned, ItemContainerId,
|
||||
LangItem, Layout, Locals, Lookup, MirEvalError, MirSpan, Mutability, Result, Substitution,
|
||||
Ty, TyBuilder, TyExt,
|
||||
Ty, TyBuilder, TyExt, pad16,
|
||||
},
|
||||
DropGlue,
|
||||
};
|
||||
|
||||
mod simd;
|
||||
|
|
@ -1357,7 +1357,7 @@ impl Evaluator<'_> {
|
|||
_ => {
|
||||
return Err(MirEvalError::InternalError(
|
||||
"three_way_compare expects an integral type".into(),
|
||||
))
|
||||
));
|
||||
}
|
||||
};
|
||||
let rhs = rhs.get(self)?;
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
use std::cmp::Ordering;
|
||||
|
||||
use crate::consteval::try_const_usize;
|
||||
use crate::TyKind;
|
||||
use crate::consteval::try_const_usize;
|
||||
|
||||
use super::*;
|
||||
|
||||
|
|
@ -164,7 +164,7 @@ impl Evaluator<'_> {
|
|||
None => {
|
||||
return Err(MirEvalError::InternalError(
|
||||
"simd type with unevaluatable len param".into(),
|
||||
))
|
||||
));
|
||||
}
|
||||
};
|
||||
let (left_len, _) = self.detect_simd_ty(&left.ty)?;
|
||||
|
|
@ -179,7 +179,7 @@ impl Evaluator<'_> {
|
|||
None => {
|
||||
return Err(MirEvalError::InternalError(
|
||||
"out of bound access in simd shuffle".into(),
|
||||
))
|
||||
));
|
||||
}
|
||||
};
|
||||
result.extend(val);
|
||||
|
|
|
|||
|
|
@ -4,9 +4,9 @@ use syntax::{TextRange, TextSize};
|
|||
use test_fixture::WithFixture;
|
||||
|
||||
use crate::display::DisplayTarget;
|
||||
use crate::{db::HirDatabase, mir::MirLowerError, test_db::TestDB, Interner, Substitution};
|
||||
use crate::{Interner, Substitution, db::HirDatabase, mir::MirLowerError, test_db::TestDB};
|
||||
|
||||
use super::{interpret_mir, MirEvalError};
|
||||
use super::{MirEvalError, interpret_mir};
|
||||
|
||||
fn eval_main(db: &TestDB, file_id: EditionedFileId) -> Result<(String, String), MirEvalError> {
|
||||
let module_id = db.module_for_file(file_id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue