summary refs log tree commit diff
path: root/src/librustc_attr
AgeCommit message (Collapse)AuthorLines
2020-05-11Fix clippy warningsMatthias Krüger-1/+1
Fixes clippy::{cone_on_copy, filter_next, redundant_closure, single_char_pattern, len_zero,redundant_field_names, useless_format, identity_conversion, map_clone, into_iter_on_ref, needless_return, option_as_ref_deref, unused_unit, unnecessary_mut_passed}
2020-05-08Rollup merge of #72017 - ctaggart:wasm2, r=ecstatic-morseDylan DPC-0/+4
Work around ICEs during cross-compilation for target, ast, & attr This applies the fix for #72003 to work around #56935 to three more libraries. With these additional fixes, I'm able to use rustfmt_lib from wasm (https://github.com/rust-lang/rustfmt/issues/4132#issuecomment-616587989), which was my goal. To get it working locally and to test, I copied the `.cargo/registry/src` and applied the fix and replaced the reference in my project: ``` toml [replace] "rustc-ap-rustc_span:656.0.0" = { path = "../rustc-ap-rustc_span" } "rustc-ap-rustc_target:656.0.0" = { path = "../rustc-ap-rustc_target" } "rustc-ap-rustc_ast:656.0.0" = { path = "../rustc-ap-rustc_ast" } "rustc-ap-rustc_attr:656.0.0" = { path = "../rustc-ap-rustc_attr" } ```
2020-05-08Work around ICEs during cross-compilationCameron Taggart-0/+4
2020-05-08Adjust cfg(version) to lang team decisionmibac138-3/+7
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.