| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2023-11-21 | Fix `clippy::needless_borrow` in the compiler | Nilstrieb | -1/+1 | |
| `x clippy compiler -Aclippy::all -Wclippy::needless_borrow --fix`. Then I had to remove a few unnecessary parens and muts that were exposed now. | ||||
| 2023-03-22 | rustc: Remove unused `Session` argument from some attribute functions | Vadim Petrochenkov | -2/+2 | |
| 2022-11-29 | Avoid unnecessary `MetaItem`/`Attribute` conversions. | Nicholas Nethercote | -3/+8 | |
| `check_builtin_attribute` calls `parse_meta` to convert an `Attribute` to a `MetaItem`, which it then checks. However, many callers of `check_builtin_attribute` start with a `MetaItem`, and then convert it to an `Attribute` by calling `cx.attribute(meta_item)`. This `MetaItem` to `Attribute` to `MetaItem` conversion is silly. This commit adds a new function `check_builtin_meta_item`, which can be called instead from these call sites. `check_builtin_attribute` also now calls it. The commit also renames `check_meta` as `check_attr` to better match its arguments. | ||||
| 2021-12-15 | Add a lint for duplicated attributes. | Ethiraric | -2/+33 | |
| 2020-08-30 | mv compiler to compiler/ | mark | -0/+12 | |
