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

Prefer names from outer DefMap over extern prelude #7959

Merged
merged 1 commit into from
Mar 10, 2021
Merged

Prefer names from outer DefMap over extern prelude #7959

merged 1 commit into from
Mar 10, 2021

Conversation

jonas-schievink
Copy link
Contributor

Fixes #7919

Just one more special case, how bad could it be.

bors r+

@bors
Copy link
Contributor

bors bot commented Mar 10, 2021

@bors bors bot merged commit b35559a into rust-lang:master Mar 10, 2021
@jonas-schievink jonas-schievink deleted the extern-prelude-block-scope branch April 7, 2021 15:32
bors bot added a commit that referenced this pull request Apr 9, 2021
8443: Rewrite `#[derive]` removal code to be based on AST r=jonas-schievink a=jonas-schievink

We now remove any `#[derive]` before and including the one we want to expand, in the `macro_arg` query.

The same infra will be needed by attribute macros (except we only remove the attribute we're expanding, not any preceding ones).

Part of #8434 (doesn't implement the cfg-expansion yet, because that's more difficult)

8446: Undo path resolution hack for extern prelude r=jonas-schievink a=jonas-schievink

Reverts the change made in #7959

We don't populate the extern prelude for block DefMaps anymore,
so this is unnecessary

bors r+

Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

use foo::bar is overridden by dependency named bar
1 participant