Skip to content

unbreak freebsd/openbsd/bitrig build after #23316 #23396

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 1 commit into from
Mar 16, 2015

Conversation

semarie
Copy link
Contributor

@semarie semarie commented Mar 15, 2015

@rust-highfive
Copy link
Contributor

r? @aturon

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

@sfackler
Copy link
Member

@bors r+ b94bcbc

@@ -206,7 +206,7 @@ pub fn current_exe() -> io::Result<PathBuf> {
if err != 0 { return Err(io::Error::last_os_error()); }
if sz == 0 { return Err(io::Error::last_os_error()); }
v.set_len(sz as uint - 1); // chop off trailing NUL
Ok(PathBuf::new::<OsString>(&OsStringExt::from_vec(v)))
Ok(PathBuf::new::<OsString>(OsStringExt::from_vec(v)))
Copy link
Member

Choose a reason for hiding this comment

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

For future reference (I only discovered this recently!) this can also be replaced by PathBuf::new(OsString::from_vec(v)) which removes the need for type ascription :)

@bors
Copy link
Collaborator

bors commented Mar 16, 2015

⌛ Testing commit b94bcbc with merge b1eadf3...

@bors
Copy link
Collaborator

bors commented Mar 16, 2015

@bors bors merged commit b94bcbc into rust-lang:master Mar 16, 2015
@semarie semarie deleted the remove-sized-bounds branch March 25, 2015 17:22
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