Skip to content

Commit d94ba08

Browse files
committed
---
yaml --- r: 216242 b: refs/heads/stable c: ea892dc h: refs/heads/master v: v3
1 parent 8f18c3c commit d94ba08

File tree

5 files changed

+1
-127
lines changed

5 files changed

+1
-127
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ refs/heads/tmp: 378a370ff2057afeb1eae86eb6e78c476866a4a6
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: a5286998df566e736b32f6795bfc3803bdaf453d
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32-
refs/heads/stable: 2d9831dea598d8a45c69e8c799503e8a397aacc0
32+
refs/heads/stable: ea892dc70b1a773b85410716b5822cc814542ecc
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375

branches/stable/src/test/auxiliary/macro_crate_test.rs

Lines changed: 0 additions & 26 deletions
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"),
@@ -104,29 +103,4 @@ fn expand_into_foo_multi(cx: &mut ExtCtxt,
104103
}
105104
}
106105

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

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

Lines changed: 0 additions & 28 deletions
This file was deleted.

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

Lines changed: 0 additions & 28 deletions
This file was deleted.

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

Lines changed: 0 additions & 44 deletions
This file was deleted.

0 commit comments

Comments
 (0)