Skip to content

forbid manually impl'ing one of an object type's marker traits - #57352

Merged
bors merged 2 commits into
rust-lang:masterfrom
arielb1:no-manual-markers
Jan 15, 2019
Merged

forbid manually impl'ing one of an object type's marker traits#57352
bors merged 2 commits into
rust-lang:masterfrom
arielb1:no-manual-markers

Conversation

@arielb1

Copy link
Copy Markdown
Contributor

This shouldn't break compatibility for crates that do not use
feature(optin_builtin_traits), because as the test shows, it is
only possible to impl a marker trait for a trait object in the crate the
marker trait is defined in, which must define
feature(optin_builtin_traits).

Fixes#56934.

r? @nikomatsakis

@rust-highfiverust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jan 5, 2019
@nikomatsakis

Copy link
Copy Markdown
Contributor

@bors r+

@bors

bors commented Jan 8, 2019

Copy link
Copy Markdown
Collaborator

📌 Commit d78ced24c31946782efaadbf31c735eb3390c652 has been approved by nikomatsakis

@borsbors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jan 8, 2019
@bors

bors commented Jan 10, 2019

Copy link
Copy Markdown
Collaborator

⌛ Testing commit d78ced24c31946782efaadbf31c735eb3390c652 with merge 04934f8c9b17eb17f295e06f10f1ed4098776bab...

@bors

bors commented Jan 10, 2019

Copy link
Copy Markdown
Collaborator

💔 Test failed - status-appveyor

@borsbors added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Jan 10, 2019
@emilyalbini

Copy link
Copy Markdown
Member

@bors retry
AppVeyor... what's wrong with you today?

@borsbors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jan 10, 2019
@CentrilCentril mentioned this pull request Jan 13, 2019
@CentrilCentril mentioned this pull request Jan 13, 2019
@CentrilCentril mentioned this pull request Jan 13, 2019
@Centril

Copy link
Copy Markdown
Contributor

@bors r-

Failed in rollup, #57576 (comment).

(Try --bless, might help...)

@borsbors added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Jan 13, 2019
@arielb1

Copy link
Copy Markdown
ContributorAuthor

At least this isn't a order randomization problem :-).

This shouldn't break compatibility for crates that do not use
`feature(optin_builtin_traits)`, because as the test shows, it is
only possible to impl a marker trait for a trait object in the crate the
marker trait is defined in, which must define
`feature(optin_builtin_traits)`.
Fixesrust-lang#56934
@arielb1

Copy link
Copy Markdown
ContributorAuthor

@bors r=nikomatsakis

@bors

bors commented Jan 14, 2019

Copy link
Copy Markdown
Collaborator

📌 Commit d38a59f has been approved by nikomatsakis

@borsbors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Jan 14, 2019
Centril added a commit to Centril/rust that referenced this pull request Jan 15, 2019
…tsakis
forbid manually impl'ing one of an object type's marker traits
This shouldn't break compatibility for crates that do not use
`feature(optin_builtin_traits)`, because as the test shows, it is
only possible to impl a marker trait for a trait object in the crate the
marker trait is defined in, which must define
`feature(optin_builtin_traits)`.
Fixesrust-lang#56934.
r? @nikomatsakis
@CentrilCentril mentioned this pull request Jan 15, 2019
Centril added a commit to Centril/rust that referenced this pull request Jan 15, 2019
…tsakis
forbid manually impl'ing one of an object type's marker traits
This shouldn't break compatibility for crates that do not use
`feature(optin_builtin_traits)`, because as the test shows, it is
only possible to impl a marker trait for a trait object in the crate the
marker trait is defined in, which must define
`feature(optin_builtin_traits)`.
Fixesrust-lang#56934.
r? @nikomatsakis
@CentrilCentril mentioned this pull request Jan 15, 2019
bors added a commit that referenced this pull request Jan 15, 2019
Rollup of 7 pull requests
Successful merges:
- #57253 (Make privacy checking, intrinsic checking and liveness checking incremental)
- #57352 (forbid manually impl'ing one of an object type's marker traits)
- #57537 (Small perf improvement for fmt)
- #57579 (Add core::iter::once_with())
- #57587 (Add 'rustc-env:RUST_BACKTRACE=0' to const-pat-ice test)
- #57608 (Simplify 'product' factorial example)
- #57614 ([rustdoc] Fix crates filtering box not being filled)
Failed merges:
r? @ghost
Centril added a commit to Centril/rust that referenced this pull request Jan 15, 2019
…tsakis
forbid manually impl'ing one of an object type's marker traits
This shouldn't break compatibility for crates that do not use
`feature(optin_builtin_traits)`, because as the test shows, it is
only possible to impl a marker trait for a trait object in the crate the
marker trait is defined in, which must define
`feature(optin_builtin_traits)`.
Fixesrust-lang#56934.
r? @nikomatsakis
@CentrilCentril mentioned this pull request Jan 15, 2019
bors added a commit that referenced this pull request Jan 15, 2019
Rollup of 8 pull requests
Successful merges:
- #56044 (Drop partially bound function parameters in the expected order)
- #57352 (forbid manually impl'ing one of an object type's marker traits)
- #57456 (RawVec doesn't always abort on allocation errors)
- #57467 (Implement `check_attribute` to forbid `#[allow_internal_unsafe]`)
- #57579 (Add core::iter::once_with())
- #57587 (Add 'rustc-env:RUST_BACKTRACE=0' to const-pat-ice test)
- #57608 (Simplify 'product' factorial example)
- #57614 ([rustdoc] Fix crates filtering box not being filled)
Failed merges:
r? @ghost
@bors
bors merged commit d38a59f into rust-lang:masterJan 15, 2019
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@arielb1@nikomatsakis@bors@emilyalbini@Centril@rust-highfive