Skip to content

Commit 23f5a7e

Browse files
committed
Fix formatting
1 parent 5b366c4 commit 23f5a7e

File tree

5 files changed

+14
-13
lines changed

5 files changed

+14
-13
lines changed

chalk-integration/src/lowering.rs

+6-3
Original file line numberDiff line numberDiff line change
@@ -1212,12 +1212,15 @@ impl LowerTy for Ty {
12121212
.intern(interner)),
12131213

12141214
Ty::Raw { mutability, ty } => Ok(chalk_ir::TyData::Apply(chalk_ir::ApplicationTy {
1215-
name: chalk_ir::TypeName::Raw(ast_mutability_to_chalk_mutability(mutability.clone())),
1215+
name: chalk_ir::TypeName::Raw(ast_mutability_to_chalk_mutability(
1216+
mutability.clone(),
1217+
)),
12161218
substitution: chalk_ir::Substitution::from_fallible(
1217-
interner,
1219+
interner,
12181220
std::iter::once(Ok(ty.lower(env)?)),
12191221
)?,
1220-
}).intern(interner)),
1222+
})
1223+
.intern(interner)),
12211224
}
12221225
}
12231226
}

chalk-ir/src/visit/boring_impls.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
//! The more interesting impls of `Visit` remain in the `visit` module.
66
77
use crate::{
8-
AssocTypeId, ClausePriority, DebruijnIndex, FloatTy, Goals, ImplId, IntTy, Interner, Mutability,
9-
OpaqueTyId, Parameter, ParameterKind, PlaceholderIndex, ProgramClause, ProgramClauseData,
10-
ProgramClauses, QuantifiedWhereClauses, QuantifierKind, Scalar, StructId, Substitution,
11-
SuperVisit, TraitId, UintTy, UniverseIndex, Visit, VisitResult, Visitor,
8+
AssocTypeId, ClausePriority, DebruijnIndex, FloatTy, Goals, ImplId, IntTy, Interner,
9+
Mutability, OpaqueTyId, Parameter, ParameterKind, PlaceholderIndex, ProgramClause,
10+
ProgramClauseData, ProgramClauses, QuantifiedWhereClauses, QuantifierKind, Scalar, StructId,
11+
Substitution, SuperVisit, TraitId, UintTy, UniverseIndex, Visit, VisitResult, Visitor,
1212
};
1313
use chalk_engine::{context::Context, ExClause, FlounderedSubgoal, Literal};
1414
use std::{marker::PhantomData, sync::Arc};

chalk-parse/src/ast.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ pub enum Ty {
196196
Raw {
197197
mutability: Mutability,
198198
ty: Box<Ty>,
199-
}
199+
},
200200
}
201201

202202
#[derive(Copy, Clone, PartialEq, Eq, Debug)]

chalk-solve/src/clauses.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -410,9 +410,7 @@ fn match_type_name<I: Interner>(
410410
TypeName::Tuple(_) => {
411411
builder.push_fact(WellFormed::Ty(application.clone().intern(interner)))
412412
}
413-
TypeName::Raw(_) => {
414-
builder.push_fact(WellFormed::Ty(application.clone().intern(interner)))
415-
}
413+
TypeName::Raw(_) => builder.push_fact(WellFormed::Ty(application.clone().intern(interner))),
416414
}
417415
}
418416

tests/lowering/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -498,8 +498,8 @@ fn raw_pointers() {
498498
"parse error: UnrecognizedToken { token: (8, Token(7, \"*\"), 9), expected: [\"r#\\\"([A-Za-z]|_)([A-Za-z0-9]|_)*\\\"#\"] }"
499499
}
500500
}
501-
502-
lowering_error! {
501+
502+
lowering_error! {
503503
program {
504504
trait Foo { }
505505
impl Foo for *i32 { }

0 commit comments

Comments
 (0)