mirror of
https://github.com/servo/servo.git
synced 2025-06-17 21:04:28 +00:00
Avoid marking codegen method bodies as unsafe twice `CGAbstractMethod` takes a couple boolean parameters, among others: * `extern`: will mark the method as `unsafe` and `extern` * `unsafe`: will wrap the method body in an `unsafe` block Passing both as `True` should not mark it as `unsafe` twice. Example from a generated `HTMLCollectionBinding.rs`: Before: ``` unsafe extern fn get_length(..) -> u8 { unsafe { // code here } } ``` After ``` unsafe extern fn get_length(..) -> u8 { // code here } ``` <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7196) <!-- Reviewable:end --> |
||
---|---|---|
.. | ||
codegen | ||
callback.rs | ||
cell.rs | ||
conversions.rs | ||
error.rs | ||
global.rs | ||
js.rs | ||
mod.rs | ||
num.rs | ||
proxyhandler.rs | ||
refcounted.rs | ||
str.rs | ||
structuredclone.rs | ||
trace.rs | ||
utils.rs |