Skip to content

google.protobuf.BoolValue compiles to super::bool #1309

@daft-panda

Description

@daft-panda

Bug Report

google.protobuf.BoolValue compiles to super::bool in the generated rust file, which the compiler cannot find. Should likely be bool.

  
1941 |         ) -> std::result::Result<tonic::Response<super::bool>, tonic::Status> {
     |                                                         ^^^^ not found in `super`
     |
help: consider importing this builtin type
     |
1677 +     use std::primitive::bool;
     |
help: if you import `bool`, refer to it directly
     |
1941 -         ) -> std::result::Result<tonic::Response<super::bool>, tonic::Status> {
1941 +         ) -> std::result::Result<tonic::Response<bool>, tonic::Status> {

Version

├── tonic v0.14.0
├── tonic-prost v0.14.0
│   └── tonic v0.14.0 (*)
├── tonic-types v0.14.0
│   └── tonic v0.14.0 (*)
├── tonic-web v0.14.0
│   ├── tonic v0.14.0 (*)
└── tonic-prost-build v0.14.0
    └── tonic-build v0.14.0

├── prost v0.14.1
│   └── prost-derive v0.14.1 (proc-macro)
├── prost-types v0.14.1
│   └── prost v0.14.1 (*)
├── tonic-prost v0.14.0
│   ├── prost v0.14.1 (*)
│   ├── prost v0.14.1 (*)
│   ├── prost-types v0.14.1 (*)
└── tonic-prost-build v0.14.0
    ├── prost-build v0.14.1
    │   ├── prost v0.14.1
    │   │   └── prost-derive v0.14.1 (proc-macro) (*)
    │   ├── prost-types v0.14.1 (*)
    ├── prost-types v0.14.1 (*)

Platform

Linux rusty 6.14.0-24-generic #24-Ubuntu SMP PREEMPT_DYNAMIC Sun Jun 15 11:18:07 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux

Crates

tonic-types = "0.14.0"
tonic = { version = "0.14", features = ["tls-webpki-roots"] }
tonic-web = "0.14"
tonic-prost = "0.14"
prost = "0.14"
prost-types = "0.14"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions