Skip to content

Fix some filename related ICEs in rustc - #13531

Closed
alexcrichton wants to merge 3 commits into
rust-lang:masterfrom
alexcrichton:fix-some-ices
Closed

Fix some filename related ICEs in rustc#13531
alexcrichton wants to merge 3 commits into
rust-lang:masterfrom
alexcrichton:fix-some-ices

Conversation

@alexcrichton

Copy link
Copy Markdown
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.
Closesrust-lang#12865
When an error is encountered when writing dependencies, this presents a nicer
error rather than an ICE.
Closesrust-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.
Closesrust-lang#11107
bors added a commit that referenced this pull request Apr 24, 2014
@borsbors 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
Fixesrust-lang#13531
changelog: none
Sign up for freeto 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

@alexcrichton@bors