Use constant eval to do strict validity checks
This commit is contained in:
parent
c2f428d2f3
commit
27412d1e3e
13 changed files with 161 additions and 94 deletions
|
@ -2053,4 +2053,12 @@ rustc_queries! {
|
|||
desc { |tcx| "looking up generator diagnostic data of `{}`", tcx.def_path_str(key) }
|
||||
separate_provide_extern
|
||||
}
|
||||
|
||||
query permits_uninit_init(key: TyAndLayout<'tcx>) -> bool {
|
||||
desc { "checking to see if {:?} permits being left uninit", key.ty }
|
||||
}
|
||||
|
||||
query permits_zero_init(key: TyAndLayout<'tcx>) -> bool {
|
||||
desc { "checking to see if {:?} permits being left zeroed", key.ty }
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue