Skip to content

Commit 7e6b011

Browse files
committed
Fix tidy issues
1 parent bb63f30 commit 7e6b011

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/libsyntax/feature_gate.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ declare_features! (
245245
(active, allocator_internals, "1.20.0", None, None),
246246

247247
// Allows using the `format_args_nl` macro.
248-
(active, format_args_nl, "1.29.0", None, None),
248+
(active, format_args_nl, "1.29.0", Some(0), None),
249249

250250
// no-tracking-issue-end
251251

src/tools/tidy/src/libcoretest.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ pub fn check(path: &Path, bad: &mut bool) {
1313
&mut |entry, contents| {
1414
let subpath = entry.path();
1515
if let Some("rs") = subpath.extension().and_then(|e| e.to_str()) {
16-
if contents.contains("#[test]") {
16+
let contents = contents.trim();
17+
if !contents.starts_with("//") && contents.contains("#[test]") {
1718
tidy_error!(
1819
bad,
1920
"{} contains #[test]; libcore tests must be placed inside \

0 commit comments

Comments
 (0)