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

Move the Rust Scope code to its own file. #21825

Merged
merged 2 commits into from
Jan 14, 2025

Conversation

benjyw
Copy link
Contributor

@benjyw benjyw commented Jan 12, 2025

As I will shortly be adding a "ScopeInfo" type
struct on the Rust side, and piling it on to id.rs
doesn't seem right.

This is just a move of top-level symbols and
their test. No logic changes.

@benjyw benjyw added the category:internal CI, fixes for not-yet-released features, etc. label Jan 12, 2025
@benjyw benjyw requested review from huonw and tdyas January 12, 2025 22:28
use super::{DictEdit, OptionsSource};
use crate::fromfile::FromfileExpander;
use crate::parse::Parseable;
use crate::scope::Scope;
Copy link
Contributor Author

@benjyw benjyw Jan 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess we don't have a preferred idiom for use super vs use crate? I prefer the latter as it makes refactoring easier.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not really. "It depends." 😃

@benjyw benjyw merged commit b9587ac into pantsbuild:main Jan 14, 2025
24 checks passed
@benjyw benjyw deleted the move_scope_to_new_file branch January 14, 2025 00:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:internal CI, fixes for not-yet-released features, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants