2022-08-23 00:00:00 +00:00
|
|
|
include ../tools.mk
|
2014-04-15 07:47:26 -07:00
|
|
|
|
|
|
|
all:
|
2014-07-05 12:37:43 -07:00
|
|
|
cp foo.rs $(TMPDIR)/.foo.rs
|
|
|
|
$(RUSTC) $(TMPDIR)/.foo.rs 2>&1 \
|
2017-11-23 23:19:50 +08:00
|
|
|
| $(CGREP) -e "invalid character.*in crate name:"
|
2014-07-05 12:37:43 -07:00
|
|
|
cp foo.rs $(TMPDIR)/.foo.bar
|
|
|
|
$(RUSTC) $(TMPDIR)/.foo.bar 2>&1 \
|
2017-11-23 23:19:50 +08:00
|
|
|
| $(CGREP) -e "invalid character.*in crate name:"
|
2017-12-18 15:35:45 +00:00
|
|
|
cp foo.rs $(TMPDIR)/+foo+bar.rs
|
|
|
|
$(RUSTC) $(TMPDIR)/+foo+bar.rs 2>&1 \
|
2017-11-23 23:19:50 +08:00
|
|
|
| $(CGREP) -e "invalid character.*in crate name:"
|
2015-02-22 20:05:05 +13:00
|
|
|
cp foo.rs $(TMPDIR)/-foo.rs
|
|
|
|
$(RUSTC) $(TMPDIR)/-foo.rs 2>&1 \
|
2017-11-23 23:19:50 +08:00
|
|
|
| $(CGREP) 'crate names cannot start with a `-`'
|