Skip to content

Instantly share code, notes, and snippets.

View GuillaumeGomez's full-sized avatar

Guillaume Gomez GuillaumeGomez

View GitHub Profile
thread '<unnamed>' panicked at 'index out of bounds: the len is 10 but the index is 10', /Users/imperio/rust/rust/src/libcore/slice/mod.rs:2049:10
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: std::panicking::rust_panic_with_hook
5: std::panicking::continue_panic_fmt
6: rust_begin_unwind
> ./x.py test src/tools/linkchecker/ --stage 1 --jobs 2
Updating only changed submodules
Submodules updated in 0.07 seconds
Finished dev [unoptimized] target(s) in 0.31s
Linkcheck (x86_64-apple-darwin)
Building stage0 std artifacts (x86_64-apple-darwin -> x86_64-apple-darwin)
Finished release [optimized] target(s) in 0.27s
Copying stage0 std from stage0 (x86_64-apple-darwin -> x86_64-apple-darwin / x86_64-apple-darwin)
Building stage0 test artifacts (x86_64-apple-darwin -> x86_64-apple-darwin)
Finished release [optimized] target(s) in 0.25s
error: internal compiler error: librustc/ty/query/mod.rs:99: tcx.visibility(DefId(0/0:1271 ~ std[8787]::error[0]::{{impl}}[24])) unsupported by its crate
thread '<unnamed>' panicked at 'Box<Any>', librustc_errors/lib.rs:554:9
stack backtrace:
0: 0x10e2b201f - std::sys::unix::backtrace::tracing::imp::unwind_backtrace::hd92542854e000f20
1: 0x10e28d35d - std::sys_common::backtrace::print::h653444b1d6bb6216
2: 0x10e2bc8c3 - std::panicking::default_hook::{{closure}}::h10a6c0bbaae6a970
3: 0x10e2bc64c - std::panicking::default_hook::h05719557e0e1f7a4
4: 0x10e2bcfbb - std::panicking::rust_panic_with_hook::h69af1f0ea2f5b1de
5: 0x10df280b3 - std::panicking::begin_panic::h6770a56d75767460
thread #1, queue = 'com.apple.main-thread'
frame #0: 0x00007fffc5d75bf2 libsystem_kernel.dylib`__psynch_cvwait + 10
frame #1: 0x00007fffc5e617fa libsystem_pthread.dylib`_pthread_cond_wait + 712
frame #2: 0x0000000100076ab0 buttons_attribute-844e393f5b6949c4`std::sys::unix::condvar::Condvar::wait_timeout::heed57de3b66accdf at condvar.rs:161 [opt]
frame #3: 0x0000000100078f69 buttons_attribute-844e393f5b6949c4`std::thread::park_timeout::h88478994a67aec48 [inlined] std::sys_common::condvar::Condvar::wait_timeout::hd9cde47d5740e15f at condvar.rs:61 [opt]
frame #4: 0x0000000100078f5e buttons_attribute-844e393f5b6949c4`std::thread::park_timeout::h88478994a67aec48 [inlined] std::sync::condvar::Condvar::wait_timeout::h59cb163cfc4c8fc8 at condvar.rs:415 [opt]
frame #5: 0x0000000100078f44 buttons_attribute-844e393f5b6949c4`std::thread::park_timeout::h88478994a67aec48 at mod.rs:893 [opt]
frame #6: 0x000000010006a6e7 buttons_attribute-844e393f5b6949c4`std::sync::mpsc::blocking::WaitToken::wa
Updating only changed submodules
Submodules updated in 0.05 seconds
Finished dev [unoptimized] target(s) in 0.27s
Building stage0 std artifacts (x86_64-apple-darwin -> x86_64-apple-darwin)
Finished release [optimized] target(s) in 0.24s
Copying stage0 std from stage0 (x86_64-apple-darwin -> x86_64-apple-darwin / x86_64-apple-darwin)
Building stage0 test artifacts (x86_64-apple-darwin -> x86_64-apple-darwin)
Finished release [optimized] target(s) in 0.23s
Copying stage0 test from stage0 (x86_64-apple-darwin -> x86_64-apple-darwin / x86_64-apple-darwin)
Building stage0 compiler artifacts (x86_64-apple-darwin -> x86_64-apple-darwin)
[package]
name = "gtk-test"
version = "0.1.0"
authors = ["The Gtk-rs Project Developers"]
[dependencies]
enigo = "^0.0.11"
gdk = "^0.8.0"
glib-sys = "^0.6.0"
gtk = "^0.4.0"
extern crate enigo;
extern crate gdk;
extern crate glib_sys;
extern crate gtk;
use enigo::{
Enigo,
KeyboardControllable,
MouseButton,
./x.py test src/test/rustdoc/ --stage 1
Finished dev [unoptimized] target(s) in 0.0 secs
Synchronizing submodule url for 'src/compiler-rt'
Synchronizing submodule url for 'src/doc/book'
Synchronizing submodule url for 'src/doc/nomicon'
Synchronizing submodule url for 'src/doc/reference'
Synchronizing submodule url for 'src/jemalloc'
Synchronizing submodule url for 'src/liblibc'
Synchronizing submodule url for 'src/llvm'
Synchronizing submodule url for 'src/rt/hoedown'
/*
* Copyright (c) 2017 Boucher, Antoni <bouanto@zoho.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
* the Software, and to permit persons to whom the Software is furnished to do so,
* subject to the following conditions:
*
use std::io;
use std::collections::{HashSet, HashMap};
macro_rules! print_err {
($($arg:tt)*) => (
{
use std::io::Write;
writeln!(&mut ::std::io::stderr(), $($arg)*).ok();
}
)