Skip to content

Commit 97f5f0f

Browse files
committed
Fix error message for direct usage of sess.opts.crate_types
1 parent 0a619db commit 97f5f0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_session/src/options.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ top_level_options!(
130130
pub struct Options {
131131
/// The crate config requested for the session, which may be combined
132132
/// with additional crate configurations during the compile process.
133-
#[rustc_lint_opt_deny_field_access("use `Session::crate_types` instead of this field")]
133+
#[rustc_lint_opt_deny_field_access("use `TyCtxt::crate_types` instead of this field")]
134134
crate_types: Vec<CrateType> [TRACKED],
135135
optimize: OptLevel [TRACKED],
136136
/// Include the `debug_assertions` flag in dependency tracking, since it

0 commit comments

Comments
 (0)