Function dylint_linting::init_config

source ·
pub fn init_config(sess: &Session)
Expand description

A wrapper around try_init_config. Calls rustc_session::early_error if try_init_config returns an error.

Note: init_config or try_init_config must be called before config_or_default, config, or config_toml is called. However, the register_lints function generated by impl_late_lint, etc. includes a call to init_config.