Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upmacros: improve `$crate` #37213
Conversation
rust-highfive
assigned
nrc
Oct 16, 2016
jseyfried
changed the title
macros: Improve `$crate`
macros: improve `$crate`
Oct 16, 2016
This comment has been minimized.
This comment has been minimized.
|
cc #35896 |
This comment has been minimized.
This comment has been minimized.
to clarify - this PR doesn't actually allow any changes to the actual importing behaviour of such macros, it just lays internal groundwork to allow this in the future? |
This comment has been minimized.
This comment has been minimized.
|
Right, the only observable change from this PR is restricting where |
This comment has been minimized.
This comment has been minimized.
|
@bors: r+ |
This comment has been minimized.
This comment has been minimized.
|
|
bors
added a commit
that referenced
this pull request
Oct 18, 2016
bors
added a commit
that referenced
this pull request
Oct 19, 2016
bors
added a commit
that referenced
this pull request
Oct 19, 2016
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
|
jseyfried
added some commits
Oct 16, 2016
jseyfried
force-pushed the
jseyfried:refactor_crate_var
branch
from
2676b25
to
8b0c292
Oct 19, 2016
This comment has been minimized.
This comment has been minimized.
|
@bors r=nrc |
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
bors
added a commit
that referenced
this pull request
Oct 19, 2016
This comment has been minimized.
This comment has been minimized.
bors
merged commit 8b0c292
into
rust-lang:master
Oct 19, 2016
1 check passed
homu
Test successful
Details
bluss
added
the
relnotes
label
Oct 19, 2016
jseyfried
deleted the
jseyfried:refactor_crate_var
branch
Oct 19, 2016
mcarton
referenced this pull request
Oct 22, 2016
Merged
Rustup to *rustc 1.14.0-nightly (f09420685 2016-10-20)* and bump to 0.0.96 #1287
This was referenced Oct 22, 2016
jseyfried
referenced this pull request
Oct 25, 2016
Open
Tracking issue for `use $crate;` compatibility warning #37390
This was referenced Nov 7, 2016
bors
added a commit
that referenced
this pull request
Nov 10, 2016
jseyfried
referenced this pull request
Dec 5, 2016
Closed
Miscellaneous cleanup/refactoring in `resolve` and `syntax::ext` #38171
jseyfried
referenced this pull request
Feb 7, 2017
Closed
Tracking issue for "macro naming and modularisation" (RFC #1561) #35896
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
jseyfried commentedOct 16, 2016
•
edited
This PR refactors the implementation of
$crateso that$crateis only allowed at the start of a path (likesuper),$cratework with inter-crate re-exports (groundwork for macro modularization), andThis is a [breaking-change]. For example, the following would break:
r? @nrc