Skip to content

Commit 2810704

Browse files
committed
[experiment] proc_macro: Redirect Span::call_site to Span::mixed_site
1 parent 0cbcb17 commit 2810704

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/libproc_macro/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,8 @@ impl Span {
267267
/// at the macro call site will be able to refer to them as well.
268268
#[stable(feature = "proc_macro_lib2", since = "1.29.0")]
269269
pub fn call_site() -> Span {
270-
Span(bridge::client::Span::call_site())
270+
let _ = bridge::client::Span::call_site;
271+
Self::mixed_site()
271272
}
272273

273274
/// A span that represents `macro_rules` hygiene, and sometimes resolves at the macro

src/test/ui/proc-macro/call-site.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// run-pass
2+
// ignore-test
23

34
#![allow(unused_variables)]
45
#![allow(unused_imports)]

0 commit comments

Comments
 (0)