Skip to content

Make &foo[] syntax issue a warning (but still work) #22502

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
Feb 19, 2015

Conversation

nikomatsakis
Copy link
Contributor

This PR converts many but not all of the uses in the codebase. As a result building rust issues a LOT of warnings. I didn't have time to fix all those...I'll try to fix more but I thought it made sense to post the PR anyway.

@rust-highfive
Copy link
Contributor

r? @pnkfelix

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

@nikomatsakis
Copy link
Contributor Author

cc #21879
cc @bluss

@aturon
Copy link
Member

aturon commented Feb 18, 2015

LGTM. In many cases the [..] probably isn't needed, but we can migrate these gradually (and it's hard to do automatically).

@bors: r+ 9ea84ae

alexcrichton added a commit to alexcrichton/rust that referenced this pull request Feb 19, 2015
Conflicts:
	src/libcollections/slice.rs
	src/libcollections/str.rs
	src/librustc/middle/lang_items.rs
	src/librustc_back/rpath.rs
	src/librustc_typeck/check/regionck.rs
	src/libstd/ffi/os_str.rs
	src/libsyntax/diagnostic.rs
	src/libsyntax/parse/parser.rs
	src/libsyntax/util/interner.rs
	src/test/run-pass/regions-refcell.rs
@bluss
Copy link
Member

bluss commented Feb 19, 2015

👍 heroic

@bors bors merged commit 9ea84ae into rust-lang:master Feb 19, 2015
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.

6 participants