diff options
| author | Matthew Woodcraft <matthew@woodcraft.me.uk> | 2024-05-11 00:06:30 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-11 00:06:30 +0100 |
| commit | 417afb2145f9137365170cd147d37fff7cd1ffdb (patch) | |
| tree | 9d17ee2469694b78641fe17fb895492131525123 /src/doc/rustc-dev-guide/examples/rustc-driver-example.rs | |
| parent | 95fef283f54ba905329fbd09c5cabe2dba034252 (diff) | |
| download | rust-417afb2145f9137365170cd147d37fff7cd1ffdb.tar.gz rust-417afb2145f9137365170cd147d37fff7cd1ffdb.zip | |
Update the rustc_interface examples for current rustc (#1974)
Diffstat (limited to 'src/doc/rustc-dev-guide/examples/rustc-driver-example.rs')
| -rw-r--r-- | src/doc/rustc-dev-guide/examples/rustc-driver-example.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/rustc-dev-guide/examples/rustc-driver-example.rs b/src/doc/rustc-dev-guide/examples/rustc-driver-example.rs index 3e22586d7b2..a86a256d487 100644 --- a/src/doc/rustc-dev-guide/examples/rustc-driver-example.rs +++ b/src/doc/rustc-dev-guide/examples/rustc-driver-example.rs @@ -47,7 +47,7 @@ fn main() { locale_resources: rustc_driver::DEFAULT_LOCALE_RESOURCES, lint_caps: FxHashMap::default(), // FxHashMap<lint::LintId, lint::Level> // This is a callback from the driver that is called when [`ParseSess`] is created. - parse_sess_created: None, //Option<Box<dyn FnOnce(&mut ParseSess) + Send>> + psess_created: None, //Option<Box<dyn FnOnce(&mut ParseSess) + Send>> // This is a callback from the driver that is called when we're registering lints; // it is called during plugin registration when we have the LintStore in a non-shared state. // @@ -60,7 +60,7 @@ fn main() { // The second parameter is local providers and the third parameter is external providers. override_queries: None, // Option<fn(&Session, &mut ty::query::Providers<'_>, &mut ty::query::Providers<'_>)> // Registry of diagnostics codes. - registry: registry::Registry::new(rustc_error_codes::DIAGNOSTICS), + registry: registry::Registry::new(rustc_errors::codes::DIAGNOSTICS), make_codegen_backend: None, expanded_args: Vec::new(), ice_file: None, |
