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

This pull request activates hygiene for 'let' bindings. argument bindings come soon #7745

Closed
wants to merge 67 commits into from

Conversation

jbclements
Copy link
Contributor

There are a bunch of commits here, but I believe they're all well-labeled and focused. As I'm leaving now-ish, I'm going to beg for quick review.

mod test {
// just test to see if it compiles:
#[test] fn iterbytes_compiles () {
let a : @IterBytes = @(3,4,5,false);
Copy link
Member

Choose a reason for hiding this comment

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

This probably doesn't compile: it might need an explicit cast (i.e. @(3,4,5,false) as @IterBytes), and may even need the types of the integer literals to be specified (i.e. 1i) but I'm not sure about this one:

rusti> let a: @IterBytes = @(1i, 2i);
<anon>:14:20: 14:27 error: mismatched types: expected `@std::to_bytes::IterBytes:'static` but found `@(<VI0>,<VI1>)` (expected trait std::to_bytes::IterBytes but found @-ptr)
<anon>:14 let a: @IterBytes = @(1, 2);
                              ^~~~~~~

@emberian
Copy link
Member

Overall looks good to me, but this isn't my area of expertise.

@graydon
Copy link
Contributor

graydon commented Jul 12, 2013

Unfortunately this ICEs in my local workspace. Reviewing and diagnosing as best I can..

@jbclements
Copy link
Contributor Author

On Jul 12, 2013, at 8:50 AM, Graydon Hoare wrote:

Unfortunately this ICEs in my local workspace. Reviewing and diagnosing as best I can..

Details? Duplicating your ICE and fixing the bug is my top priority right now.

John

@graydon
Copy link
Contributor

graydon commented Jul 12, 2013

Make check. Ice on compiling stage 2 stdtest.

@jbclements
Copy link
Contributor Author

On Jul 12, 2013, at 9:46 AM, Graydon Hoare wrote:

Make check. Ice on compiling stage 2 stdtest.

Got it. I think I have the fix for this.

(Make check was in the middle of run-fail on my small laptop when I passed out last night.)

John

@jbclements
Copy link
Contributor Author

Successfully rebased, make check succeeds without complaint.

@jbclements
Copy link
Contributor Author

Also, for ease in reviewing: da2ed92 represents the head of this PR (for now, at least)

@graydon graydon mentioned this pull request Jul 29, 2013
@graydon
Copy link
Contributor

graydon commented Jul 29, 2013

Continued in #8103

@graydon graydon closed this Jul 29, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request Oct 7, 2021
Useless exponent

Closes rust-lang#7745

I'm open to some thoughts on dropping the exponents on suggestions when it's zero. I personally don't see any problem on this.

changelog: [`useless_exponent`] suggestion drops exponent when exponent value is zero
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants