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