ir: Sanitize base names more aggressively#906
Conversation
|
r? @Manishearth cc @upsuper |
src/ir/ty.rs
Outdated
| return Cow::Borrowed(name) | ||
| } | ||
|
|
||
| Cow::Owned(name.replace(|c| c == ' ' || c == ':' || c == '.' , "_")) |
There was a problem hiding this comment.
Maybe assert that it is a valid identifier after this treatment?
There was a problem hiding this comment.
Or perhaps just replace all non-ident chars?
Manishearth
left a comment
There was a problem hiding this comment.
r=me with fitzgen's assert
9c00e02 to
20f2ed2
Compare
|
@bors-servo r=fitzgen,Manishearth |
|
📌 Commit 20f2ed2 has been approved by |
ir: Sanitize base names more aggressively This fixes stylo build failures when template instantiations tests caused a rust compile error due to a bad test name. This commit makes names better sanitized, preventing similar errors in the future.
|
💔 Test failed - status-travis |
|
@bors-servo retry
|
ir: Sanitize base names more aggressively This fixes stylo build failures when template instantiations tests caused a rust compile error due to a bad test name. This commit makes names better sanitized, preventing similar errors in the future.
|
💔 Test failed - status-travis |
This fixes stylo build failures when template instantiations tests caused a rust compile error due to a bad test name. This commit makes names better sanitized, preventing similar errors in the future.
20f2ed2 to
b2bed30
Compare
|
or maybe I'm just stupid. The assertion doesn't hold for every type because of stuff like @bors-servo r=manishearth,fitzgen |
|
📌 Commit b2bed30 has been approved by |
ir: Sanitize base names more aggressively This fixes stylo build failures when template instantiations tests caused a rust compile error due to a bad test name. This commit makes names better sanitized, preventing similar errors in the future.
|
☀️ Test successful - status-travis |
This fixes stylo build failures when template instantiations tests caused a rust
compile error due to a bad test name.
This commit makes names better sanitized, preventing similar errors in the
future.