Skip to content

Commit 5663836

Browse files
committed
Remove remaining tests for hygiene-encoded identifiers.
Such things no longer exist.
1 parent f2e5836 commit 5663836

File tree

4 files changed

+0
-126
lines changed

4 files changed

+0
-126
lines changed

src/test/auxiliary/macro_crate_test.rs

-26
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ macro_rules! unexported_macro { () => (3) }
3232
#[plugin_registrar]
3333
pub fn plugin_registrar(reg: &mut Registry) {
3434
reg.register_macro("make_a_1", expand_make_a_1);
35-
reg.register_macro("forged_ident", expand_forged_ident);
3635
reg.register_macro("identity", expand_identity);
3736
reg.register_syntax_extension(
3837
token::intern("into_foo"),
@@ -94,29 +93,4 @@ fn expand_into_foo_multi(cx: &mut ExtCtxt,
9493
}
9594
}
9695

97-
fn expand_forged_ident(cx: &mut ExtCtxt, sp: Span, tts: &[TokenTree]) -> Box<MacResult+'static> {
98-
use syntax::ext::quote::rt::*;
99-
100-
if !tts.is_empty() {
101-
cx.span_fatal(sp, "forged_ident takes no arguments");
102-
}
103-
104-
// Most of this is modelled after the expansion of the `quote_expr!`
105-
// macro ...
106-
let parse_sess = cx.parse_sess();
107-
let cfg = cx.cfg();
108-
109-
// ... except this is where we inject a forged identifier,
110-
// and deliberately do not call `cx.parse_tts_with_hygiene`
111-
// (because we are testing that this will be *rejected*
112-
// by the default parser).
113-
114-
let expr = {
115-
let tt = cx.parse_tts("\x00name_2,ctxt_0\x00".to_string());
116-
let mut parser = new_parser_from_tts(parse_sess, cfg, tt);
117-
parser.parse_expr()
118-
};
119-
MacEager::expr(expr)
120-
}
121-
12296
pub fn foo() {}

src/test/compile-fail-fulldeps/macro-crate-cannot-read-embedded-ident.rs

-28
This file was deleted.

src/test/run-make/cannot-read-embedded-idents/Makefile

-28
This file was deleted.

src/test/run-make/cannot-read-embedded-idents/create_and_compile.rs

-44
This file was deleted.

0 commit comments

Comments
 (0)