0
0
Fork 0
mirror of https://github.com/denoland/rusty_v8.git synced 2025-01-12 09:04:02 -05:00

Revert "Fix rustdoc warnings (#526)" (#528)

This reverts commit 58ca728c5f.

The commit passed CI but it's causing `cargo test` to fail locally for
me. This is with rustc 1.47.0.
This commit is contained in:
Ben Noordhuis 2020-11-17 00:23:32 +01:00 committed by GitHub
parent 58ca728c5f
commit 0915d14efd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 5 deletions

View file

@ -57,9 +57,7 @@ impl BigInt {
/// specified list of digits/words. /// specified list of digits/words.
/// The resulting number is calculated as: /// The resulting number is calculated as:
/// ///
/// ```
/// (-1)^sign_bit * (words[0] * (2^64)^0 + words[1] * (2^64)^1 + ...) /// (-1)^sign_bit * (words[0] * (2^64)^0 + words[1] * (2^64)^1 + ...)
/// ```
pub fn new_from_words<'s>( pub fn new_from_words<'s>(
scope: &mut HandleScope<'s>, scope: &mut HandleScope<'s>,
sign_bit: bool, sign_bit: bool,

View file

@ -503,7 +503,7 @@ impl_partial_eq! { ObjectTemplate for Template use identity }
/// and "instance" for the instance object created above. The function /// and "instance" for the instance object created above. The function
/// and the instance will have the following properties: /// and the instance will have the following properties:
/// ///
/// ```javascript,ignore /// ```ignore
/// func_property in function == true; /// func_property in function == true;
/// function.func_property == 1; /// function.func_property == 1;
/// ///
@ -547,7 +547,7 @@ impl_partial_eq! { ObjectTemplate for Template use identity }
/// The Child function and Child instance will have the following /// The Child function and Child instance will have the following
/// properties: /// properties:
/// ///
/// ```javascript,ignore /// ```ignore
/// child_func.prototype.__proto__ == function.prototype; /// child_func.prototype.__proto__ == function.prototype;
/// child_instance.instance_accessor calls 'InstanceAccessorCallback' /// child_instance.instance_accessor calls 'InstanceAccessorCallback'
/// child_instance.instance_property == 3; /// child_instance.instance_property == 3;

View file

@ -77,7 +77,7 @@ impl Promise {
unsafe { v8__Promise__HasHandler(&*self) } unsafe { v8__Promise__HasHandler(&*self) }
} }
/// Returns the content of the Promise Result. The Promise must not /// Returns the content of the [[PromiseResult]] field. The Promise must not
/// be pending. /// be pending.
pub fn result<'s>(&self, scope: &mut HandleScope<'s>) -> Local<'s, Value> { pub fn result<'s>(&self, scope: &mut HandleScope<'s>) -> Local<'s, Value> {
unsafe { scope.cast_local(|_| v8__Promise__Result(&*self)) }.unwrap() unsafe { scope.cast_local(|_| v8__Promise__Result(&*self)) }.unwrap()