You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
).
It is not accessible by the CompilerController.
The CompilerController can only access the read-only version of CompileState.session.plugin_attributes.
One suggestion is to manage the Registry structure inside the CompilerState structure.
I'll prepare a pull request soon to fix this issue.
Allow CompilerControllers to access rustc_plugin::registry::Registry
fixes#36064
I chose to put ructc_plugin::registry::Registry structure
into CompilerState structure, instead of Session structure.
This will preserve dependencies among librustc, libructc_driver, and libructc_plugin.
@jseyfried@sanxiyn
Currently, Registry structure is allocated and used in the rustc_driver (
rust/src/librustc_driver/driver.rs
Line 590 in 1bf5fa3
It is not accessible by the CompilerController.
The CompilerController can only access the read-only version of CompileState.session.plugin_attributes.
One suggestion is to manage the Registry structure inside the CompilerState structure.
I'll prepare a pull request soon to fix this issue.
@jseyfried @sanxiyn
The text was updated successfully, but these errors were encountered: