about summary refs log tree commit diff
path: root/src/test/run-pass-fulldeps/auxiliary
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2017-02-15 07:57:59 -0800
committerAlex Crichton <alex@alexcrichton.com>2017-03-23 11:28:00 -0700
commite341d603fe7c35ce174bd2e54e47ed6941ea4b03 (patch)
treeb3e32ba82ad906907e681dd4a3ca142c95cc3937 /src/test/run-pass-fulldeps/auxiliary
parent90346eae18e83887517e096c17678a74838ff995 (diff)
downloadrust-e341d603fe7c35ce174bd2e54e47ed6941ea4b03.tar.gz
rust-e341d603fe7c35ce174bd2e54e47ed6941ea4b03.zip
Remove internal liblog
This commit deletes the internal liblog in favor of the implementation that
lives on crates.io. Similarly it's also setting a convention for adding crates
to the compiler. The main restriction right now is that we want compiler
implementation details to be unreachable from normal Rust code (e.g. requires a
feature), and by default everything in the sysroot is reachable via `extern
crate`.

The proposal here is to require that crates pulled in have these lines in their
`src/lib.rs`:

    #![cfg_attr(rustbuild, feature(staged_api, rustc_private))]
    #![cfg_attr(rustbuild, unstable(feature = "rustc_private", issue = "27812"))]

This'll mean that by default they're not using these attributes but when
compiled as part of the compiler they do a few things:

* Mark themselves as entirely unstable via the `staged_api` feature and the
  `#![unstable]` attribute.
* Allow usage of other unstable crates via `feature(rustc_private)` which is
  required if the crate relies on any other crates to compile (other than std).
Diffstat (limited to 'src/test/run-pass-fulldeps/auxiliary')
-rw-r--r--src/test/run-pass-fulldeps/auxiliary/logging_right_crate.rs18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/test/run-pass-fulldeps/auxiliary/logging_right_crate.rs b/src/test/run-pass-fulldeps/auxiliary/logging_right_crate.rs
deleted file mode 100644
index db26b10fc67..00000000000
--- a/src/test/run-pass-fulldeps/auxiliary/logging_right_crate.rs
+++ /dev/null
@@ -1,18 +0,0 @@
-// Copyright 2013-2014 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(rustc_private)]
-
-#[macro_use] extern crate log;
-
-pub fn foo<T>() {
-    fn death() -> isize { panic!() }
-    debug!("{}", (||{ death() })());
-}