add some missing #[track_caller]

This commit is contained in:
Jacob Lifshay 2025-03-19 17:10:51 -07:00
parent d453755bb2
commit 920d8d875f
Signed by: programmerjake
SSH key fingerprint: SHA256:HnFTLGpSm4Q4Fj502oCFisjZSoakwEuTsJJMSke63RQ

View file

@ -2174,6 +2174,7 @@ impl ModuleBuilder {
.builder_extern_body() .builder_extern_body()
.verilog_name = name.intern(); .verilog_name = name.intern();
} }
#[track_caller]
pub fn parameter(&self, name: impl AsRef<str>, value: ExternModuleParameterValue) { pub fn parameter(&self, name: impl AsRef<str>, value: ExternModuleParameterValue) {
let name = name.as_ref(); let name = name.as_ref();
self.impl_ self.impl_
@ -2186,6 +2187,7 @@ impl ModuleBuilder {
value, value,
}); });
} }
#[track_caller]
pub fn parameter_int(&self, name: impl AsRef<str>, value: impl Into<BigInt>) { pub fn parameter_int(&self, name: impl AsRef<str>, value: impl Into<BigInt>) {
let name = name.as_ref(); let name = name.as_ref();
let value = value.into(); let value = value.into();
@ -2199,6 +2201,7 @@ impl ModuleBuilder {
value: ExternModuleParameterValue::Integer(value), value: ExternModuleParameterValue::Integer(value),
}); });
} }
#[track_caller]
pub fn parameter_str(&self, name: impl AsRef<str>, value: impl AsRef<str>) { pub fn parameter_str(&self, name: impl AsRef<str>, value: impl AsRef<str>) {
let name = name.as_ref(); let name = name.as_ref();
let value = value.as_ref(); let value = value.as_ref();
@ -2212,6 +2215,7 @@ impl ModuleBuilder {
value: ExternModuleParameterValue::String(value.intern()), value: ExternModuleParameterValue::String(value.intern()),
}); });
} }
#[track_caller]
pub fn parameter_raw_verilog(&self, name: impl AsRef<str>, raw_verilog: impl AsRef<str>) { pub fn parameter_raw_verilog(&self, name: impl AsRef<str>, raw_verilog: impl AsRef<str>) {
let name = name.as_ref(); let name = name.as_ref();
let raw_verilog = raw_verilog.as_ref(); let raw_verilog = raw_verilog.as_ref();