Skip to content

Commit

Permalink
pw_tokenizer: Add #[used] to token Rust database entries
Browse files Browse the repository at this point in the history
Change-Id: Iddfb07fd8bdb6c3d85035f6b19f2c011821b98d4
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/189293
Commit-Queue: Erik Gilling <konkers@google.com>
Reviewed-by: Aaron Green <aarongreen@google.com>
  • Loading branch information
konkers authored and CQ Bot Account committed Jan 26, 2024
1 parent 45be7b1 commit 9ab076f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pw_tokenizer/rust/pw_tokenizer_macro.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ fn token_backend(domain: &str, string: &str) -> TokenStream2 {
// This is currently manually verified to be correct.
// TODO: b/287132907 - Add integration tests for token database.
#[link_section = #section ]
#[used]
static #ident: TokenEntry = TokenEntry {
magic: #TOKENIZER_ENTRY_MAGIC,
token: #hash,
Expand Down

0 comments on commit 9ab076f

Please sign in to comment.