@@ -236,14 +236,14 @@ fn test() {
236
236
expect ! [ [ r#"
237
237
71..153 '{ ...a.c; }': ()
238
238
81..82 'c': C
239
- 85..86 'C': extern "rust-call" C(usize) -> C
239
+ 85..86 'C': fn C(usize) -> C
240
240
85..89 'C(1)': C
241
241
87..88 '1': usize
242
242
95..96 'B': B
243
243
106..107 'a': A
244
244
113..132 'A { b:...C(1) }': A
245
245
120..121 'B': B
246
- 126..127 'C': extern "rust-call" C(usize) -> C
246
+ 126..127 'C': fn C(usize) -> C
247
247
126..130 'C(1)': C
248
248
128..129 '1': usize
249
249
138..139 'a': A
@@ -629,12 +629,12 @@ impl E {
629
629
86..107 '{ ... }': ()
630
630
96..100 'Self': S1
631
631
134..158 '{ ... }': ()
632
- 144..148 'Self': extern "rust-call" S2(isize) -> S2
632
+ 144..148 'Self': fn S2(isize) -> S2
633
633
144..151 'Self(1)': S2
634
634
149..150 '1': isize
635
635
184..230 '{ ... }': ()
636
636
194..202 'Self::V1': E
637
- 212..220 'Self::V2': extern "rust-call" V2(u32) -> E
637
+ 212..220 'Self::V2': fn V2(u32) -> E
638
638
212..223 'Self::V2(1)': E
639
639
221..222 '1': u32
640
640
"# ] ] ,
@@ -860,11 +860,11 @@ fn test() {
860
860
256..277 'A::foo...42))))': &'? i32
861
861
263..276 '&&B(B(A(42)))': &'? &'? B<B<A<i32>>>
862
862
264..276 '&B(B(A(42)))': &'? B<B<A<i32>>>
863
- 265..266 'B': extern "rust-call" B<B<A<i32>>>(B<A<i32>>) -> B<B<A<i32>>>
863
+ 265..266 'B': fn B<B<A<i32>>>(B<A<i32>>) -> B<B<A<i32>>>
864
864
265..276 'B(B(A(42)))': B<B<A<i32>>>
865
- 267..268 'B': extern "rust-call" B<A<i32>>(A<i32>) -> B<A<i32>>
865
+ 267..268 'B': fn B<A<i32>>(A<i32>) -> B<A<i32>>
866
866
267..275 'B(A(42))': B<A<i32>>
867
- 269..270 'A': extern "rust-call" A<i32>(i32) -> A<i32>
867
+ 269..270 'A': fn A<i32>(i32) -> A<i32>
868
868
269..274 'A(42)': A<i32>
869
869
271..273 '42': i32
870
870
"# ] ] ,
@@ -914,16 +914,16 @@ fn test(a: A<i32>) {
914
914
253..254 'a': A<i32>
915
915
264..310 '{ ...))); }': ()
916
916
274..275 't': &'? i32
917
- 278..279 'A': extern "rust-call" A<i32>(*mut i32) -> A<i32>
917
+ 278..279 'A': fn A<i32>(*mut i32) -> A<i32>
918
918
278..292 'A(0 as *mut _)': A<i32>
919
919
278..307 'A(0 as...B(a)))': &'? i32
920
920
280..281 '0': usize
921
921
280..291 '0 as *mut _': *mut i32
922
922
297..306 '&&B(B(a))': &'? &'? B<B<A<i32>>>
923
923
298..306 '&B(B(a))': &'? B<B<A<i32>>>
924
- 299..300 'B': extern "rust-call" B<B<A<i32>>>(B<A<i32>>) -> B<B<A<i32>>>
924
+ 299..300 'B': fn B<B<A<i32>>>(B<A<i32>>) -> B<B<A<i32>>>
925
925
299..306 'B(B(a))': B<B<A<i32>>>
926
- 301..302 'B': extern "rust-call" B<A<i32>>(A<i32>) -> B<A<i32>>
926
+ 301..302 'B': fn B<A<i32>>(A<i32>) -> B<A<i32>>
927
927
301..305 'B(a)': B<A<i32>>
928
928
303..304 'a': A<i32>
929
929
"# ] ] ,
@@ -1277,16 +1277,16 @@ fn infer_tuple_struct_generics() {
1277
1277
"# ,
1278
1278
expect ! [ [ r#"
1279
1279
75..183 '{ ...one; }': ()
1280
- 81..82 'A': extern "rust-call" A<i32>(i32) -> A<i32>
1280
+ 81..82 'A': fn A<i32>(i32) -> A<i32>
1281
1281
81..86 'A(42)': A<i32>
1282
1282
83..85 '42': i32
1283
- 92..93 'A': extern "rust-call" A<u128>(u128) -> A<u128>
1283
+ 92..93 'A': fn A<u128>(u128) -> A<u128>
1284
1284
92..101 'A(42u128)': A<u128>
1285
1285
94..100 '42u128': u128
1286
- 107..111 'Some': extern "rust-call" Some<&'static str>(&'static str) -> Option<&'static str>
1286
+ 107..111 'Some': fn Some<&'static str>(&'static str) -> Option<&'static str>
1287
1287
107..116 'Some("x")': Option<&'static str>
1288
1288
112..115 '"x"': &'static str
1289
- 122..134 'Option::Some': extern "rust-call" Some<&'static str>(&'static str) -> Option<&'static str>
1289
+ 122..134 'Option::Some': fn Some<&'static str>(&'static str) -> Option<&'static str>
1290
1290
122..139 'Option...e("x")': Option<&'static str>
1291
1291
135..138 '"x"': &'static str
1292
1292
145..149 'None': Option<{unknown}>
@@ -1572,7 +1572,7 @@ fn infer_type_alias() {
1572
1572
204..207 'z.y': i8
1573
1573
298..362 '{ ... &e; }': ()
1574
1574
308..309 'e': Enum
1575
- 312..325 'm::Alias::Foo': extern "rust-call" Foo(u8) -> Enum
1575
+ 312..325 'm::Alias::Foo': fn Foo(u8) -> Enum
1576
1576
312..328 'm::Ali...Foo(0)': Enum
1577
1577
326..327 '0': u8
1578
1578
338..354 'm::Ali...Foo(x)': Enum
@@ -2191,21 +2191,21 @@ fn main() {
2191
2191
103..231 '{ ... }); }': ()
2192
2192
109..161 'async ... }': impl Future<Output = Result<(), ()>>
2193
2193
125..139 'return Err(())': !
2194
- 132..135 'Err': extern "rust-call" Err<(), ()>(()) -> Result<(), ()>
2194
+ 132..135 'Err': fn Err<(), ()>(()) -> Result<(), ()>
2195
2195
132..139 'Err(())': Result<(), ()>
2196
2196
136..138 '()': ()
2197
- 149..151 'Ok': extern "rust-call" Ok<(), ()>(()) -> Result<(), ()>
2197
+ 149..151 'Ok': fn Ok<(), ()>(()) -> Result<(), ()>
2198
2198
149..155 'Ok(())': Result<(), ()>
2199
2199
152..154 '()': ()
2200
2200
167..171 'test': fn test<(), (), impl FnMut() -> impl Future<Output = Result<(), ()>>, impl Future<Output = Result<(), ()>>>(impl FnMut() -> impl Future<Output = Result<(), ()>>)
2201
2201
167..228 'test(|... })': ()
2202
2202
172..227 '|| asy... }': impl FnMut() -> impl Future<Output = Result<(), ()>>
2203
2203
175..227 'async ... }': impl Future<Output = Result<(), ()>>
2204
2204
191..205 'return Err(())': !
2205
- 198..201 'Err': extern "rust-call" Err<(), ()>(()) -> Result<(), ()>
2205
+ 198..201 'Err': fn Err<(), ()>(()) -> Result<(), ()>
2206
2206
198..205 'Err(())': Result<(), ()>
2207
2207
202..204 '()': ()
2208
- 215..217 'Ok': extern "rust-call" Ok<(), ()>(()) -> Result<(), ()>
2208
+ 215..217 'Ok': fn Ok<(), ()>(()) -> Result<(), ()>
2209
2209
215..221 'Ok(())': Result<(), ()>
2210
2210
218..220 '()': ()
2211
2211
"# ] ] ,
@@ -2234,7 +2234,7 @@ fn infer_generic_from_later_assignment() {
2234
2234
94..127 '{ ... }': ()
2235
2235
104..107 'end': Option<bool>
2236
2236
104..120 'end = ...(true)': ()
2237
- 110..114 'Some': extern "rust-call" Some<bool>(bool) -> Option<bool>
2237
+ 110..114 'Some': fn Some<bool>(bool) -> Option<bool>
2238
2238
110..120 'Some(true)': Option<bool>
2239
2239
115..119 'true': bool
2240
2240
"# ] ] ,
@@ -2269,7 +2269,7 @@ fn infer_loop_break_with_val() {
2269
2269
111..121 'break None': !
2270
2270
117..121 'None': Option<bool>
2271
2271
142..158 'break ...(true)': !
2272
- 148..152 'Some': extern "rust-call" Some<bool>(bool) -> Option<bool>
2272
+ 148..152 'Some': fn Some<bool>(bool) -> Option<bool>
2273
2273
148..158 'Some(true)': Option<bool>
2274
2274
153..157 'true': bool
2275
2275
"# ] ] ,
@@ -2516,7 +2516,7 @@ fn generic_default_in_struct_literal() {
2516
2516
254..281 'OtherT...1i32 }': OtherThing<i32>
2517
2517
275..279 '1i32': i32
2518
2518
291..292 'b': OtherThing<i32>
2519
- 295..310 'OtherThing::Two': extern "rust-call" Two<i32>(i32) -> OtherThing<i32>
2519
+ 295..310 'OtherThing::Two': fn Two<i32>(i32) -> OtherThing<i32>
2520
2520
295..316 'OtherT...(1i32)': OtherThing<i32>
2521
2521
311..315 '1i32': i32
2522
2522
"# ] ] ,
@@ -3028,7 +3028,7 @@ fn f() {
3028
3028
expect ! [ [ r#"
3029
3029
72..166 '{ ... } }': ()
3030
3030
78..164 'match ... }': ()
3031
- 84..92 'Foo::Bar': extern "rust-call" Bar(i32) -> Foo
3031
+ 84..92 'Foo::Bar': fn Bar(i32) -> Foo
3032
3032
84..95 'Foo::Bar(3)': Foo
3033
3033
93..94 '3': i32
3034
3034
106..119 'Qux::Bar(bar)': Foo
@@ -3087,9 +3087,9 @@ fn main() {
3087
3087
322..324 '{}': Foo<T>
3088
3088
338..559 '{ ...r(); }': ()
3089
3089
348..353 'boxed': Box<Foo<i32>>
3090
- 356..359 'Box': extern "rust-call" Box<Foo<i32>>(Foo<i32>) -> Box<Foo<i32>>
3090
+ 356..359 'Box': fn Box<Foo<i32>>(Foo<i32>) -> Box<Foo<i32>>
3091
3091
356..371 'Box(Foo(0_i32))': Box<Foo<i32>>
3092
- 360..363 'Foo': extern "rust-call" Foo<i32>(i32) -> Foo<i32>
3092
+ 360..363 'Foo': fn Foo<i32>(i32) -> Foo<i32>
3093
3093
360..370 'Foo(0_i32)': Foo<i32>
3094
3094
364..369 '0_i32': i32
3095
3095
382..386 'bad1': &'? i32
0 commit comments