Skip to content

Commit

Permalink
Replace TODOs with FIXMEs to allow CI to pass for now
Browse files Browse the repository at this point in the history
  • Loading branch information
camelid committed Jan 7, 2025
1 parent bd6caad commit 0036c2c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions compiler/rustc_hir_analysis/src/hir_ty_lowering/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2311,7 +2311,7 @@ impl<'tcx> dyn HirTyLowerer<'tcx> + '_ {
assoc_ident,
span,
),
_ => panic!("handle errors here"), // TODO: do this
_ => panic!("handle errors here"), // FIXME: do this
};
let bound = match bound_result {
Ok(b) => b,
Expand All @@ -2322,7 +2322,7 @@ impl<'tcx> dyn HirTyLowerer<'tcx> + '_ {
let assoc_const = self
.probe_assoc_item(assoc_ident, ty::AssocKind::Const, hir_ref_id, span, trait_did)
.expect("failed to find associated const");
// TODO: don't use no_bound_vars probably
// FIXME: don't use no_bound_vars probably
let trait_ref_args = bound.no_bound_vars().unwrap().args;
self.lower_assoc_const(span, assoc_const.def_id, assoc_segment, trait_ref_args)
}
Expand Down
1 change: 0 additions & 1 deletion tests/ui/const-generics/mgca/assoc-const.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,3 @@ fn mk_array<T: Tr>(_x: T) -> [(); T::SIZE] {
}

fn main() {}

0 comments on commit 0036c2c

Please sign in to comment.