Validate rustc_args_required_const
This commit is contained in:
parent
9e34b72964
commit
609786dbd8
4 changed files with 176 additions and 10 deletions
|
@ -137,7 +137,7 @@ fn args_required_const(tcx: TyCtxt<'_>, def_id: DefId) -> Option<Vec<usize>> {
|
|||
LitKind::Int(a, _) => {
|
||||
ret.push(a as usize);
|
||||
}
|
||||
_ => return None,
|
||||
_ => bug!("invalid arg index"),
|
||||
}
|
||||
}
|
||||
Some(ret)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue