-
Notifications
You must be signed in to change notification settings - Fork 15.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rust: remove extern crate declaration for
std
from generated code
Starting from the 2018 edition of Rust, paths starting with `::` must refer to a crate, so when we refer to `::std` there is no risk of accidental collision with another identifier. Using `::std` instead of `::__std` is useful because it works even when the generated code is in a module rather than directly in the crate root. This allows us to remove one of the post-processing steps from the codegen crate. PiperOrigin-RevId: 702858213
- Loading branch information
1 parent
2ca39a2
commit 6a0ff9d
Showing
2 changed files
with
6 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters