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

Tracking issue for renaming crates inside compiler directory #76425

Closed
49 tasks
Dylan-DPC-zz opened this issue Sep 7, 2020 · 11 comments
Closed
49 tasks

Tracking issue for renaming crates inside compiler directory #76425

Dylan-DPC-zz opened this issue Sep 7, 2020 · 11 comments
Labels
C-tracking-issue Category: An issue tracking the progress of sth. like the implementation of an RFC S-waiting-on-team Status: Awaiting decision from the relevant subteam (see the T-<team> label). T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@Dylan-DPC-zz
Copy link

This issue tracks the progress of renaming compiler crates from rustc_xyz to xyz. Each crate will be renamed in a separate PR or in combination with other smaller unrelated crates to avoid conflicts and cause an avalanche of conflicts (such as #74862)

List of compiler/ crates:

  • rustc_apfloat -> apfloat
  • rustc (this will remain the same and will be renamed if needed at a later stage)
  • rustc_arena -> arena
  • rustc_ast -> ast
  • rustc_ast_lowering -> ast_lowering
  • rustc_ast_passes -> ast_passes
  • rustc_ast_pretty -> ast_pretty
  • rustc_attr -> attr
  • rustc_builtin_macros -> builtin_macros
  • rustc_codegen_llvm -> codegen_llvm
  • rustc_codegen_ssa -> codegen_ssa
  • rustc_data_structures -> data_structures
  • rustc_driver -> driver
  • rustc_error_codes -> error_codes
  • rustc_errors -> errors
  • rustc_expand -> expand
  • rustc_feature -> feature
  • rustc_fs_util -> fs_util
  • rustc_graphviz -> graphviz
  • rustc_hir -> hir
  • rustc_hir_pretty -> hir_pretty
  • rustc_incremental -> incremental
  • rustc_index -> index
  • rustc_infer -> infer
  • rustc_interface -> interface
  • rustc_lexer -> lexer
  • rustc_lint -> lint
  • rustc_macros -> macros
  • rustc_metadata -> metadata
  • rustc_middle -> middle
  • rustc_mir -> mir
  • rustc_mir_build -> mir_build
  • rustc_parse -> parse
  • rustc_parse_format -> parse_format
  • rustc_passes -> passes
  • rustc_plugin_impl -> plugin_impl
  • rustc_privacy -> privacy
  • rustc_query_system -> query_system
  • rustc_resolve -> resolve
  • rustc_save_analysis -> save_analysis
  • rustc_serialize -> serialize
  • rustc_session -> session
  • rustc_span -> span
  • rustc_symbol_mangling -> symbol_mangling
  • rustc_target -> target
  • rustc_trait_selection -> trait_selection
  • rustc_traits -> traits
  • rustc_ty -> ty
  • rustc_typeck -> typeck

References:

MCP
Zulip discussion

Notes

This will be a long-term effort that will make the structure look inconsistent (some crates will have the prefix while the others won't) till all the crates are renamed
An alternative idea suggested was to rename the paths without renaming the name of the crate (thus keeping the imports same as earlier) but it was concluded that

It would be weird for the crate and directory to have different names; that kind of goes against the objective of making things a bit more idiomatic

If anyone wants to work on this as well, please get in touch first (on zulip if possible) to avoid conflict-hell

PRs:

@Dylan-DPC-zz Dylan-DPC-zz added the C-tracking-issue Category: An issue tracking the progress of sth. like the implementation of an RFC label Sep 7, 2020
@jyn514 jyn514 changed the title Renaming crates inside compiler directory Tracking issue for renaming crates inside compiler directory Sep 7, 2020
@Dylan-DPC-zz Dylan-DPC-zz added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Sep 7, 2020
@jyn514
Copy link
Member

jyn514 commented Sep 7, 2020

I'm still not sure it makes sense to rename the crates one at a time ... it would be very inconsistent during the transition.

@ehuss
Copy link
Contributor

ehuss commented Sep 7, 2020

I'm a bit confused, where was it decided that the rustc_ prefix should be removed? I personally find it helpful, as it very clearly indicates which parts are crates from the compiler "proper", and which are from external crates. Also, a lot of these names seem like they could introduce ambiguity.

@jyn514
Copy link
Member

jyn514 commented Sep 7, 2020

@ehuss
Copy link
Contributor

ehuss commented Sep 7, 2020

I saw that discussion. The only comments from the compiler team were:

oli: we could start with just renaming the directories but keeping the crate names
pnkfelix: ...discussing tests
petrochenkov: Many of the crate names are too generic for that, IMO. ... I like it as is, personally.

@mark-i-m
Copy link
Member

mark-i-m commented Sep 7, 2020

You might want to cc the original threads to make sure people see this.

I pass my cloak to you @Dylan-DPC. May the force be with you!

@petrochenkov
Copy link
Contributor

@ehuss

I'm a bit confused, where was it decided that the rustc_ prefix should be removed?

No, it wasn't decided.

@petrochenkov
Copy link
Contributor

My arguments for keeping the status quo (besides avoiding the churn) is what ehuss said in #76425 (comment) basically.

@Dylan-DPC-zz
Copy link
Author

I'll leave this issue open (and blocked) till we have a clearer decision

@Dylan-DPC-zz Dylan-DPC-zz added the S-blocked Status: Blocked on something else such as an RFC or other implementation work. label Sep 7, 2020
@spastorino
Copy link
Member

Should we label as S-waiting-on-team? or if not maybe we should nominate so this is discussed on next compiler meeting.

@Dylan-DPC-zz
Copy link
Author

yeahh i'm okay with that

@spastorino spastorino added S-waiting-on-team Status: Awaiting decision from the relevant subteam (see the T-<team> label). and removed S-blocked Status: Blocked on something else such as an RFC or other implementation work. labels Oct 12, 2020
@pnkfelix
Copy link
Member

pnkfelix commented Nov 5, 2020

we've subsequently discussed this in a couple different T-compiler meetings. @nikomatsakis and @pnkfelix have decided that we're not going to do this. At least, not now

@pnkfelix pnkfelix closed this as completed Nov 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-tracking-issue Category: An issue tracking the progress of sth. like the implementation of an RFC S-waiting-on-team Status: Awaiting decision from the relevant subteam (see the T-<team> label). T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

7 participants