Validate use of parameters in naked functions
* Reject use of parameters inside naked function body. * Reject use of patterns inside function parameters, to emphasize role of parameters a signature declaration (mirroring existing behaviour for function declarations) and avoid generating code introducing specified bindings.
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
|
||||
#![feature(const_fn)]
|
||||
#![feature(const_panic)]
|
||||
#![feature(crate_visibility_modifier)]
|
||||
#![feature(in_band_lifetimes)]
|
||||
#![feature(nll)]
|
||||
#![feature(or_patterns)]
|
||||
@@ -32,6 +33,7 @@ pub mod layout_test;
|
||||
mod lib_features;
|
||||
mod liveness;
|
||||
pub mod loops;
|
||||
mod naked_functions;
|
||||
mod reachable;
|
||||
mod region;
|
||||
pub mod stability;
|
||||
@@ -46,6 +48,7 @@ pub fn provide(providers: &mut Providers) {
|
||||
lang_items::provide(providers);
|
||||
lib_features::provide(providers);
|
||||
loops::provide(providers);
|
||||
naked_functions::provide(providers);
|
||||
liveness::provide(providers);
|
||||
intrinsicck::provide(providers);
|
||||
reachable::provide(providers);
|
||||
|
||||
Reference in New Issue
Block a user