diff options
| author | bors <bors@rust-lang.org> | 2015-06-23 20:30:56 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-06-23 20:30:56 +0000 |
| commit | 6fed735b22ef66918cf78c3df9a7922df9ed7954 (patch) | |
| tree | a915622146c74c65f4e1e5d640f654967dfb68ba /src/libsyntax | |
| parent | 2ad26e850ed5dfedda8c96d7315aee50145ceedd (diff) | |
| parent | 2962b2681fd9dd4c91f27c4b061d9a2dc15ced02 (diff) | |
| download | rust-6fed735b22ef66918cf78c3df9a7922df9ed7954.tar.gz rust-6fed735b22ef66918cf78c3df9a7922df9ed7954.zip | |
Auto merge of #26061 - Gankro:inherit-dep, r=brson
Uncertain if this is the desired effect/strategy/testing. r? @aturon
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/attr.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libsyntax/attr.rs b/src/libsyntax/attr.rs index aa3ec03ee94..3ee8ffe3636 100644 --- a/src/libsyntax/attr.rs +++ b/src/libsyntax/attr.rs @@ -397,7 +397,7 @@ fn find_stability_generic<'a, -> (Option<Stability>, Vec<&'a AM>) { let mut stab: Option<Stability> = None; - let mut deprecated: Option<(InternedString, Option<InternedString>)> = None; + let mut deprecated: Option<(Option<InternedString>, Option<InternedString>)> = None; let mut used_attrs: Vec<&'a AM> = vec![]; 'outer: for attr in attrs { @@ -484,7 +484,7 @@ fn find_stability_generic<'a, diagnostic.span_err(item_sp, "multiple deprecated attributes"); } - deprecated = Some((since.unwrap_or(intern_and_get_ident("bogus")), reason)); + deprecated = Some((since, reason)); } } @@ -493,7 +493,7 @@ fn find_stability_generic<'a, match stab { Some(ref mut s) => { let (since, reason) = deprecated.unwrap(); - s.deprecated_since = Some(since); + s.deprecated_since = since; s.reason = reason; } None => { |
