Skip to content

Commit 1621fe4

Browse files
committed
---
yaml --- r: 150008 b: refs/heads/try2 c: 05c7323 h: refs/heads/master v: v3
1 parent 4f0ab65 commit 1621fe4

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 2c372201d447cbf4d3e1e2d675d1776e765f3b65
8+
refs/heads/try2: 05c73233e40dad982a87f210273be15824fdab57
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/src/librustc/middle/lint.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -985,7 +985,7 @@ static other_attrs: &'static [&'static str] = &[
985985
"crate_map", "cfg", "doc", "export_name", "link_section",
986986
"no_mangle", "static_assert", "unsafe_no_drop_flag", "packed",
987987
"simd", "repr", "deriving", "unsafe_destructor", "link", "phase",
988-
"macro_export", "must_use",
988+
"macro_export", "must_use", "automatically_derived",
989989

990990
//mod-level
991991
"path", "link_name", "link_args", "macro_escape", "no_implicit_prelude",

branches/try2/src/libsyntax/ext/deriving/generic.rs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,6 @@ use codemap;
186186
use codemap::Span;
187187
use opt_vec;
188188
use parse::token::InternedString;
189-
use parse::token;
190189

191190
use std::vec_ng::Vec;
192191
use std::vec_ng;
@@ -399,19 +398,16 @@ impl<'a> TraitDef<'a> {
399398
cx.path_all(self.span, false, vec!( type_ident ), self_lifetimes,
400399
opt_vec::take_vec(self_ty_params)), None);
401400

402-
let doc_attr = cx.attribute(
401+
let attr = cx.attribute(
403402
self.span,
404-
cx.meta_name_value(self.span,
405-
InternedString::new("doc"),
406-
ast::LitStr(token::intern_and_get_ident(
407-
"Automatically derived."),
408-
ast::CookedStr)));
403+
cx.meta_word(self.span,
404+
InternedString::new("automatically_derived")));
409405
let opt_trait_ref = Some(trait_ref);
410406
let ident = ast_util::impl_pretty_name(&opt_trait_ref, self_type);
411407
cx.item(
412408
self.span,
413409
ident,
414-
vec_ng::append(vec!(doc_attr), self.attributes.as_slice()),
410+
vec_ng::append(vec!(attr), self.attributes.as_slice()),
415411
ast::ItemImpl(trait_generics, opt_trait_ref,
416412
self_type, methods.map(|x| *x)))
417413
}

0 commit comments

Comments
 (0)