Skip to content

fix a bug; then prevent reintroduction of similar bugs #77

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

Merged
merged 2 commits into from
Aug 23, 2015

Conversation

tromey
Copy link
Contributor

@tromey tromey commented Jun 17, 2015

This series starts by fixing a bug I found. An unbound variable was referenced.

Then it proceeds to make such bugs harder to introduce, by requiring a clean byte-compile; and then by using lexbind to get even better checking from the compiler.

@rust-highfive
Copy link

r? @nikomatsakis

(rust_highfive has picked a reviewer for you, use r? to override)

@tromey
Copy link
Contributor Author

tromey commented Jun 21, 2015

Note that this pull request may need a tweak depending on whether #78 goes in first.

@tromey
Copy link
Contributor Author

tromey commented Jul 6, 2015

This one will require some changes given recent pulls.

@MicahChalmer
Copy link
Contributor

I definitely agree with the ideas here. @tromey if you rebase/fix this, I'd like to merge it.

@tromey tromey force-pushed the fix-byte-compiler-add-lexbind branch from 89def67 to f6b20f7 Compare August 19, 2015 14:43
tromey added 2 commits August 20, 2015 09:39
Emacs 24 introduces lexical binding, which should be preferred for new
code.  This enables it for rust-mode.  The code continues to work fine
on pre-24 Emacs, and it won't be difficult for this to remain true.  One
concrete advantage of lexical binding is that it lets the byte-compiler
generate better warnings in some cases; here it found a couple of unused
variables.
@tromey tromey force-pushed the fix-byte-compiler-add-lexbind branch from f6b20f7 to 866df37 Compare August 20, 2015 15:41
@tromey
Copy link
Contributor Author

tromey commented Aug 20, 2015

@MicahChalmer - I've updated the branch.

MicahChalmer added a commit that referenced this pull request Aug 23, 2015
add lexical binding and have tests check for byte compiler warnings
@MicahChalmer MicahChalmer merged commit c801dda into rust-lang:master Aug 23, 2015
@tromey tromey deleted the fix-byte-compiler-add-lexbind branch February 29, 2016 18:11
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.

4 participants