about summary refs log tree commit diff
path: root/src/libsyntax/attr.rs
AgeCommit message (Collapse)AuthorLines
2017-03-29Refactor how spans are combined in the parser.Jeffrey Seyfried-8/+7
2017-03-14Liberalize attributes.Jeffrey Seyfried-2/+44
2017-03-14Refactor `Attribute` to use `Path` and `TokenStream` instead of `MetaItem`.Jeffrey Seyfried-37/+269
2017-02-25rustc_typeck: hook up collect and item/body check to on-demand.Eduard-Mihai Burtescu-23/+0
2017-02-03Switch logic to Span instead of HashMapGuillaume Gomez-6/+6
2017-01-11syntax: struct field attributes and cfgBenjamin Saunders-10/+22
2016-12-30Such large. Very 128. Much bits.Simonas Kazlauskas-1/+4
This commit introduces 128-bit integers. Stage 2 builds and produces a working compiler which understands and supports 128-bit integers throughout. The general strategy used is to have rustc_i128 module which provides aliases for iu128, equal to iu64 in stage9 and iu128 later. Since nowhere in rustc we rely on large numbers being supported, this strategy is good enough to get past the first bootstrap stages to end up with a fully working 128-bit capable compiler. In order for this strategy to work, number of locations had to be changed to use associated max_value/min_value instead of MAX/MIN constants as well as the min_value (or was it max_value?) had to be changed to use xor instead of shift so both 64-bit and 128-bit based consteval works (former not necessarily producing the right results in stage1). This commit includes manual merge conflict resolution changes from a rebase by @est31.
2016-12-18Remove some unused functions and fix formatting.Jeffrey Seyfried-30/+0
2016-11-21Use `Symbol` instead of `InternedString` in the AST, HIR, and various other ↵Jeffrey Seyfried-24/+22
places.
2016-11-20Move `syntax::util::interner` -> `syntax::symbol`, cleanup.Jeffrey Seyfried-5/+5
2016-11-20Refactor `P<ast::MetaItem>` -> `ast::MetaItem`.Jeffrey Seyfried-22/+21
2016-11-20Move `MetaItemKind`'s `Name` to a field of `MetaItem`.Jeffrey Seyfried-20/+21
2016-11-20Refactor `CrateConfig`.Jeffrey Seyfried-13/+1
2016-11-20Refactor `MetaItemKind` to use `Name`s instead of `InternedString`s.Jeffrey Seyfried-36/+31
2016-11-20Refactor away `ast::Attribute_`.Jeffrey Seyfried-35/+35
2016-11-13do not use deprecated text for unstable docsAndy Russell-3/+0
2016-11-08Rename KNOWN_ATTRS to BUILT_ATTRS, and create KNOWN_ATTRSJosh Driver-1/+25
KNOWN_ATTRIBUTES should really be named BUILT_ATTRIBUTES, while KNOWN_ATTRIBUTES should be used to mark attributes as known, similar to USED_ATTRIBUTES.
2016-10-29Move `CrateConfig` from `Crate` to `ParseSess`.Jeffrey Seyfried-8/+5
2016-09-20rustc_metadata: go only through rustc_serialize in astencode.Eduard Burtescu-3/+3
2016-09-03Update compiler error E0558 to use new error formatAbhishek Kumar-2/+3
Fixes #36196 part of #35233
2016-08-31Warn about multiple conflicting #[repr] hintsChris Wong-3/+2
Closes #34622
2016-08-25Refactor away `AttrMetaMethods`.Jeffrey Seyfried-58/+34
2016-08-25Refactor away `AttributeMethods`.Jeffrey Seyfried-10/+3
2016-08-25Refactor away `AttrNestedMetaItemMethods`.Jeffrey Seyfried-41/+33
2016-08-25Implement RFC#1559: allow all literals in attributes.Sergio Benitez-101/+229
2016-07-25Adressed PR comments.cgswords-11/+10
2016-07-25General MetaItem encapsulation rewrites.cgswords-14/+80
2016-07-11Move E0533 to E0558 (because of external change)Guillaume Gomez-1/+1
2016-07-11Add E0534 error explanationGuillaume Gomez-1/+1
2016-07-02Rollup merge of #34531 - GuillaumeGomez:libsyntax_err_codes, r=jonathandturnerManish Goregaokar-40/+65
Add error codes in libsyntax r? @jonathandturner Fixes #34526
2016-06-29Add error codes in libsyntaxggomez-40/+65
2016-06-28cleanup: don't count attributes on an item in a statement position as on the ↵Jeffrey Seyfried-2/+2
statement
2016-06-26Rollup merge of #34339 - jseyfried:thin_vec, r=petrochenkov,ManishearthJeffrey Seyfried-77/+4
Generalize and abstract `ThinAttributes` to `ThinVec<Attribute>`.
2016-06-26Rollup merge of #34316 - jseyfried:refactor_ast_stmt, r=eddybJeffrey Seyfried-27/+16
Refactor away `ast::Decl`, refactor `ast::Stmt`, and rename `ast::ExprKind::Again` to `ast::ExprKind::Continue`.
2016-06-26Rollup merge of #33943 - jseyfried:libsyntax_cleanup, r=nrcJeffrey Seyfried-15/+0
Miscellaneous low priority cleanup in `libsyntax`.
2016-06-23Move errors from libsyntax to its own crateJonathan Turner-2/+2
2016-06-19Generalize and abstract `ThinAttributes`Jeffrey Seyfried-80/+7
2016-06-17Fix falloutJeffrey Seyfried-27/+17
2016-06-16Simplify gated cfg checkingJeffrey Seyfried-20/+13
2016-06-14Refactor away `WithAttrs` traitJeffrey Seyfried-15/+0
2016-05-26Add and use `HasAttrs` traitJeffrey Seyfried-57/+84
2016-04-26allow InternedString to be compared to &str directlyOliver Schneider-3/+3
2016-02-12Use more autoderef in libsyntaxJonas Schievink-4/+4
2016-02-11Pass through diagnostic handler insteadarcnmx-5/+5
2016-02-11Use find_export_name_attr instead of string literalarcnmx-4/+4
2016-02-11Remove link_section and linkage as extern indicatorsarcnmx-2/+0
2016-02-11Only retain external static symbols across LTOarcnmx-0/+7
2016-02-11[breaking-change] don't glob export ast::StrStyle variantsOliver 'ker' Schneider-2/+2
2016-02-11[breaking-change] don't glob export ast::MetaItem_Oliver 'ker' Schneider-22/+21
2016-02-11[breaking-change] don't pub export ast::Stmt_ variantsOliver Schneider-6/+6