Skip to content

Commit d1d0b9b

Browse files
committed
add run-make test for rustc_fluent_macro with hypens in package name
1 parent 38b364b commit d1d0b9b

File tree

4 files changed

+20
-0
lines changed

4 files changed

+20
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[package]
2+
name = "some-name"
3+
version = "0.0.0"
4+
edition = "2024"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
some_name_whatever_message = hello
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
use run_make_support::external_deps::cargo::cargo;
2+
3+
// test to make sure that `rustc_fluent_macro` correctly handles
4+
// packages that have hyphens in their package name.
5+
6+
fn main() {
7+
cargo().arg("build").arg("--manifest-path=./Cargo.toml").run();
8+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#![feature(rustc_private)]
2+
3+
extern crate rustc_driver;
4+
extern crate rustc_errors;
5+
extern crate rustc_fluent_macro;
6+
7+
rustc_fluent_macro::fluent_messages!("../messages.ftl");

0 commit comments

Comments
 (0)