зеркало из https://github.com/mozilla/gecko-dev.git
servo: Merge #2320 - Prevent unused result warning in codegen. Always expect success for now (from glennw:codegen-warnings); r=jdm
Is it reasonable to always expect success here for now? Fixes #2246. Source-Repo: https://github.com/servo/servo Source-Revision: 310d2a19bbc1b8933f05cbd77c79df155ac00d94
This commit is contained in:
Родитель
03eea17bbc
Коммит
1e040c311c
|
@ -5341,7 +5341,7 @@ class GlobalGenRoots():
|
|||
trace = [CGGeneric(string.Template('''impl JSTraceable for ${name} {
|
||||
fn trace(&self, tracer: *mut JSTracer) {
|
||||
unsafe {
|
||||
self.encode(&mut *tracer);
|
||||
self.encode(&mut *tracer).ok().expect("failed to encode");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче