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

make ParamLoweringMode accessible #16036

Merged
merged 1 commit into from Dec 6, 2023

Conversation

JoJoDeveloping
Copy link
Contributor

In hir-ty, the TyLoweringContext has functions pub fn with_impl_trait_mode and pub fn with_type_param_mode, which can be used to fine-tune certain lowering properties.
Each of these takes one enum (either pub enum ImplTraitLoweringMode, or pub enum ParamLoweringMode), which encodes the possible configuration options.

To then make this usable for other crates, TyLoweringContext and ImplTraitLoweringMode are exported. Unfortuntely, ParamLoweringMode is not. This means that while the method can be called, there are no useful values to call it with.

Presumably this is an oversight. It would be great if this was made actually public.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 6, 2023
@lnicola
Copy link
Member

lnicola commented Dec 6, 2023

Thanks!

@bors r+

@bors
Copy link
Collaborator

bors commented Dec 6, 2023

📌 Commit 374affe has been approved by lnicola

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented Dec 6, 2023

⌛ Testing commit 374affe with merge 9e8d793...

@bors
Copy link
Collaborator

bors commented Dec 6, 2023

☀️ Test successful - checks-actions
Approved by: lnicola
Pushing 9e8d793 to master...

@bors bors merged commit 9e8d793 into rust-lang:master Dec 6, 2023
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants