Skip to content

resolve: Remove remaining special cases from built-in macros - #63449

Merged
bors merged 1 commit into
rust-lang:masterfrom
petrochenkov:builtinagain
Aug 12, 2019
Merged

resolve: Remove remaining special cases from built-in macros#63449
bors merged 1 commit into
rust-lang:masterfrom
petrochenkov:builtinagain

Conversation

@petrochenkov

Copy link
Copy Markdown
Contributor

Edition and definition sites of the macros are now also taken from the #[rustc_builtin_macro] definitions in libcore.


The edition switch may be a breaking change for Rustc{Encodable,Decodable} derives if they are used in combination with the unstable crate serialize from sysroot like this

externcrate serialize;use serialize as rustc_serialize;#[derive(RustcEncodable)]structS;

(see the updated ui-fulldeps tests).

@rust-highfive

Copy link
Copy Markdown
Contributor

r? @eddyb

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfiverust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 10, 2019
@Mark-SimulacrumMark-Simulacrum added the relnotes Marks issues that should be documented in the release notes of the next release. label Aug 10, 2019
@Mark-Simulacrum

Copy link
Copy Markdown
Member

Labeling relnotes for the change to Rustc{Encodable, Decodable}.

@eddyb

Copy link
Copy Markdown
Contributor

r=me if the breaking change is unstable-only (i.e. users of the crates.io version of rustc_serialize aren't affected)

@petrochenkov

Copy link
Copy Markdown
ContributorAuthor

@bors r=eddyb

@bors

bors commented Aug 11, 2019

Copy link
Copy Markdown
Collaborator

📌 Commit fa7fe19 has been approved by eddyb

@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 Aug 11, 2019
Centril added a commit to Centril/rust that referenced this pull request Aug 12, 2019
resolve: Remove remaining special cases from built-in macros
Edition and definition sites of the macros are now also taken from the `#[rustc_builtin_macro]` definitions in `libcore`.
---
The edition switch may be a breaking change for `Rustc{Encodable,Decodable}` derives if they are used in combination with the unstable crate `serialize` from sysroot like this
```rust
extern crate serialize;
use serialize as rustc_serialize;
#[derive(RustcEncodable)]
struct S;
```
(see the updated `ui-fulldeps` tests).
@CentrilCentril mentioned this pull request Aug 12, 2019
bors added a commit that referenced this pull request Aug 12, 2019
Rollup of 10 pull requests
Successful merges:
- #62108 (Use sharded maps for queries)
- #63297 (Improve pointer offset method docs)
- #63306 (Adapt AddRetag for shallow retagging)
- #63406 (Suggest using a qualified path in patterns with inconsistent bindings)
- #63431 (Revert "Simplify MIR generation for logical ops")
- #63449 (resolve: Remove remaining special cases from built-in macros)
- #63461 (docs: add stdlib env::var(_os) panic)
- #63473 (Regression test for #56870)
- #63474 (Add tests for issue #53598 and #57700)
- #63480 (Fixes#63477)
Failed merges:
r? @ghost
Centril added a commit to Centril/rust that referenced this pull request Aug 12, 2019
resolve: Remove remaining special cases from built-in macros
Edition and definition sites of the macros are now also taken from the `#[rustc_builtin_macro]` definitions in `libcore`.
---
The edition switch may be a breaking change for `Rustc{Encodable,Decodable}` derives if they are used in combination with the unstable crate `serialize` from sysroot like this
```rust
extern crate serialize;
use serialize as rustc_serialize;
#[derive(RustcEncodable)]
struct S;
```
(see the updated `ui-fulldeps` tests).
@CentrilCentril mentioned this pull request Aug 12, 2019
bors added a commit that referenced this pull request Aug 12, 2019
Rollup of 9 pull requests
Successful merges:
- #62108 (Use sharded maps for queries)
- #63297 (Improve pointer offset method docs)
- #63406 (Suggest using a qualified path in patterns with inconsistent bindings)
- #63431 (Revert "Simplify MIR generation for logical ops")
- #63449 (resolve: Remove remaining special cases from built-in macros)
- #63461 (docs: add stdlib env::var(_os) panic)
- #63473 (Regression test for #56870)
- #63474 (Add tests for issue #53598 and #57700)
- #63480 (Fixes#63477)
Failed merges:
r? @ghost
@Mark-SimulacrumMark-Simulacrum removed the relnotes Marks issues that should be documented in the release notes of the next release. label Aug 12, 2019
@bors
bors merged commit fa7fe19 into rust-lang:masterAug 12, 2019
@petrochenkov
petrochenkov deleted the builtinagain branch February 22, 2025 18:42
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.

5 participants

@petrochenkov@rust-highfive@Mark-Simulacrum@eddyb@bors