Skip to content

Commit f5c81e0

Browse files
committedDec 2, 2019
Auto merge of #66944 - Centril:rollup-ojsszx6, r=Centril
Rollup of 7 pull requests Successful merges: - #66346 (Replace .unwrap() with ? in std::os::unix::net) - #66789 (rustc: move mir::SourceScopeLocalData to a field of SourceScopeData.) - #66850 (rustc: hide HirId's fmt::Debug output from -Z span_free_formats.) - #66905 (rustc_plugin: Remove some remaining plugin features) - #66907 (rustc: don't just show raw DefIndex's in BrNamed's fmt::Debug impl.) - #66918 (Add crc and crypto to target feature whitelist on arm) - #66926 (add reusable MachineStop variant to Miri engine error enum) Failed merges: r? @ghost
2 parents 4007d4e + cd47551 commit f5c81e0

File tree

73 files changed

+585
-742
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+585
-742
lines changed
 

‎src/doc/rustc/src/lints/listing/warn-by-default.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -307,18 +307,6 @@ warning: path statement with no effect
307307
|
308308
```
309309

310-
## plugin-as-library
311-
312-
This lint detects when compiler plugins are used as ordinary library in
313-
non-plugin crate. Some example code that triggers this lint:
314-
315-
```rust,ignore
316-
#![feature(plugin)]
317-
#![plugin(macro_crate_test)]
318-
319-
extern crate macro_crate_test;
320-
```
321-
322310
## private-in-public
323311

324312
This lint detects private items in public interfaces not caught by the old implementation. Some

‎src/doc/unstable-book/src/language-features/plugin.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,10 @@ the crate attribute `#![plugin(...)]`. See the
2121
`rustc_driver::plugin` documentation for more about the
2222
mechanics of defining and loading a plugin.
2323

24-
If present, arguments passed as `#![plugin(foo(... args ...))]` are not
25-
interpreted by rustc itself. They are provided to the plugin through the
26-
`Registry`'s `args` method.
27-
2824
In the vast majority of cases, a plugin should *only* be used through
2925
`#![plugin]` and not through an `extern crate` item. Linking a plugin would
3026
pull in all of libsyntax and librustc as dependencies of your crate. This is
31-
generally unwanted unless you are building another plugin. The
32-
`plugin_as_library` lint checks these guidelines.
27+
generally unwanted unless you are building another plugin.
3328

3429
The usual practice is to put compiler plugins in their own crate, separate from
3530
any `macro_rules!` macros or ordinary Rust code meant to be used by consumers

0 commit comments

Comments
 (0)