diff options
| author | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2024-11-09 21:22:25 +0000 |
|---|---|---|
| committer | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2024-11-10 10:37:53 +0000 |
| commit | e8b10297b5228b7f4645bba45242416f0d86a708 (patch) | |
| tree | 60f09452d564fd6720898996d0ad92c63b2a42db /compiler | |
| parent | 0a619dbc5d824da503e3ada6d4f36319b9ba2ce9 (diff) | |
| download | rust-e8b10297b5228b7f4645bba45242416f0d86a708.tar.gz rust-e8b10297b5228b7f4645bba45242416f0d86a708.zip | |
Fix error message for direct usage of sess.opts.crate_types
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/rustc_session/src/options.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_session/src/options.rs b/compiler/rustc_session/src/options.rs index 087ba0522eb..f485e8cace5 100644 --- a/compiler/rustc_session/src/options.rs +++ b/compiler/rustc_session/src/options.rs @@ -130,7 +130,7 @@ top_level_options!( pub struct Options { /// The crate config requested for the session, which may be combined /// with additional crate configurations during the compile process. - #[rustc_lint_opt_deny_field_access("use `Session::crate_types` instead of this field")] + #[rustc_lint_opt_deny_field_access("use `TyCtxt::crate_types` instead of this field")] crate_types: Vec<CrateType> [TRACKED], optimize: OptLevel [TRACKED], /// Include the `debug_assertions` flag in dependency tracking, since it |
