Skip to content

Commit 47cb497

Browse files
committed
run_make_support: add rustfmt barriers to comments for use groups
1 parent 3d68afc commit 47cb497

File tree

1 file changed

+8
-0
lines changed
  • src/tools/run-make-support/src

1 file changed

+8
-0
lines changed

src/tools/run-make-support/src/lib.rs

+8
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
//! notably is built via cargo: this means that if your test wants some non-trivial utility, such
44
//! as `object` or `wasmparser`, they can be re-exported and be made available through this library.
55
6+
// Note that `#[rustfmt::skip]` barriers are added for comments intended for use groups to prevent
7+
// rustfmt from moving the comments.
8+
69
mod command;
710
mod macros;
811
mod util;
@@ -18,6 +21,8 @@ pub mod scoped_run;
1821
pub mod string;
1922
pub mod targets;
2023

24+
// Internally we call our fs-related support module as `fs`, but re-export its content as `rfs`
25+
// to tests to avoid colliding with commonly used `use std::fs;`.
2126
mod fs;
2227

2328
/// [`std::fs`] wrappers and assorted filesystem-related helpers. Public to tests as `rfs` to not be
@@ -27,16 +32,19 @@ pub mod rfs {
2732
}
2833

2934
// Re-exports of third-party library crates.
35+
#[rustfmt::skip]
3036
pub use bstr;
3137
pub use gimli;
3238
pub use object;
3339
pub use regex;
3440
pub use wasmparser;
3541

3642
// Re-exports of external dependencies.
43+
#[rustfmt::skip]
3744
pub use external_deps::{c_build, cc, clang, htmldocck, llvm, python, rustc, rustdoc};
3845

3946
// These rely on external dependencies.
47+
#[rustfmt::skip]
4048
pub use c_build::build_native_static_lib;
4149
pub use cc::{cc, extra_c_flags, extra_cxx_flags, Cc};
4250
pub use clang::{clang, Clang};

0 commit comments

Comments
 (0)