Skip to content

Commit b292325

Browse files
committed
More debugging.
1 parent 3337d51 commit b292325

File tree

5 files changed

+24
-9
lines changed

5 files changed

+24
-9
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ matrix:
1313
include:
1414
# Images used in testing PR and try-build should be run first.
1515
- env: IMAGE=x86_64-gnu-llvm-3.9 RUST_BACKTRACE=1
16-
if: type = pull_request OR branch = auto
16+
if: branch = auto
1717

1818
- env: IMAGE=dist-x86_64-linux DEPLOY=1
19-
if: branch = try OR branch = auto
19+
if: branch = auto
2020

2121
# "alternate" deployments, these are "nightlies" but have LLVM assertions
2222
# turned on, they're deployed to a different location primarily for
@@ -57,7 +57,7 @@ matrix:
5757
NO_DEBUG_ASSERTIONS=1
5858
os: osx
5959
osx_image: xcode8.3
60-
if: branch = auto
60+
#if: branch = auto
6161
6262
- env: >
6363
RUST_CHECK_TARGET=check

src/bootstrap/mk/Makefile.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ book:
4949
standalone-docs:
5050
$(Q)$(BOOTSTRAP) doc src/doc $(BOOTSTRAP_ARGS)
5151
check:
52-
$(Q)$(BOOTSTRAP) test $(BOOTSTRAP_ARGS)
52+
$(Q)$(BOOTSTRAP) test $(BOOTSTRAP_ARGS) src/test/compile-fail --test-args single-segment
5353
check-aux:
5454
$(Q)$(BOOTSTRAP) test \
5555
src/tools/cargo \

src/ci/run.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ else
105105
return $retval
106106
}
107107

108-
do_make tidy
109-
do_make all
108+
#do_make tidy
109+
#do_make all
110110
do_make "$RUST_CHECK_TARGET"
111111
fi

src/librustc_resolve/resolve_imports.rs

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,11 @@ impl<'a, 'b:'a> ImportResolver<'a, 'b> {
499499
// resolution for it so that later resolve stages won't complain.
500500
self.import_dummy_binding(import);
501501
if !seen_spans.contains(&span) {
502+
info!(
503+
"preparing to import_path_to_string(import={:?}, span={:?})",
504+
import,
505+
span
506+
);
502507
let path = import_path_to_string(&import.module_path[..],
503508
&import.subclass,
504509
span);
@@ -1015,6 +1020,14 @@ impl<'a, 'b:'a> ImportResolver<'a, 'b> {
10151020
fn import_path_to_string(names: &[SpannedIdent],
10161021
subclass: &ImportDirectiveSubclass,
10171022
span: Span) -> String {
1023+
info!(
1024+
"import_path_to_string(names={:?} ({:p}/{}), subclass={:?}, span={:?})",
1025+
names,
1026+
names.as_ptr(),
1027+
names.len(),
1028+
subclass,
1029+
span,
1030+
);
10181031
let pos = names.iter()
10191032
.position(|p| span == p.span && p.node.name != keywords::CrateRoot.name());
10201033
let global = !names.is_empty() && names[0].node.name == keywords::CrateRoot.name();
@@ -1039,11 +1052,12 @@ fn import_path_to_string(names: &[SpannedIdent],
10391052
if names.is_empty() || x.starts_with("::") {
10401053
span_bug!(
10411054
span,
1042-
"invalid name `{}` at {:?}; global = {}, names = {:?}, subclass = {:?}",
1055+
"invalid name `{}` at {:?}; global = {}, names = {:p}/{}, subclass = {:?}",
10431056
x,
10441057
span,
10451058
global,
1046-
names,
1059+
names.as_ptr(),
1060+
names.len(),
10471061
subclass
10481062
);
10491063
}

src/test/compile-fail/rfc-2126-extern-in-paths/single-segment.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
// aux-build:xcrate.rs
12+
// rustc-env:RUST_LOG=info
1213

1314
#![feature(extern_in_paths)]
1415

@@ -20,4 +21,4 @@ use extern::*; //~ ERROR unresolved import `extern::*`
2021
fn main() {
2122
let s = extern::xcrate; //~ ERROR expected value, found module `extern::xcrate`
2223
//~^ NOTE not a value
23-
}
24+
} //~ ERROR must fail kthxbye

0 commit comments

Comments
 (0)