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

Add a method to control the --edition #67

Open
cuviper opened this issue May 8, 2024 · 0 comments
Open

Add a method to control the --edition #67

cuviper opened this issue May 8, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@cuviper
Copy link
Owner

cuviper commented May 8, 2024

If not specified, rustc defaults to the original 2015 edition. For many things it doesn't make much difference, but there could be new features that people want to probe that only work in newer editions. We could have something like:

impl AutoCfg {
    pub fn set_edition(&mut self, edition: Into<String>) { ... }
}

We may need to be careful about built-in probes though, to make sure they don't care about edition differences if possible.

@cuviper cuviper added enhancement New feature or request good first issue Good for newcomers labels May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant