Skip to content

Commit edebed9

Browse files
committed
compiletest: Improve no_prefer_dynamic docs
This adds some extra docs for the `no-prefer-dynamic` header. And also a `s/must_compile_successfully/compile_pass`. `must_compile_successfully` has been renamed to `compile_pass` at some point in the past and this comment was still referring to the old name.
1 parent f694222 commit edebed9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/tools/compiletest/src/header.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,10 @@ pub struct TestProps {
303303
// For UI tests, allows compiler to generate arbitrary output to stderr
304304
pub dont_check_compiler_stderr: bool,
305305
// Don't force a --crate-type=dylib flag on the command line
306+
//
307+
// Set this for example if you have an auxiliary test file that contains
308+
// a proc-macro and needs `#![crate_type = "proc-macro"]`. This ensures
309+
// that the aux file is compiled as a `proc-macro` and not as a `dylib`.
306310
pub no_prefer_dynamic: bool,
307311
// Run --pretty expanded when running pretty printing tests
308312
pub pretty_expanded: bool,
@@ -490,7 +494,7 @@ impl TestProps {
490494
}
491495

492496
if !self.compile_pass {
493-
// run-pass implies must_compile_successfully
497+
// run-pass implies compile_pass
494498
self.compile_pass = config.parse_compile_pass(ln) || self.run_pass;
495499
}
496500

0 commit comments

Comments
 (0)