mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 06:44:35 +00:00
Remove useless attributes in merged doctest generated code
This commit is contained in:
parent
54a50bd86f
commit
7bde314de8
@ -75,7 +75,6 @@ impl DocTestRunner {
|
||||
#![allow(internal_features)]
|
||||
#![feature(test)]
|
||||
#![feature(rustc_attrs)]
|
||||
#![feature(coverage_attribute)]
|
||||
"
|
||||
.to_string();
|
||||
|
||||
@ -135,7 +134,6 @@ mod __doctest_mod {{
|
||||
}}
|
||||
|
||||
#[rustc_main]
|
||||
#[coverage(off)]
|
||||
fn main() -> std::process::ExitCode {{
|
||||
const TESTS: [test::TestDescAndFn; {nb_tests}] = [{ids}];
|
||||
let bin_marker = std::ffi::OsStr::new(__doctest_mod::BIN_OPTION);
|
||||
@ -235,11 +233,9 @@ fn main() {returns_result} {{
|
||||
writeln!(
|
||||
output,
|
||||
"
|
||||
#[rustc_test_marker = {test_name:?}]
|
||||
pub const TEST: test::TestDescAndFn = test::TestDescAndFn::new_doctest(
|
||||
{test_name:?}, {ignore}, {file:?}, {line}, {no_run}, {should_panic},
|
||||
test::StaticTestFn(
|
||||
#[coverage(off)]
|
||||
|| {{{runner}}},
|
||||
));
|
||||
}}",
|
||||
|
Loading…
Reference in New Issue
Block a user