Introduce the (WIP) THIR unsafety checker
This commit is contained in:
parent
d956122f7e
commit
29780f43e2
6 changed files with 343 additions and 1 deletions
|
@ -19,6 +19,7 @@ extern crate tracing;
|
|||
extern crate rustc_middle;
|
||||
|
||||
mod build;
|
||||
mod check_unsafety;
|
||||
mod lints;
|
||||
pub mod thir;
|
||||
|
||||
|
@ -28,4 +29,6 @@ pub fn provide(providers: &mut Providers) {
|
|||
providers.check_match = thir::pattern::check_match;
|
||||
providers.lit_to_const = thir::constant::lit_to_const;
|
||||
providers.mir_built = build::mir_built;
|
||||
providers.thir_check_unsafety = check_unsafety::thir_check_unsafety;
|
||||
providers.thir_check_unsafety_for_const_arg = check_unsafety::thir_check_unsafety_for_const_arg;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue