Skip to content

Commit 99ef61f

Browse files
committed
Rewrite core-no-fp-fmt-parse in Rust
1 parent d748046 commit 99ef61f

File tree

2 files changed

+21
-4
lines changed

2 files changed

+21
-4
lines changed

tests/run-make/core-no-fp-fmt-parse/Makefile

-4
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// ignore-tidy-linelength
2+
3+
// This test checks that the core library of Rust can be compiled without enabling support for formatting and parsing floating-point numbers.
4+
5+
extern crate run_make_support;
6+
7+
use run_make_support::rustc;
8+
use std::path::PathBuf;
9+
10+
fn main() {
11+
rustc()
12+
.arg("--edition")
13+
.arg("2021")
14+
.arg("-Dwarnings")
15+
.arg("--crate-type")
16+
.arg("rlib")
17+
.arg_path(&["..", "..", "..", "library", "core", "src", "lib.rs"])
18+
.arg("--cfg")
19+
.arg("no_fp_fmt_parse")
20+
.run();
21+
}

0 commit comments

Comments
 (0)