about summary refs log tree commit diff
path: root/src/libsyntax/attr.rs
AgeCommit message (Collapse)AuthorLines
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
2016-02-11[breaking-change] don't pub export ast::Lit_ variantsOliver Schneider-3/+3
2016-02-11[breaking-change] don't glob export ast::{UintTy, IntTy} variantsOliver Schneider-15/+15
2016-02-11[breaking-change] don't glob export ast::Decl_ variantsOliver Schneider-3/+3
2015-12-30use structured errorsNick Cameron-2/+4
2015-12-18Rollup merge of #30384 - nrc:diagnostics, r=@nikomatsakisManish Goregaokar-14/+14
Should make it possible to add JSON or HTML errors. Also tidies up a lot.
2015-12-17Remove unused importsJeffrey Seyfried-1/+1
2015-12-17move error handling from libsyntax/diagnostics.rs to libsyntax/errors/*Nick Cameron-14/+14
Also split out emitters into their own module.
2015-12-12Implement `#[deprecated]` attribute (RFC 1270)Vadim Petrochenkov-10/+81
2015-11-30Simplyfied map_thin_attrs()Marvin Löbel-19/+3
2015-11-26Added stmt_expr_attribute feature gateMarvin Löbel-9/+19
2015-11-26Moved and refactored ThinAttributesMarvin Löbel-6/+96
2015-11-26Add syntax support for attributes on expressions and all syntaxMarvin Löbel-0/+82
nodes in statement position. Extended #[cfg] folder to allow removal of statements, and of expressions in optional positions like expression lists and trailing block expressions. Extended lint checker to recognize lint levels on expressions and locals.
2015-11-20Rename #[deprecated] to #[rustc_deprecated]Vadim Petrochenkov-5/+5
2015-11-10Use lifetime elisionSeo Sanghyeon-6/+6
2015-10-13Refactor attr::StabilityVadim Petrochenkov-123/+171
Stricter checking + enforcement of invariants at compile time
2015-10-03Check attribute usageSeo Sanghyeon-1/+0
2015-10-01Stop re-exporting AttrStyle's variants and rename them.Ms2ger-3/+3
2015-08-17feature gate `cfg(target_feature)`.Huon Wilson-5/+10
This is theoretically a breaking change, but GitHub search turns up no uses of it, and most non-built-in cfg's are passed via cargo features, which look like `feature = "..."`, and hence can't overlap.
2015-08-17Implement `repr(simd)` as an alias for `#[simd]`.Huon Wilson-1/+4
2015-08-15syntax: Require issues for unstable featuresAlex Crichton-4/+3
This turns an `#[unstable]` tag without an `issue` annotation into a hard error to ensure that we've always got a tracking issue for unstable features in the standard library.
2015-08-12Remove all unstable deprecated functionalityAlex Crichton-7/+17
This commit removes all unstable and deprecated functions in the standard library. A release was recently cut (1.3) which makes this a good time for some spring cleaning of the deprecated functions.
2015-07-07Auto merge of #26747 - huonw:stability-issue, r=alexcrichtonbors-23/+45
This takes an issue number and points people to it in the printed error message. This commit does not make it an error to have no `issue` field.
2015-07-06rustc: implement `unstable(issue = "nnn")`.Huon Wilson-23/+45
This takes an issue number and points people to it in the printed error message. This commit does not make it an error to have no `issue` field.
2015-07-01fallout of bitvec/bitset deprecationAlexis Beingessner-0/+3
2015-06-23Auto merge of #26061 - Gankro:inherit-dep, r=brsonbors-3/+3
Uncertain if this is the desired effect/strategy/testing. r? @aturon
2015-06-11validate stability against deprecation versionAlexis Beingessner-3/+3
2015-06-10Removed many pointless calls to *iter() and iter_mut()Joshua Landau-1/+1
2015-05-26Make caching in stability work. This improves stability check performanceAriel Ben-Yehuda-2/+2
by 90%.
2015-04-12Auto merge of #23011 - nagisa:the-war-of-symbol-and-symbol, r=pnkfelixbors-0/+17
We provide tools to tell what exact symbols to emit for any fn or static, but don’t quite check if that won’t cause any issues later on. Some of the issues include LLVM mangling our names again and our names pointing to wrong locations, us generating dumb foreign call wrappers, linker errors, extern functions resolving to different symbols altogether (`extern {fn fail();} fail();` in some cases calling `fail1()`), etc. Before the commit we had a function called `note_unique_llvm_symbol`, so it is clear somebody was aware of the issue at some point, but the function was barely used, mostly in irrelevant locations. Along with working on it I took liberty to start refactoring trans/base into a few smaller modules. The refactoring is incomplete and I hope I will find some motivation to carry on with it. This is possibly a [breaking-change] because it makes dumbly written code properly invalid. This fixes all those issues about incorrect use of #[no_mangle] being not reported/misreported/ICEd by the compiler. NB. This PR does not attempt to tackle the parallel codegen issue that was mentioned in https://github.com/rust-lang/rust/pull/22811, but I believe it should be very straightforward in a follow up PR by modifying `trans::declare::get_defined_value` to look at all the contexts. cc @alexcrichton @huonw @nrc because you commented on the original RFC issue. EDIT: wow, this became much bigger than I initially intended.
2015-04-05Work towards a non-panicing parser (libsyntax)Phil Dawes-2/+2
- Functions in parser.rs return PResult<> rather than panicing - Other functions in libsyntax call panic! explicitly for now if they rely on panicing behaviour. - 'panictry!' macro added as scaffolding while converting panicing functions. (This does the same as 'unwrap()' but is easier to grep for and turn into try!()) - Leaves panicing wrappers for the following functions so that the quote_* macros behave the same: - parse_expr, parse_item, parse_pat, parse_arm, parse_ty, parse_stmt
2015-04-03Validate export_name attributeSimonas Kazlauskas-0/+17
2015-04-01Fallout in libsyntaxNiko Matsakis-3/+3
2015-03-25rustc: Remove support for int/uintAlex Crichton-5/+3
This commit removes all parsing, resolve, and compiler support for the old and long-deprecated int/uint types.
2015-02-28Remove the re-exports for InlineAttr variants.Ms2ger-13/+12
2015-02-22Validate inline attribute argumentsSimonas Kazlauskas-4/+8
2015-02-18rollup merge of #22502: nikomatsakis/deprecate-bracket-bracketAlex Crichton-14/+14
Conflicts: src/libcollections/slice.rs src/libcollections/str.rs src/librustc/middle/lang_items.rs src/librustc_back/rpath.rs src/librustc_typeck/check/regionck.rs src/libstd/ffi/os_str.rs src/libsyntax/diagnostic.rs src/libsyntax/parse/parser.rs src/libsyntax/util/interner.rs src/test/run-pass/regions-refcell.rs
2015-02-18Replace all uses of `&foo[]` with `&foo[..]` en masse.Niko Matsakis-14/+14
2015-02-18Implement RFC 580Aaron Turon-2/+2
This commit implements RFC 580 by renaming: * DList -> LinkedList * Bitv -> BitVec * BitvSet -> BitSet * RingBuf -> VecDeque More details are in [the RFC](https://github.com/rust-lang/rfcs/pull/580) [breaking-change]
2015-02-06Update to last version, remove "[]" as much as possibleGuillaumeGomez-3/+3
2015-02-06Libsyntax has been updatedGuillaumeGomez-13/+12