Commit Graph

12 Commits

Author SHA1 Message Date
Jack Huey 82a42a8c73 Fully stabilize NLL 2022-06-03 17:16:41 -04:00
Andy Russell eba7b2e50e replace dynamic library module with libloading 2021-12-06 12:03:47 -05:00
Camille GILLOT 5997ba0be5 Move rustc_middle::middle::cstore to rustc_session. 2021-10-03 16:08:51 +02:00
Aaron Hill dce938053a Remove Session.used_attrs and move logic to CheckAttrVisitor
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-08-21 13:27:27 -05:00
bjorn3 0a32ef8096 Replace #[plugin_registrar] with exporting __rustc_plugin_registrar 2021-08-10 14:20:48 +02:00
Camille GILLOT e297df62c3 Use () for plugin_registrar_fn. 2021-05-12 13:58:43 +02:00
Camille GILLOT bb0668138f Remove hir::Item::attrs. 2021-03-09 19:27:50 +01:00
Camille GILLOT 09aadf2734 Only store a LocalDefId in hir::Item.
Items are guaranteed to be HIR owner.
2021-02-15 19:32:10 +01:00
Camille GILLOT 3e6d2967e5 Store ForeignItem in a side table. 2020-11-26 21:29:27 +01:00
Erik Hofmayer de60043a75 /nightly/nightly-rustc 2020-09-23 21:51:56 +02:00
Erik Hofmayer 6785e43937 Updated html_root_url for compiler crates 2020-09-23 21:14:43 +02:00
mark c11a3894e6 mv compiler to compiler/ 2020-08-30 18:45:07 +03:00