Skip to content
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

Remove use of on_unimplemented #24694

Merged
merged 2 commits into from Nov 9, 2019
Merged

Remove use of on_unimplemented #24694

merged 2 commits into from Nov 9, 2019

Conversation

@SimonSapin
Copy link
Member

SimonSapin commented Nov 8, 2019

It errors in today’s Nightly:

error[E0557]: feature has been removed
 --> components/script/lib.rs:9:12
  |
9 | #![feature(on_unimplemented)]
  |            ^^^^^^^^^^^^^^^^ feature has been removed

error[E0658]: this is an internal attribute that will never be stable
  --> components/script/dom/bindings/conversions.rs:77:1
   |
77 | #[rustc_on_unimplemented(message = "The IDL interface `{Self}` is not derived from `{T}`.")]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: for more information, see https://github.com/rust-lang/rust/issues/29642
   = help: add `#![feature(rustc_attrs)]` to the crate attributes to enable

error: aborting due to 2 previous errors
SimonSapin added 2 commits Nov 8, 2019
It errors in today’s Nightly:

```rust
error[E0557]: feature has been removed
 --> components/script/lib.rs:9:12
  |
9 | #![feature(on_unimplemented)]
  |            ^^^^^^^^^^^^^^^^ feature has been removed

error[E0658]: this is an internal attribute that will never be stable
  --> components/script/dom/bindings/conversions.rs:77:1
   |
77 | #[rustc_on_unimplemented(message = "The IDL interface `{Self}` is not derived from `{T}`.")]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: for more information, see rust-lang/rust#29642
   = help: add `#![feature(rustc_attrs)]` to the crate attributes to enable

error: aborting due to 2 previous errors
```
@SimonSapin
Copy link
Member Author

SimonSapin commented Nov 8, 2019

(Are Homu commands ignored in a merged PR? #24689 (comment))

@bors-servo treeclosed-

@@ -6,7 +6,6 @@
#![feature(core_intrinsics)]
#![feature(drain_filter)]
#![feature(inner_deref)]
#![feature(on_unimplemented)]

This comment has been minimized.

@jdm

jdm Nov 8, 2019

Member

If we use the rustc_attrs feature, can we keep using rustc_on_unimplemented?

This comment has been minimized.

@SimonSapin

SimonSapin Nov 8, 2019

Author Member

I haven’t tried, but the wording of the error message seems fairly strong in suggesting we shouldn’t? It would also not-prevent the use of many other attributes.

@jdm jdm self-assigned this Nov 8, 2019
@jdm
Copy link
Member

jdm commented Nov 9, 2019

@bors-servo
Copy link
Contributor

bors-servo commented Nov 9, 2019

📌 Commit 94b19be has been approved by jdm

@bors-servo
Copy link
Contributor

bors-servo commented Nov 9, 2019

Testing commit 94b19be with merge e5689df...

bors-servo added a commit that referenced this pull request Nov 9, 2019
Remove use of on_unimplemented

It errors in today’s Nightly:

```rust
error[E0557]: feature has been removed
 --> components/script/lib.rs:9:12
  |
9 | #![feature(on_unimplemented)]
  |            ^^^^^^^^^^^^^^^^ feature has been removed

error[E0658]: this is an internal attribute that will never be stable
  --> components/script/dom/bindings/conversions.rs:77:1
   |
77 | #[rustc_on_unimplemented(message = "The IDL interface `{Self}` is not derived from `{T}`.")]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: for more information, see rust-lang/rust#29642
   = help: add `#![feature(rustc_attrs)]` to the crate attributes to enable

error: aborting due to 2 previous errors
```
@bors-servo
Copy link
Contributor

bors-servo commented Nov 9, 2019

☀️ Test successful - linux-rel-css, linux-rel-wpt, status-taskcluster
Approved by: jdm
Pushing e5689df to master...

@bors-servo bors-servo merged commit 94b19be into master Nov 9, 2019
3 checks passed
3 checks passed
Community-TC (pull_request) TaskGroup: success
Details
Taskcluster (pull_request) TaskGroup: success
Details
homu Test successful
Details
@bors-servo bors-servo deleted the rustup branch Nov 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

4 participants
You can’t perform that action at this time.