Skip to content

Commit 9e8d793

Browse files
committed
Auto merge of rust-lang#16036 - JoJoDeveloping:expose-param-lowering-mode, r=lnicola
make ParamLoweringMode accessible 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.
2 parents 77e362c + 374affe commit 9e8d793

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/hir-ty/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ pub use infer::{
7373
};
7474
pub use interner::Interner;
7575
pub use lower::{
76-
associated_type_shorthand_candidates, CallableDefId, ImplTraitLoweringMode, TyDefId,
77-
TyLoweringContext, ValueTyDefId,
76+
associated_type_shorthand_candidates, CallableDefId, ImplTraitLoweringMode, ParamLoweringMode,
77+
TyDefId, TyLoweringContext, ValueTyDefId,
7878
};
7979
pub use mapping::{
8080
from_assoc_type_id, from_chalk_trait_id, from_foreign_def_id, from_placeholder_idx,

0 commit comments

Comments
 (0)