Skip to content

Commit

Permalink
Rewrite core-no-fp-fmt-parse in Rust
Browse files Browse the repository at this point in the history
  • Loading branch information
Oneirical committed Mar 29, 2024
1 parent d748046 commit 99ef61f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
4 changes: 0 additions & 4 deletions tests/run-make/core-no-fp-fmt-parse/Makefile

This file was deleted.

21 changes: 21 additions & 0 deletions tests/run-make/core-no-fp-fmt-parse/rmake.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// ignore-tidy-linelength

// This test checks that the core library of Rust can be compiled without enabling support for formatting and parsing floating-point numbers.

extern crate run_make_support;

use run_make_support::rustc;
use std::path::PathBuf;

fn main() {
rustc()
.arg("--edition")
.arg("2021")
.arg("-Dwarnings")
.arg("--crate-type")
.arg("rlib")
.arg_path(&["..", "..", "..", "library", "core", "src", "lib.rs"])
.arg("--cfg")
.arg("no_fp_fmt_parse")
.run();
}

0 comments on commit 99ef61f

Please sign in to comment.