about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMalo Jaffré <jaffre.malo@gmail.com>2017-12-30 19:58:37 +0100
committerMalo Jaffré <jaffre.malo@gmail.com>2018-01-01 14:44:10 +0100
commit0b177b4185f3e0d30ae2f269e847292815af37ae (patch)
treea0e2195a881c2a9f37bcc9733333c04cc787c8cc
parentbc1dda43ecef0a83ea1d3b92159a8848d2d99b82 (diff)
downloadrust-0b177b4185f3e0d30ae2f269e847292815af37ae.tar.gz
rust-0b177b4185f3e0d30ae2f269e847292815af37ae.zip
Remove a test blocking the update of the `log` crate
It tested #44953.
`log` macros in newer versions are no longer recursive, so these duplicated
error messages (about unstable feature uses) previously occurring at each
level of recursion are no longer possible, even with the fix by #45540.
Furthermore this test breaks when multiple versions of `log` are in the
sysroot (`log 0.3.9` depends on`log 0.4.1`)
-rw-r--r--src/test/ui-fulldeps/issue-44953/issue-44953.rs20
-rw-r--r--src/test/ui-fulldeps/issue-44953/issue-44953.stderr19
2 files changed, 0 insertions, 39 deletions
diff --git a/src/test/ui-fulldeps/issue-44953/issue-44953.rs b/src/test/ui-fulldeps/issue-44953/issue-44953.rs
deleted file mode 100644
index de798e2cf0b..00000000000
--- a/src/test/ui-fulldeps/issue-44953/issue-44953.rs
+++ /dev/null
@@ -1,20 +0,0 @@
-// Copyright 2016 The Rust Project Developers. See the COPYRIGHT
-// file at the top-level directory of this distribution and at
-// http://rust-lang.org/COPYRIGHT.
-//
-// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
-// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
-// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
-// option. This file may not be copied, modified, or distributed
-// except according to those terms.
-//
-
-
-#![feature(proc_macro)]
-#![allow(unused_macros)]
-
-#[macro_use] extern crate log; //~ ERROR use of unstable library feature
-
-pub fn main() {
-    info!("This is a log message.");
-}
diff --git a/src/test/ui-fulldeps/issue-44953/issue-44953.stderr b/src/test/ui-fulldeps/issue-44953/issue-44953.stderr
deleted file mode 100644
index e0e96ec3f4f..00000000000
--- a/src/test/ui-fulldeps/issue-44953/issue-44953.stderr
+++ /dev/null
@@ -1,19 +0,0 @@
-error: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? (see issue #27812)
-  --> $DIR/issue-44953.rs:16:14
-   |
-16 | #[macro_use] extern crate log; //~ ERROR use of unstable library feature
-   |              ^^^^^^^^^^^^^^^^^
-   |
-   = help: add #![feature(rustc_private)] to the crate attributes to enable
-
-error: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? (see issue #27812)
-  --> $DIR/issue-44953.rs:19:5
-   |
-19 |     info!("This is a log message.");
-   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-   |
-   = help: add #![feature(rustc_private)] to the crate attributes to enable
-   = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
-
-error: aborting due to 2 previous errors
-