Commit ce2eb73
Improve the namespacing selected by rustc used for gencode types in errors.
We create an 'entry point' .rs file which collects all of the other files (one .rs per input .proto file) and re-emits them. Today this causes error messages that have an `internal_do_not_use` in the namespace. By pulling it in as not-pub it causes the compiler to not use the implementation-detail module in the spelling of the types in error messages.
PiperOrigin-RevId: 8900197331 parent 32ed4a5 commit ce2eb73
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
142 | | - | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
143 | 144 | | |
144 | 145 | | |
| 146 | + | |
145 | 147 | | |
146 | 148 | | |
147 | 149 | | |
| |||
0 commit comments