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

Don't special case the Self parameter by name #63463

Merged
merged 4 commits into from
Aug 19, 2019

Conversation

matthewjasper
Copy link
Contributor

This results in a couple of small diagnostic regressions. They could be avoided by keeping the special case just for diagnostics, but that seems worse.

closes #50125
cc #60869

@petrochenkov petrochenkov added the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Aug 11, 2019
@matthewjasper
Copy link
Contributor Author

@bors try

@bors
Copy link
Contributor

bors commented Aug 13, 2019

⌛ Trying commit 4657ad1 with merge bbd6744...

bors added a commit that referenced this pull request Aug 13, 2019
Don't special case the `Self` parameter by name

This results in a couple of small diagnostic regressions. They could be avoided by keeping the special case just for diagnostics, but that seems worse.

closes #50125
cc #60869
@bors
Copy link
Contributor

bors commented Aug 13, 2019

☀️ Try build successful - checks-azure
Build commit: bbd6744

@matthewjasper
Copy link
Contributor Author

@rust-timer build

@petrochenkov
Copy link
Contributor

@rust-timer build bbd6744

AFAIK, rust-timer cannot detect the commit automatically.

@rust-timer
Copy link
Collaborator

Success: Queued bbd6744 with parent 60960a2, comparison URL.

@@ -2568,7 +2573,7 @@ impl<'tcx> TyCtxt<'tcx> {

#[inline]
pub fn mk_self_type(self) -> Ty<'tcx> {
self.mk_ty_param(0, kw::SelfUpper.as_interned_str())
self.types.self_param
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like mk_self_type isn't commonly used, perhaps it can be removed in favor of using self.types.self_param directly?

@petrochenkov petrochenkov added S-waiting-on-perf Status: Waiting on a perf run to be completed. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Aug 13, 2019
@rust-timer
Copy link
Collaborator

Finished benchmarking try commit bbd6744, comparison URL.

@matthewjasper matthewjasper added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-perf Status: Waiting on a perf run to be completed. labels Aug 13, 2019
Use this to simplify the object safety code a bit.
@matthewjasper matthewjasper added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Aug 18, 2019
@petrochenkov
Copy link
Contributor

@bors r+

@bors
Copy link
Contributor

bors commented Aug 18, 2019

📌 Commit 24587d2 has been approved by petrochenkov

@bors bors 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 18, 2019
@bors
Copy link
Contributor

bors commented Aug 19, 2019

⌛ Testing commit 24587d2 with merge a807902...

bors added a commit that referenced this pull request Aug 19, 2019
Don't special case the `Self` parameter by name

This results in a couple of small diagnostic regressions. They could be avoided by keeping the special case just for diagnostics, but that seems worse.

closes #50125
cc #60869
@bors
Copy link
Contributor

bors commented Aug 19, 2019

☀️ Test successful - checks-azure
Approved by: petrochenkov
Pushing a807902 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Aug 19, 2019
@bors bors merged commit 24587d2 into rust-lang:master Aug 19, 2019
@matthewjasper matthewjasper deleted the ty_param_cleanup branch August 19, 2019 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: 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.

Clean up the checks for Self type parameters
4 participants