Skip to content

Invalid help suggestion #56714

Closed
Closed
@bjorn3

Description

@bjorn3
error[E0609]: no field `opts` on type `*mut rustc::session::Session`
   --> src/lib.rs:143:54
    |
143 |             (sess as *const Session as *mut Session).opts.cli_forced_codegen_units = Some(1);
    |                                                      ^^^^
help: `sess as *const Session as *mut Session` is a native pointer; try dereferencing it
    |
143 |             (sess as *const Session as *mut Session).(*sess as *const Session as *mut Session).opts.cli_forced_codegen_units = Some(1);
    | 

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsC-bugCategory: This is a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions