Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rustc_interface: Add a new query pre_configure #108221

Merged
merged 3 commits into from
Mar 23, 2023

Commits on Mar 23, 2023

  1. expand: Pass ast::Crate by reference to AST transforming passes

    Also some more attributes are passed by reference.
    petrochenkov committed Mar 23, 2023
    Configuration menu
    Copy the full SHA
    6cc33b7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f26da39 View commit details
    Browse the repository at this point in the history
  3. rustc_interface: Add a new query pre_configure

    It partially expands crate attributes before the main expansion pass (without modifying the crate), and the produced preliminary crate attribute list is used for querying a few attributes that are required very early.
    
    Crate-level cfg attributes are then expanded normally during the main expansion pass, like attributes on any other nodes.
    petrochenkov committed Mar 23, 2023
    Configuration menu
    Copy the full SHA
    aca1b1e View commit details
    Browse the repository at this point in the history