about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev@gmail.com>2019-11-17 13:36:13 +0900
committerGitHub <noreply@github.com>2019-11-17 13:36:13 +0900
commit54998d1b3facdb684795c586d7a1e82582e32d27 (patch)
tree700586e9caf0f319ba3e08457582a95e0209ce12 /src/rustllvm/RustWrapper.cpp
parentb83d50d34f1d2917784bce825faa8e0c5ceaa4c9 (diff)
parent857574379310d6ca70d3d44dbf00cc45b23e7eb8 (diff)
downloadrust-54998d1b3facdb684795c586d7a1e82582e32d27.tar.gz
rust-54998d1b3facdb684795c586d7a1e82582e32d27.zip
Rollup merge of #66344 - petrochenkov:noregattr, r=matthewjasper
rustc_plugin: Remove `Registry::register_attribute`

Legacy plugins cannot register inert attributes anymore.

The preferred replacement is to use `register_tool` ([tracking issue](https://github.com/rust-lang/rust/issues/66079)).
```rust
#![register_tool(servo)]

#[servo::must_root]
struct S;
```

The more direct replacement is `register_attribute` ([tracking issue](https://github.com/rust-lang/rust/issues/66080))
```rust
#![register_attr(must_root)]

#[must_root]
struct S;
```
, but it requires registering each attribute individually rather than registering the tool once, and is more likely to be removed rather than stabilized.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions