Skip to content

add test case for changing private methods #37124

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 2 commits into from
Oct 19, 2016

Conversation

nikomatsakis
Copy link
Contributor

The goal of this test case is to ensure we are getting the reuse we expect. This targets a particular change where we modify the body of a private inherent method defined on a struct, and looks at different ways we can use that struct.

It checks for when type-checking would be needed as well as the actual reuse achieved.

cc #37121
r? @michaelwoerister

Copy link
Member

@michaelwoerister michaelwoerister left a comment

Choose a reason for hiding this comment

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

lgtm!

use point::Point;

// FIXME(#37121) -- we should not need to typeck this again
#[rustc_dirty(label="TypeckItemBody", cfg="rpass2")]
Copy link
Member

Choose a reason for hiding this comment

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

That fails too? Interesting.

}
}

/// A fn item that reads fields from `Point` but does not invoke methods
Copy link
Member

Choose a reason for hiding this comment

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

The comment should probably say "write" instead of "read".

@michaelwoerister
Copy link
Member

@bors r+ rollup

@bors
Copy link
Collaborator

bors commented Oct 17, 2016

📌 Commit c560ca4 has been approved by michaelwoerister

eddyb added a commit to eddyb/rust that referenced this pull request Oct 19, 2016
…=michaelwoerister

add test case for changing private methods

The goal of this test case is to ensure we are getting the reuse we expect. This targets a particular change where we modify the body of a private inherent method defined on a struct, and looks at different ways we can use that struct.

It checks for when type-checking would be needed as well as the actual reuse achieved.

cc rust-lang#37121
r? @michaelwoerister
eddyb added a commit to eddyb/rust that referenced this pull request Oct 19, 2016
…=michaelwoerister

add test case for changing private methods

The goal of this test case is to ensure we are getting the reuse we expect. This targets a particular change where we modify the body of a private inherent method defined on a struct, and looks at different ways we can use that struct.

It checks for when type-checking would be needed as well as the actual reuse achieved.

cc rust-lang#37121
r? @michaelwoerister
bors added a commit that referenced this pull request Oct 19, 2016
@bors bors merged commit c560ca4 into rust-lang:master Oct 19, 2016
@nikomatsakis nikomatsakis deleted the incr-comp-benchmark branch October 21, 2016 21:09
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants