8000 Rollup of 12 pull requests by tmandry · Pull Request #65075 · rust-lang/rust · GitHub
[go: up one dir, main page]

Skip to content

Rollup of 12 pull requests #65075

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 38 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
8e3b9d2
Stabilize todo macro
Jun 15, 2019
560bf1b
Update src/libcore/macros.rs
Sep 4, 2019
711f673
Update macros.rs
Sep 4, 2019
445e735
Prevent rustdoc feature to be passed down to doctests
GuillaumeGomez Sep 25, 2019
366fdeb
Add new rustdoc-ui test to ensuire that rustdoc feature isn't passed …
GuillaumeGomez Sep 30, 2019
2ab7a67
Replace mentions of IRC with Discord
Oct 2, 2019
a336536
Set RUST_BACKTRACE=0 in tests that include a backtrace in stderr
Aaron1011 Oct 2, 2019
a8b2fe0
[RFC 2091] Add #[track_caller] attribute.
ayosec Jul 20, 2019
a8d70d1
Add visit_projection_elem method to visitors
spastorino Oct 2, 2019
e9deff0
track_caller run-pass test, lint cleanup, PR review.
anp Oct 3, 2019
1e78d99
track_caller feature gate starts in 1.40.0.
anp Oct 3, 2019
287ceed
Deprecate `#![plugin]` and `#[plugin_registrar]`.
Centril Sep 21, 2019
1b8ec97
plugin_registrary: use normal deprecation instead of hard coded warning.
Centril Oct 3, 2019
da86007
Mark #![feature(track_caller)] as incomplete.
anp Oct 3, 2019
8ac9104
track_caller error numbers and text.
anp Oct 3, 2019
9e301d1
track_caller tests account for incomplete feature warning.
anp Oct 3, 2019
d1f95ef
--bless ui-fulldeps tests
Centril Oct 3, 2019
d1310dc
proc_macro: Add `Span::mixed_site` exposing `macro_rules` hygiene
petrochenkov Sep 22, 2019
4396a1c
add regression test for #60218
nikomatsakis Sep 20, 2019
3a4921c
The crux of the bug fix.
pnkfelix Sep 27, 2019
a18d424
Allocate a new diagnostic for defaulted type parameters cannot use `S…
pnkfelix Sep 27, 2019
e86af1b
Add long error explanation for E0556
GuillaumeGomez Oct 3, 2019
1d49f9a
update ui tests
GuillaumeGomez Oct 3, 2019
126bf3b
typo: fix typo in E0392
mathstuf Oct 3, 2019
b9ed642
Make visit_projection iterative
spastorino Oct 2, 2019
e443e1b
Regression tests.
pnkfelix Sep 27, 2019
2d5f4df
Rollup merge of #61879 - stjepang:stabilize-todo, r=withoutboats
tmandry Oct 3, 2019
ae41bcd
Rollup merge of #64675 - Centril:deprecate-plugin, r=oli-obk
tmandry Oct 3, 2019
a647b74
Rollup merge of #64690 - petrochenkov:mixed, r=dtolnay
tmandry Oct 3, 2019
b6d8169
Rollup merge of #64706 - nikomatsakis:issue-60218-test-case, r=centril
tmandry Oct 3, 2019
cd0028e
Rollup merge of #64741 - GuillaumeGomez:prevent-rustdoc-feature-docte…
tmandry Oct 3, 2019
4cc2872
Rollup merge of #64842 - pnkfelix:fix-issue-61631-self-in-type-param-…
tmandry Oct 3, 2019
51dd307
Rollup merge of #65004 - BO41:mentions, r=alexcrichton
tmandry Oct 3, 2019
772f689
Rollup merge of #65018 - Aaron1011:fix/backtrace-stderr, r=nikomatsakis
tmandry Oct 3, 2019
6d6a3fb
Rollup merge of #65037 - anp:track-caller, r=oli-obk
tmandry Oct 3, 2019
c086b9f
Rollup merge of #65055 - GuillaumeGomez:long-err-explanation-E0556, r…
tmandry Oct 3, 2019
a9244f7
Rollup merge of #65056 - spastorino:place-mut-visitor-adjusts, r=oli-obk
tmandry Oct 3, 2019
5264e69
Rollup merge of #65057 - mathstuf:fix-warning-typo, r=Centril
tmandry Oct 3, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
plugin_registrary: use normal deprecation instead of hard coded warning.
  • Loading branch information
Centril committed Oct 3, 2019
commit 1b8ec975fc15434b58d5d3db8304170c9c6ebf1a
12 changes: 10 additions & 2 deletions src/libsyntax/feature_gate/builtin_attrs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -278,13 +278,21 @@ pub const BUILTIN_ATTRIBUTES: &[BuiltinAttribute] = &[
),

// Plugins:
ungated!(plugin_registrar, Normal, template!(Word)),
(
sym::plugin_registrar, Normal, template!(Word),
Gated(
Stability::Deprecated("https://github.com/rust-lang/rust/issues/29597", None),
sym::plugin_registrar,
"compiler plugins are deprecated",
cfg_fn!(plugin_registrar)
)
),
(
sym::plugin, CrateLevel, template!(List: "name|name(args)"),
Gated(
Stability::Deprecated("https://github.com/rust-lang/rust/issues/29597", None),
sym::plugin,
"compiler plugins are deprecated and will be removed in 1.44.0",
"compiler plugins are deprecated",
cfg_fn!(plugin)
)
),
Expand Down
4 changes: 0 additions & 4 deletions src/libsyntax/feature_gate/check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -311,10 +311,6 @@ impl<'a> Visitor<'a> for PostExpansionVisitor<'a> {
if attr::contains_name(&i.attrs[..], sym::plugin_registrar) {
gate_feature_post!(&self, plugin_registrar, i.span,
"compiler plugins are experimental and possibly buggy");
self.parse_sess.span_diagnostic.span_warn(
i.span,
"`#[plugin_registrar]` is deprecated and will be removed in 1.44.0",
);
}
if attr::contains_name(&i.attrs[..], sym::start) {
gate_feature_post!(&self, start, i.span,
Expand Down
5 changes: 2 additions & 3 deletions src/test/ui-fulldeps/gated-plugin.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// ignore-tidy-linelength
// aux-build:attr-plugin-test.rs

#![plugin(attr_plugin_test)]
//~^ ERROR compiler plugins are deprecated and will be removed in 1.44.0
//~| WARN use of deprecated attribute `plugin`: compiler plugins are deprecated and will be removed in 1.44.0
//~^ ERROR compiler plugins are deprecated
//~| WARN use of deprecated attribute `plugin`: compiler plugins are deprecated

fn main() {}
8 changes: 4 additions & 4 deletions src/test/ui-fulldeps/gated-plugin.stderr
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
error[E0658]: compiler plugins are deprecated and will be removed in 1.44.0
--> $DIR/gated-plugin.rs:4:1
error[E0658]: compiler plugins are deprecated
--> $DIR/gated-plugin.rs:3:1
|
LL | #![plugin(attr_plugin_test)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: for more information, see https://github.com/rust-lang/rust/issues/29597
= help: add `#![feature(plugin)]` to the crate attributes to enable

warning: use of deprecated attribute `plugin`: compiler plugins are deprecated and will be removed in 1.44.0. See https://github.com/rust-lang/rust/issues/29597
--> $DIR/gated-plugin.rs:4:1
warning: use of deprecated attribute `plugin`: compiler plugins are deprecated. See https://github.com/rust-lang/rust/issues/29597
--> $DIR/gated-plugin.rs:3:1
|
LL | #![plugin(attr_plugin_test)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui-fulldeps/macro-crate-rlib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
#![feature(plugin)]
#![plugin(rlib_crate_test)]
//~^ ERROR: plugin `rlib_crate_test` only found in rlib format, but must be available in dylib format
//~| WARN use of deprecated attribute `plugin`: compiler plugins are deprecated and will be removed in 1.44.0
//~| WARN use of deprecated attribute `plugin`: compiler plugins are deprecated

fn main() {}
2 changes: 1 addition & 1 deletion src/test/ui-fulldeps/macro-crate-rlib.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ error[E0457]: plugin `rlib_crate_test` only found in rlib format, but must be av
LL | #![plugin(rlib_crate_test)]
| ^^^^^^^^^^^^^^^

warning: use of deprecated attribute `plugin`: compiler plugins are deprecated and will be removed in 1.44.0. See https://github.com/rust-lang/rust/issues/29597
warning: use of deprecated attribute `plugin`: compiler plugins are deprecated. See https://github.com/rust-lang/rust/issues/29597
--> $DIR/macro-crate-rlib.rs:6:1
|
LL | #![plugin(rlib_crate_test)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,13 @@

// check-pass

#![feature(test)]
#![feature(test, plugin_registrar)]
#![warn(unused_attributes, unknown_lints)]

// Exception, a gated and deprecated attribute.

#![plugin_registrar] //~ WARN unused attribute

// UNGATED WHITE-LISTED BUILT-IN ATTRIBUTES

#![warn(x5400)] //~ WARN unknown lint: `x5400`
Expand All @@ -43,7 +47,6 @@
#![deny(x5100)] //~ WARN unknown lint: `x5100`
#![macro_use] // (allowed if no argument; see issue-43160-gating-of-macro_use.rs)
#![macro_export] //~ WARN unused attribute
#![plugin_registrar] //~ WARN unused attribute
// skipping testing of cfg
// skipping testing of cfg_attr
#![main] //~ WARN unused attribute
Expand Down
Loading
0