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

Fix some filename related ICEs in rustc #13531

Closed
wants to merge 3 commits into from

Conversation

alexcrichton
Copy link
Member

See the commits for the affected issues.

Many of the instances of setting a global error variable ended up leaving a
dangling pointer into free'd memory. This changes the method of error
transmission to strdup any error and "relinquish ownership" to rustc when it
gets an error. The corresponding Rust code will then free the error as
necessary.

Closes rust-lang#12865
When an error is encountered when writing dependencies, this presents a nicer
error rather than an ICE.

Closes rust-lang#13517
The filestem of the desired output isn't necessarily a valid crate id, and
calling unwrap() will trigger an ICE in rustc. This tries a little harder to
infer a "valid crate id" from a crate, with an eventual fallback to a generic
crate id if alll else fails.

Closes rust-lang#11107
bors added a commit that referenced this pull request Apr 24, 2014
See the commits for the affected issues.
@bors bors closed this Apr 24, 2014
@alexcrichton alexcrichton deleted the fix-some-ices branch April 24, 2014 22:14
flip1995 pushed a commit to flip1995/rust that referenced this pull request Oct 18, 2024
Only emit `manual_c_str_literals` in >= Edition 2021

Fixes rust-lang#13531

changelog: none
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.

2 participants