| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2021-08-21 | Remove `Session.used_attrs` and move logic to `CheckAttrVisitor` | Aaron Hill | -1/+1 | |
| Instead of updating global state to mark attributes as used, we now explicitly emit a warning when an attribute is used in an unsupported position. As a side effect, we are to emit more detailed warning messages (instead of just a generic "unused" message). `Session.check_name` is removed, since its only purpose was to mark the attribute as used. All of the callers are modified to use `Attribute.has_name` Additionally, `AttributeType::AssumedUsed` is removed - an 'assumed used' attribute is implemented by simply not performing any checks in `CheckAttrVisitor` for a particular attribute. We no longer emit unused attribute warnings for the `#[rustc_dummy]` attribute - it's an internal attribute used for tests, so it doesn't mark sense to treat it as 'unused'. With this commit, a large source of global untracked state is removed. | ||||
| 2021-07-06 | Add flag to configure `large_assignments` lint | Tomasz Miąsko | -1/+6 | |
| The `large_assignments` lints detects moves over specified limit. The limit is configured through `move_size_limit = "N"` attribute placed at the root of a crate. When attribute is absent, the lint is disabled. Make it possible to enable the lint without making any changes to the source code, through a new flag `-Zmove-size-limit=N`. For example, to detect moves exceeding 1023 bytes in a cargo crate, including all dependencies one could use: ``` $ env RUSTFLAGS=-Zmove-size-limit=1024 cargo build -vv ``` | ||||
| 2021-07-04 | Combine individual limit queries into single `limits` query | Aaron Hill | -8/+17 | |
| 2021-07-04 | Query-ify global limit attribute handling | Aaron Hill | -20/+19 | |
| 2021-04-20 | Add an attribute to be able to configure the limit | Oli Scherer | -5/+10 | |
| 2020-12-01 | Created NestedMetaItem::name_value_literal_span method | Guillaume Gomez | -2/+1 | |
| 2020-10-26 | Fix typo | Ethan Brierley | -1/+1 | |
| 2020-10-26 | Apply suggested changes | Ethan Brierley | -2/+4 | |
| 2020-10-06 | remove OnlySign in favour of InvalidDigit | Ethan Brierley | -3/+1 | |
| 2020-10-06 | Bring char along with InvalidDigit | Ethan Brierley | -1/+1 | |
| 2020-10-06 | Fill in things needed to stabilize int_error_matching | Ethan Brierley | -3/+5 | |
| 2020-08-30 | mv compiler to compiler/ | mark | -0/+66 | |
