parent
57ee5cf5a9
commit
27b280e1b5
3 changed files with 35 additions and 1 deletions
|
@ -199,7 +199,7 @@ impl<'tcx> Visitor<'tcx> for CheckConstVisitor<'tcx> {
|
|||
..
|
||||
}) = item.kind
|
||||
{
|
||||
let def_id = trait_ref.trait_def_id().unwrap();
|
||||
let Some(def_id) = trait_ref.trait_def_id() else { return; };
|
||||
let source_map = tcx.sess.source_map();
|
||||
if !tcx.has_attr(def_id, sym::const_trait) {
|
||||
tcx.sess
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue