commit | e6085b71802f21a9c5429af0a8b56e916c20c48a | [log] [tgz] |
---|---|---|
author | Alex Crichton <alex@alexcrichton.com> | Tue Nov 21 07:24:25 2017 -0800 |
committer | Alex Crichton <alex@alexcrichton.com> | Tue Nov 21 07:24:25 2017 -0800 |
tree | 18b00236330227ccb65f7e090488d474600eb64f | |
parent | 5d6580725f5011c9f567268cb377338e79e44eb4 [diff] [blame] |
Add `Span::def_site`-the-API
diff --git a/src/stable.rs b/src/stable.rs index 911d648..8277d4c 100644 --- a/src/stable.rs +++ b/src/stable.rs
@@ -137,13 +137,17 @@ } } -#[derive(Clone, Copy, Default, Debug)] +#[derive(Clone, Copy, Debug)] pub struct Span; impl Span { pub fn call_site() -> Span { Span } + + pub fn def_site() -> Span { + Span + } } #[derive(Copy, Clone)]