From e25a7d3dd1a98abc9be61cc99a171a2e775177e5 Mon Sep 17 00:00:00 2001 From: Jan de Mooij Date: Tue, 14 Aug 2018 14:24:22 +0200 Subject: [PATCH] Bug 1466128 part 1 - Rename ac.rs to ar.rs. r=jdm Differential Revision: https://phabricator.services.mozilla.com/D3324 --HG-- rename : js/rust/src/ac.rs => js/rust/src/ar.rs extra : rebase_source : 7d6e78d8ccf812347f739852c2d19d08fc5ae96c --- js/rust/src/{ac.rs => ar.rs} | 0 js/rust/src/lib.rs | 2 +- js/rust/src/rust.rs | 2 +- js/rust/tests/callback.rs | 2 +- js/rust/tests/panic.rs | 2 +- js/rust/tests/rooting.rs | 2 +- js/rust/tests/runtime.rs | 2 +- js/rust/tests/typedarray.rs | 4 ++-- js/rust/tests/vec_conversion.rs | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) rename js/rust/src/{ac.rs => ar.rs} (100%) diff --git a/js/rust/src/ac.rs b/js/rust/src/ar.rs similarity index 100% rename from js/rust/src/ac.rs rename to js/rust/src/ar.rs diff --git a/js/rust/src/lib.rs b/js/rust/src/lib.rs index f8df9ea31d60..46722628f008 100644 --- a/js/rust/src/lib.rs +++ b/js/rust/src/lib.rs @@ -23,7 +23,7 @@ extern crate num_traits; #[macro_use] pub mod rust; -pub mod ac; +pub mod ar; pub mod conversions; pub mod error; pub mod glue; diff --git a/js/rust/src/rust.rs b/js/rust/src/rust.rs index 69993caac787..22c3cc6c04b8 100644 --- a/js/rust/src/rust.rs +++ b/js/rust/src/rust.rs @@ -4,7 +4,7 @@ //! Rust wrappers around the raw JS apis -use ac::AutoCompartment; +use ar::AutoCompartment; use libc::c_uint; use std::cell::{Cell, UnsafeCell}; use std::char; diff --git a/js/rust/tests/callback.rs b/js/rust/tests/callback.rs index a8c9972ff6dd..585c06b55007 100644 --- a/js/rust/tests/callback.rs +++ b/js/rust/tests/callback.rs @@ -6,7 +6,7 @@ extern crate js; extern crate libc; -use js::ac::AutoCompartment; +use js::ar::AutoCompartment; use js::jsapi::root::JS::CallArgs; use js::jsapi::root::JS::RealmOptions; use js::jsapi::root::JSContext; diff --git a/js/rust/tests/panic.rs b/js/rust/tests/panic.rs index 616fdd7d733e..d20417b3fefc 100644 --- a/js/rust/tests/panic.rs +++ b/js/rust/tests/panic.rs @@ -25,7 +25,7 @@ fn panic() { ptr::null_mut(), h_option, &c_option); rooted!(in(context) let global_root = global); let global = global_root.handle(); - let _ac = js::ac::AutoCompartment::with_obj(context, global.get()); + let _ac = js::ar::AutoCompartment::with_obj(context, global.get()); let function = JS_DefineFunction(context, global, b"test\0".as_ptr() as *const _, Some(test), 0, 0); diff --git a/js/rust/tests/rooting.rs b/js/rust/tests/rooting.rs index 2a4f147fd471..3f0dc5838795 100644 --- a/js/rust/tests/rooting.rs +++ b/js/rust/tests/rooting.rs @@ -29,7 +29,7 @@ fn rooting() { ptr::null_mut(), h_option, &c_option)); - let _ac = js::ac::AutoCompartment::with_obj(cx, global.get()); + let _ac = js::ar::AutoCompartment::with_obj(cx, global.get()); rooted!(in(cx) let prototype_proto = JS::GetRealmObjectPrototype(cx)); rooted!(in(cx) let proto = JS_NewObjectWithUniqueType(cx, &CLASS as *const _, diff --git a/js/rust/tests/runtime.rs b/js/rust/tests/runtime.rs index 86dd864a2baf..157143707f6d 100644 --- a/js/rust/tests/runtime.rs +++ b/js/rust/tests/runtime.rs @@ -24,7 +24,7 @@ fn runtime() { ptr::null_mut(), h_option, &c_option)); - let _ac = js::ac::AutoCompartment::with_obj(cx, global.get()); + let _ac = js::ar::AutoCompartment::with_obj(cx, global.get()); rooted!(in(cx) let _object = JS_NewObject(cx, &CLASS as *const _)); } diff --git a/js/rust/tests/typedarray.rs b/js/rust/tests/typedarray.rs index d99eab731861..6da9e6d3277e 100644 --- a/js/rust/tests/typedarray.rs +++ b/js/rust/tests/typedarray.rs @@ -24,7 +24,7 @@ fn typedarray() { &JS::RealmOptions::default()) ); - let _ac = js::ac::AutoCompartment::with_obj(cx, global.get()); + let _ac = js::ar::AutoCompartment::with_obj(cx, global.get()); rooted!(in(cx) let mut rval = UndefinedValue()); assert!(rt.evaluate_script(global.handle(), "new Uint8Array([0, 2, 4])", @@ -82,7 +82,7 @@ fn typedarray_update_panic() { &JS::RealmOptions::default()) ); - let _ac = js::ac::AutoCompartment::with_obj(cx, global.get()); + let _ac = js::ar::AutoCompartment::with_obj(cx, global.get()); rooted!(in(cx) let mut rval = ptr::null_mut()); let _ = Uint32Array::create(cx, CreateWith::Slice(&[1, 2, 3, 4, 5]), rval.handle_mut()); typedarray!(in(cx) let mut array: Uint32Array = rval.get()); diff --git a/js/rust/tests/vec_conversion.rs b/js/rust/tests/vec_conversion.rs index fca5d06b60e1..643560b5fbcb 100644 --- a/js/rust/tests/vec_conversion.rs +++ b/js/rust/tests/vec_conversion.rs @@ -5,7 +5,7 @@ #[macro_use] extern crate js; -use js::ac::AutoCompartment; +use js::ar::AutoCompartment; use js::conversions::ConversionBehavior; use js::conversions::ConversionResult; use js::conversions::FromJSValConvertible;