Remove util::breakpoint

This commit is contained in:
Anthony Ramine 2016-07-06 12:04:24 +02:00
parent 23f5264e1c
commit 5f2d5ef748
3 changed files with 4 additions and 10 deletions

View file

@ -96,8 +96,8 @@ use timers::{IsInterval, OneshotTimerCallback, OneshotTimerHandle, OneshotTimers
use tinyfiledialogs::{self, MessageBoxIcon};
use url::Url;
use util::geometry::{self, MAX_RECT};
use util::opts;
use util::prefs::PREFS;
use util::{breakpoint, opts};
use webdriver_handlers::jsval_to_webdriver;
/// Current state of the window object
@ -669,8 +669,9 @@ impl WindowMethods for Window {
}
}
#[allow(unsafe_code)]
fn Trap(&self) {
breakpoint();
unsafe { ::std::intrinsics::breakpoint() }
}
#[allow(unsafe_code)]

View file

@ -6,7 +6,7 @@
#![feature(borrow_state)]
#![feature(box_syntax)]
#![feature(const_fn)]
#![cfg_attr(debug_assertions, feature(core_intrinsics))]
#![feature(core_intrinsics)]
#![feature(custom_attribute)]
#![feature(custom_derive)]
#![feature(fnbox)]

View file

@ -2,7 +2,6 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#![cfg_attr(feature = "servo", feature(core_intrinsics))]
#![cfg_attr(feature = "servo", feature(custom_derive))]
#![cfg_attr(feature = "servo", feature(fnbox))]
#![cfg_attr(feature = "servo", feature(plugin))]
@ -41,12 +40,6 @@ pub mod resource_files;
pub mod thread;
pub mod thread_state;
#[cfg(feature = "servo")]
#[allow(unsafe_code)]
pub fn breakpoint() {
unsafe { ::std::intrinsics::breakpoint() };
}
// Workaround for lack of `ptr_eq` on Arcs...
#[inline]
pub fn arc_ptr_eq<T: 'static>(a: &Arc<T>, b: &Arc<T>) -> bool {