-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Eliminate crate_id's #14470
Milestone
Comments
1.0 P-backcompat-lang |
Merged
bors
added a commit
that referenced
this issue
Jul 5, 2014
This is an implementation of [RFC 35](https://github.com/rust-lang/rfcs/blob/master/active/0035-remove-crate-id.md). The summary for this PR is the same as that of the RFC, with one addendum: * Removes the `#[crate_id]` attribute and knowledge of versions from rustc. * Added a `#[crate_name]` attribute similar to the old `#[crate_id]` attribute * Output filenames no longer have versions or hashes * Symbols no longer have versions (they still have hashes) * A new flag, `--extern`, is used to override searching for external crates * A new flag, `-C metadata=foo`, used when hashing symbols * [added] An old flag, `--crate-name`, was re purposed to specify the crate name from the command line. I tried to maintain backwards compatibility wherever possible (with warnings being printed). If I missed anywhere, however, please let me know! [breaking-change] Closes #14468 Closes #14469 Closes #14470 Closes #14471
bors
added a commit
to rust-lang-ci/rust
that referenced
this issue
Jun 5, 2023
Always reborrow mutable reference receiver in methods Dependency of rust-lang#14470
bors
added a commit
to rust-lang-ci/rust
that referenced
this issue
Jun 5, 2023
Add bounds for fields in derive macro Dependency of rust-lang#14470
bors
added a commit
to rust-lang-ci/rust
that referenced
this issue
Jun 5, 2023
Compute closure captures This PR: * Computes closure captures and the trait it implements (Fn, FnMut or FnOnce) * Computes data layout of closures * Adds support for closure MIR lowering * Changes the closure type display from `|arg1: ty1, arg2: ty| -> ret` to `impl FnX(arg1: ty1, arg2: ty2) -> ret` fix rust-lang#12297
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
cc #14468
Completely remove the concept of
crate_id
s. In a cargo world, nothing but the crate name matters to rustc. It's not clear yet whethercrate_id
needs to be replaced withcrate_name
, or whether rustc can get by without any of this metadata.Nominating.
The text was updated successfully, but these errors were encountered: