Skip to content

Commit 06c07f9

Browse files
authored
Rollup merge of #57342 - phansch:make_public, r=Centril
librustc_mir: Make qualify_min_const_fn module public Trying to write a `const_fn` lint for Clippy. @oli-obk suggested [here][link] to use the `is_min_const_fn` function from the `qualify_min_const_fn` module. However, the module is currently private and this commit makes it public. I lack any historical knowledge of the development of the `const_fn` feature, so I'm not sure if it was private on purpose or not. fwiw, all modules are already public except `qualify_min_const_fn`. r? @oli-obk [link]: rust-lang/rust-clippy#2440 (comment)
2 parents 284a419 + 79ea93c commit 06c07f9

File tree

1 file changed

+1
-1
lines changed
  • src/librustc_mir/transform

1 file changed

+1
-1
lines changed

src/librustc_mir/transform/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ pub mod elaborate_drops;
2626
pub mod add_call_guards;
2727
pub mod promote_consts;
2828
pub mod qualify_consts;
29-
mod qualify_min_const_fn;
29+
pub mod qualify_min_const_fn;
3030
pub mod remove_noop_landing_pads;
3131
pub mod dump_mir;
3232
pub mod deaggregator;

0 commit comments

Comments
 (0)