Skip to content

Commit 79ea93c

Browse files
committedJan 4, 2019
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`. [link]: rust-lang/rust-clippy#2440 (comment)
1 parent ae167c9 commit 79ea93c

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)
Please sign in to comment.