about summary refs log tree commit diff
path: root/src/librustc_attr
AgeCommit message (Collapse)AuthorLines
2020-05-03Add build script to rustc_attr because of cfg(version)mibac138-0/+5
2020-05-03Add more tests for cfg(version)mibac138-2/+1
2020-05-03Change cfg(version) error message wordingmibac138-3/+3
2020-05-03Implement RFC 2523, `#[cfg(version(..))]`mibac138-13/+54
2020-05-01make Stability docs a bit more readable, and fix some rustdoc warningsTshepang Lekhonkhobe-2/+6
2020-04-24Avoid unused Option::map resultsJosh Stone-2/+2
These are changes that would be needed if we add `#[must_use]` to `Option::map`, per #71484.
2020-04-20Remove unused dependenciesShotaro Yamada-1/+0
2020-03-30rustc -> rustc_middle part 2Mazdak Farrokhzad-1/+1
2020-03-23Split long derive lists into two derive attributes.Ana-Maria Mihalache-46/+8
2020-03-16Other `legacy` -> `macro_rules`Vadim Petrochenkov-2/+2
2020-02-29Rename `syntax` to `rustc_ast` in source codeVadim Petrochenkov-5/+5
2020-02-29Make it build againVadim Petrochenkov-1/+1
2020-02-29use .to_string() instead of format!() macro to create stringsMatthias Krüger-1/+1
2020-02-11Auto merge of #68491 - pnkfelix:hide-niches-under-unsafe-cell, r=olibors-0/+2
Hide niches under UnsafeCell Hide any niche of T from type-construction context of `UnsafeCell<T>`. Fix #68303 Fix #68206
2020-02-11Run RustFmtjumbatm-1/+3
2020-02-11Invert control in struct_lint_level.jumbatm-2/+2
Caller now passes in a `decorate` function, which is only run if the lint is allowed.
2020-02-10Add `#[repr(no_niche)]`.Felix S. Klock II-0/+2
This repr-hint makes a struct/enum hide any niche within from its surrounding type-construction context. It is meant (at least initially) as an implementation detail for resolving issue 68303. We will not stabilize the repr-hint unless someone finds motivation for doing so. (So, declaration of `no_niche` feature lives in section of file where other internal implementation details are grouped, and deliberately leaves out the tracking issue number.) incorporated review feedback, and fixed post-rebase.
2020-02-06Forbid using `0` as issue numberYuki Okushi-17/+22
2020-02-01syntax::print -> new crate rustc_ast_prettyMazdak Farrokhzad-1/+2
2020-02-011. move allow_internal_unstable to rustc_attrMazdak Farrokhzad-1/+19
2. as a result, drop rustc_errors dep from syntax
2020-02-01Move builtin attribute logic to new rustc_attr crate.Mazdak Farrokhzad-0/+1082
For now, this is all the crate contains, but more attribute logic & types will be moved there over time.