about summary refs log tree commit diff
path: root/compiler/rustc_hir/src/target.rs
AgeCommit message (Collapse)AuthorLines
2023-12-15Fix enforcement of generics for associated itemsMichael Goulet-0/+36
2023-09-26Don't store lazyness in DefKindMichael Goulet-1/+1
2023-08-07Store the laziness of type aliases in the DefKindLeón Orell Valerian Liehr-1/+1
2023-07-08Replace RPITIT current impl with new strategy that lowers as a GATSantiago Pastorino-10/+1
2023-02-14Add `of_trait` to DefKind::Impl.Camille GILLOT-1/+1
2022-09-09Handle generic parameters.Camille GILLOT-2/+7
2022-09-09Lower RPITIT to ImplTraitPlaceholder itemMichael Goulet-0/+1
2022-09-09RPITIT placeholder itemsMichael Goulet-0/+3
2022-08-11Check attributes on struct expression fields.Eric Huss-0/+2
Attributes on struct expression fields were not being checked for validity. This adds the fields as HIR nodes so that `CheckAttrVisitor` can visit those nodes to check their attributes.
2022-08-11Check attributes on pattern fields.Eric Huss-0/+2
Attributes on pattern struct fields were not being checked for validity. This adds the fields as HIR nodes so that the `CheckAttrVisitor` can visit those nodes to check their attributes.
2022-08-02Add items to `DocAliasBadLocation` check error match armhdelc-1/+1
- Added `Impl`, `Closure`, ForeignMod` targets - `Target::name` changed for `Target::Impl` - Error output for `Target::ForeignMod` changed to "foreign module"
2022-08-02Make `Target::name` method pass by copyhdelc-3/+3
2022-08-02Refactor `Display` impl for `Target` to `Target::name` methodhdelc-45/+45
2022-04-09add comment about restriction of Target::from_def_kindMiguel Guarniz-0/+1
2022-04-08add mapping from DefKind to Target and remove more ItemLikeVisitor implsMiguel Guarniz-0/+24
Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com>
2022-03-19Give more details in `Display` for `hir::Target`Scott McMurray-1/+5
Made because I was making a code change and got a very confusing "should be applied to a method, not a method" error. ``` error[E0718]: `into_try_type` language item must be applied to a method --> library\core\src\ops\try_trait.rs:352:32 | 352 | #[cfg_attr(not(bootstrap), lang = "into_try_type")] | ^^^^^^^^^^^^^^^^^^^^^^ attribute should be applied to a method, not a method ```
2021-08-28Treat macros as HIR itemsinquisitivecrystal-0/+1
2021-02-09Visit more targets when checking attrsRyan Levick-0/+2
2021-02-01Fixed #[inline] to be warned in fields, arms, macro defsDanuel-0/+6
Add visitors for checking #[inline] Add visitors for checking #[inline] with struct field Fix test for #[inline] Add visitors for checking #[inline] with #[macro_export] macro Add visitors for checking #[inline] without #[macro_export] macro Add use alias with Visitor Fix lint error Reduce unnecessary variable Co-authored-by: LingMan <LingMan@users.noreply.github.com> Change error to warning Add warning for checking field, arm with #[allow_internal_unstable] Add name resolver Formatting Formatting Fix error fixture Add checking field, arm, macro def
2020-11-29passes: prohibit attrs on generic paramsDavid Wood-0/+23
This commit modifies the `check_attr` pass so that attribute placement on generic parameters is checked for validity. Signed-off-by: David Wood <david@davidtw.co>
2020-11-26Remove ForeignMod struct.Camille GILLOT-1/+1
2020-10-03Prevent #[doc(alias = "...")] at crate levelGuillaume Gomez-2/+2
2020-08-30mv compiler to compiler/mark-0/+127