Skip to content

Commit 4aaa3ea

Browse files
committed
Fix more stuff
1 parent e52e641 commit 4aaa3ea

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

compiler/rustc_hir_analysis/src/collect/predicates_of.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -321,12 +321,12 @@ fn gather_explicit_predicates_of(tcx: TyCtxt<'_>, def_id: LocalDefId) -> ty::Gen
321321
for attr in tcx.get_attrs(def_id, sym::allow_unstable_feature) {
322322
if let Some(list) = attr.meta_item_list() {
323323
for item in list.iter() {
324-
// TODO: deal with error later
325-
let feature_name = item.name().unwrap();
326-
predicates.insert((
327-
ty::ClauseKind::UnstableFeature(feature_name).upcast(tcx),
328-
tcx.def_span(def_id),
329-
));
324+
if let Some(feature_name) = item.name() {
325+
predicates.insert((
326+
ty::ClauseKind::UnstableFeature(feature_name).upcast(tcx),
327+
tcx.def_span(def_id),
328+
));
329+
}
330330
}
331331
}
332332
}

compiler/rustc_type_ir/src/elaborate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ impl<I: Interner, O: Elaboratable<I>> Elaborator<I, O> {
201201
// Nothing to elaborate
202202
}
203203
ty::ClauseKind::UnstableFeature(_) => {
204-
// TODO: come back later and add more stuff if needed.
204+
// Nothing to elaborate
205205
}
206206
}
207207
}

0 commit comments

Comments
 (0)