fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
635 B25 linesraw
1// check-pass
2// compile-flags: -Zunpretty=expanded,hygiene
3
4// Don't break whenever Symbol numbering changes
5// normalize-stdout-test "\d+#" -> "0#"
6
7// minimal junk
8#![feature /* 0#0 */(no_core)]
9#![no_core /* 0#0 */]
10
11macro_rules! foo /* 0#0 */ { ($ x : ident) => { y + $ x } }
12
13fn bar /* 0#0 */() { let x /* 0#0 */ = 1; y /* 0#1 */ + x /* 0#0 */ }
14
15fn y /* 0#0 */() { }
16
17/*
18Expansions:
190: parent: ExpnId(0), call_site_ctxt: #0, kind: Root
201: parent: ExpnId(0), call_site_ctxt: #0, kind: Macro(Bang, "foo")
21
22SyntaxContexts:
23#0: parent: #0, outer_mark: (ExpnId(0), Opaque)
24#1: parent: #0, outer_mark: (ExpnId(1), SemiTransparent)
25*/