Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upConvert imports in generate_imports into one per line, so that it can… #13070
Conversation
| 'dom::types::*', | ||
| 'js::error::throw_type_error', | ||
| 'js::jsapi::JSContext', | ||
| 'js::jsapi::{HandleValue, MutableHandleValue}', | ||
| 'js::jsapi::HandleValue', |
This comment has been minimized.
This comment has been minimized.
| @@ -5321,95 +5324,216 @@ def generate_imports(config, cgthings, descriptors, callbacks=None, dictionaries | |||
|
|
|||
| return CGImports(cgthings, descriptors, callbacks, dictionaries, enums, [ | |||
| 'js', | |||
| 'js::{JS_CALLEE, JSCLASS_GLOBAL_SLOT_COUNT}', | |||
| 'js::{JSCLASS_IS_DOMJSCLASS, JSCLASS_IS_GLOBAL, JSCLASS_RESERVED_SLOTS_MASK}', | |||
| 'js::JS_CALLEE', | |||
This comment has been minimized.
This comment has been minimized.
KiChjang
Aug 27, 2016
Member
_ is greater than C, so this should be put after the js::JSCLASS_* declarations.
| 'js::jsapi::JS_SetImmutablePrototype', | ||
| 'js::jsapi::JS_SetProperty', | ||
| 'js::jsapi::JS_SetReservedSlot', | ||
| 'js::jsapi::JS_SplicePrototype', |
This comment has been minimized.
This comment has been minimized.
| 'std::borrow::ToOwned', | ||
| 'std::cmp', | ||
| 'std::mem', | ||
| 'std::num', | ||
| 'std::os', | ||
| 'std::panic::{self, AssertUnwindSafe}', | ||
| 'std::panic::{self}', |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
tp6vup54
Aug 27, 2016
Author
Contributor
If braces are removed here, there will be an error occurred.
error[E0429]:selfimports are only allowed within a { } list
Seems like the braces cannot be removed?
This comment has been minimized.
This comment has been minimized.
KiChjang
Aug 27, 2016
Member
Ah, right, you need to remove ::{self} entirely, i.e. the final declaration would look like std::panic.
| 'js::jsval::ObjectValue', | ||
| 'js::jsval::ObjectOrNullValue', | ||
| 'js::jsval::PrivateValue', | ||
| 'js::jsval::NullValue', |
This comment has been minimized.
This comment has been minimized.
| 'js::jsval::NullValue', | ||
| 'js::jsval::UndefinedValue', | ||
| 'js::glue::CallJitMethodOp', | ||
| 'js::glue::CallJitGetterOp', |
This comment has been minimized.
This comment has been minimized.
| 'js::glue::NewProxyObject', | ||
| 'js::glue::ProxyTraps', | ||
| 'js::glue::RUST_JSID_IS_STRING', | ||
| 'js::glue::int_to_jsid', |
This comment has been minimized.
This comment has been minimized.
| 'dom::bindings::interface::define_guarded_properties', | ||
| 'dom::bindings::interface::is_exposed_in', | ||
| 'dom::bindings::interface::ConstantVal::IntVal', | ||
| 'dom::bindings::interface::ConstantVal::UintVal', |
This comment has been minimized.
This comment has been minimized.
| 'dom::bindings::interface::ConstantVal::IntVal', | ||
| 'dom::bindings::interface::ConstantVal::UintVal', | ||
| 'dom::bindings::iterable::IteratorType', | ||
| 'dom::bindings::iterable::Iterable', |
This comment has been minimized.
This comment has been minimized.
| 'dom::bindings::js::JS', | ||
| 'dom::bindings::js::Root', | ||
| 'dom::bindings::js::RootedReference', | ||
| 'dom::bindings::js::OptionalRootedReference', |
This comment has been minimized.
This comment has been minimized.
| 'dom::bindings::callback::CallbackContainer', | ||
| 'dom::bindings::callback::CallbackInterface', | ||
| 'dom::bindings::callback::CallbackFunction', | ||
| 'dom::bindings::callback::CallSetup', |
This comment has been minimized.
This comment has been minimized.
| 'dom::bindings::conversions::ConversionResult', | ||
| 'dom::bindings::conversions::DOM_OBJECT_SLOT', | ||
| 'dom::bindings::conversions::IDLInterface', | ||
| 'dom::bindings::conversions::is_array_like', |
This comment has been minimized.
This comment has been minimized.
| 'dom::bindings::conversions::ConversionBehavior', | ||
| 'dom::bindings::conversions::ConversionResult', | ||
| 'dom::bindings::conversions::DOM_OBJECT_SLOT', | ||
| 'dom::bindings::conversions::IDLInterface', |
This comment has been minimized.
This comment has been minimized.
| 'dom::bindings::conversions::native_from_handlevalue', | ||
| 'dom::bindings::conversions::native_from_object', | ||
| 'dom::bindings::conversions::private_from_object', | ||
| 'dom::bindings::conversions::root_from_object', |
This comment has been minimized.
This comment has been minimized.
| 'dom::bindings::codegen::PrototypeList', | ||
| 'dom::bindings::codegen::RegisterBindings', | ||
| 'dom::bindings::codegen::UnionTypes', | ||
| 'dom::bindings::error::Fallible', |
This comment has been minimized.
This comment has been minimized.
| 'dom::browsingcontext::BrowsingContext', | ||
| 'mem::heap_size_of_raw_self_and_children', | ||
| 'libc', | ||
| 'util::prefs::PREFS', | ||
| 'script_runtime::{store_panic_result, maybe_take_panic_result}', | ||
| 'script_runtime::store_panic_result', |
This comment has been minimized.
This comment has been minimized.
|
Looks great! All that's left now is to squash your commits into one. |
… easily add new ones with alphabetical order.
|
@bors-servo: r=KiChjang |
|
|
Convert imports in generate_imports into one per line, so that it can… <!-- Please describe your changes on the following line: --> Convert imports in generate_imports into one per line, so that it can easily add new ones with alphabetical order. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #13036 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> … easily add new ones with alphabetical order. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13070) <!-- Reviewable:end -->
|
|
highfive
commented
Aug 27, 2016
|
|
@bors-servo retry |
Convert imports in generate_imports into one per line, so that it can… <!-- Please describe your changes on the following line: --> Convert imports in generate_imports into one per line, so that it can easily add new ones with alphabetical order. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #13036 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> … easily add new ones with alphabetical order. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13070) <!-- Reviewable:end -->
|
|
tp6vup54 commentedAug 27, 2016
•
edited by larsbergstrom
Convert imports in generate_imports into one per line, so that it can easily add new ones with alphabetical order.
./mach build -ddoes not report any errors./mach test-tidydoes not report any errors… easily add new ones with alphabetical order.
This change is