Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 3ba10e2

Browse files
committedNov 23, 2022
quick fixes
1 parent 8e40dde commit 3ba10e2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed
 

‎compiler/rustc_hir_typeck/src/fn_ctxt/_impl.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1011,7 +1011,6 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
10111011
hir_id: hir::HirId,
10121012
) -> (Ty<'tcx>, Res) {
10131013
let tcx = self.tcx;
1014-
assert_eq!(res.ns(), Some(rustc_hir::def::Namespace::ValueNS));
10151014

10161015
let path_segs = match res {
10171016
Res::Local(_) | Res::SelfCtor(_) => vec![],

‎compiler/rustc_traits/src/chalk/lowering.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,10 @@ impl<'tcx> LowerInto<'tcx, chalk_ir::GoalData<RustInterner<'tcx>>> for ty::Predi
191191
GenericArgKind::Const(..) => {
192192
chalk_ir::GoalData::All(chalk_ir::Goals::empty(interner))
193193
}
194-
GenericArgKind::Lifetime(lt) => bug!("unexpected well formed predicate: {:?}", lt),
194+
// Lifetimes are unconditionally well-formed.
195+
GenericArgKind::Lifetime(_) => {
196+
chalk_ir::GoalData::All(chalk_ir::Goals::empty(interner))
197+
}
195198
},
196199

197200
ty::PredicateKind::ObjectSafe(t) => chalk_ir::GoalData::DomainGoal(

0 commit comments

Comments
 (0)
Please sign in to comment.