Skip to content

Commit

Permalink
Fix error message for direct usage of sess.opts.crate_types
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn3 committed Nov 9, 2024
1 parent 0a619db commit 97f5f0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_session/src/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 97f5f0f

Please sign in to comment.