Skip to content

Commit ee04a5d

Browse files
authored
Merge pull request #50 from alexcrichton/breaking
Breaking changes for 0.2
2 parents 066520d + 1b5788f commit ee04a5d

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

Cargo.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,9 @@ doctest = false
2121
unicode-xid = "0.1"
2222

2323
[features]
24-
2524
# When enabled: act as a shim around the nightly compiler's proc_macro crate.
2625
# This requires a nightly compiler.
2726
#
2827
# When disabled: emulate the same API as the nightly compiler's proc_macro crate
2928
# but in a way that works on all stable compilers >=1.15.0.
3029
nightly = []
31-
32-
# Deprecated; use "nightly" instead.
33-
unstable = ["nightly"]

src/lib.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -146,13 +146,6 @@ pub struct LineColumn {
146146
#[derive(Copy, Clone)]
147147
pub struct Span(imp::Span);
148148

149-
#[doc(hidden)]
150-
impl Default for Span {
151-
fn default() -> Span {
152-
Span(imp::Span::def_site())
153-
}
154-
}
155-
156149
impl Span {
157150
pub fn call_site() -> Span {
158151
Span(imp::Span::call_site())
@@ -211,7 +204,7 @@ pub struct TokenTree {
211204

212205
impl From<TokenNode> for TokenTree {
213206
fn from(kind: TokenNode) -> TokenTree {
214-
TokenTree { span: Span::default(), kind: kind }
207+
TokenTree { span: Span::def_site(), kind: kind }
215208
}
216209
}
217210

0 commit comments

Comments
 (0)