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

Cleaned up trans_fail(), per eddyb request. #12636

Merged
merged 1 commit into from
Mar 2, 2014
Merged

Cleaned up trans_fail(), per eddyb request. #12636

merged 1 commit into from
Mar 2, 2014

Conversation

chromatic
Copy link
Contributor

This removes some unused code and simplifies the remaining code.

let sess = bcx.sess();
let loc = sess.parse_sess.cm.lookup_char_pos(sp.lo);
let V_filename = C_cstr(bcx.ccx(),
token::intern_and_get_ident(loc.file.name));
Copy link
Member

Choose a reason for hiding this comment

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

This can probably be one line (the column limit is 100 chars).

(At least, token should line up with bcx.)

(PS. sorry for sending you down a rabbit hole. :) )

@chromatic
Copy link
Contributor Author

This looks nicer with your indentation suggestion, @huonw. I can't reproduce the Travis CI failure locally though.

bors added a commit that referenced this pull request Mar 2, 2014
Cleaned up trans_fail(), per eddyb request.

Reviewed-by: huonw
@bors bors merged commit e2afa1c into rust-lang:master Mar 2, 2014
@chromatic chromatic deleted the fixup_trans_fail branch March 2, 2014 07:02
bors added a commit to rust-lang-ci/rust that referenced this pull request Jul 25, 2022
complete raw identifier with "r#" prefix

Fix rust-lang#12148

Escape Names and Paths used in `insert_text`/`insert_snippet` while rendering the completion items.
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.

3 participants