Skip to content

Commit 0f5cbc5

Browse files
committed
---
yaml --- r: 272895 b: refs/heads/beta c: 613f449 h: refs/heads/master i: 272893: 2c84c57 272891: 06d48f3 272887: ec688b5 272879: 2dc961f 272863: e7d4fda 272831: 57e693e 272767: 8b2e31f 272639: 567c99f 272383: 2d448ce
1 parent bad2759 commit 0f5cbc5

File tree

392 files changed

+4102
-6771
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

392 files changed

+4102
-6771
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ refs/tags/0.9: 36870b185fc5f5486636d4515f0e22677493f225
2323
refs/tags/0.10: ac33f2b15782272ae348dbd7b14b8257b2148b5a
2424
refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
2525
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
26-
refs/heads/beta: 81e03236105263c048e113b856399b899e215303
26+
refs/heads/beta: 613f449eddf1f899287b55c16f50f32e78e70aca
2727
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
2828
refs/heads/tmp: e06d2ad9fcd5027bcaac5b08fc9aa39a49d0ecd3
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f

branches/beta/COMPILER_TESTS.md

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -42,43 +42,3 @@ whole, instead of just a few lines inside the test.
4242
* `ignore-test` always ignores the test
4343
* `ignore-lldb` and `ignore-gdb` will skip the debuginfo tests
4444
* `min-{gdb,lldb}-version`
45-
* `should-fail` indicates that the test should fail; used for "meta testing",
46-
where we test the compiletest program itself to check that it will generate
47-
errors in appropriate scenarios. This header is ignored for pretty-printer tests.
48-
49-
## Revisions
50-
51-
Certain classes of tests support "revisions" (as of the time of this
52-
writing, this includes run-pass, compile-fail, run-fail, and
53-
incremental, though incremental tests are somewhat
54-
different). Revisions allow a single test file to be used for multiple
55-
tests. This is done by adding a special header at the top of the file:
56-
57-
```
58-
// revisions: foo bar baz
59-
```
60-
61-
This will result in the test being compiled (and tested) three times,
62-
once with `--cfg foo`, once with `--cfg bar`, and once with `--cfg
63-
baz`. You can therefore use `#[cfg(foo)]` etc within the test to tweak
64-
each of these results.
65-
66-
You can also customize headers and expected error messages to a particular
67-
revision. To do this, add `[foo]` (or `bar`, `baz`, etc) after the `//`
68-
comment, like so:
69-
70-
```
71-
// A flag to pass in only for cfg `foo`:
72-
//[foo]compile-flags: -Z verbose
73-
74-
#[cfg(foo)]
75-
fn test_foo() {
76-
let x: usize = 32_u32; //[foo]~ ERROR mismatched types
77-
}
78-
```
79-
80-
Note that not all headers have meaning when customized too a revision.
81-
For example, the `ignore-test` header (and all "ignore" headers)
82-
currently only apply to the test as a whole, not to particular
83-
revisions. The only headers that are intended to really work when
84-
customized to a revision are error patterns and compiler flags.

branches/beta/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ build.
7777
7878
Download [MinGW from
7979
here](http://mingw-w64.org/doku.php/download/mingw-builds), and choose the
80-
`threads=win32,exceptions=dwarf/seh` flavor when installing. Also, make sure to install to a path without spaces in it. After installing,
80+
`threads=win32,exceptions=dwarf/seh` flavor when installing. After installing,
8181
add its `bin` directory to your `PATH`. This is due to [#28260](https://github.com/rust-lang/rust/issues/28260), in the future,
8282
installing from pacman should be just fine.
8383

branches/beta/RELEASES.md

Lines changed: 16 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
Version 1.7.0 (2016-03-03)
22
==========================
33

4+
Language
5+
--------
6+
7+
* Soundness fixes to the interactions between associated types and
8+
lifetimes, specified in [RFC 1214], [now generate errors][1.7sf] for
9+
code that violates the new rules. This is a significant change that
10+
is known to break existing code, so it has emitted warnings for the
11+
new error cases since 1.4 to give crate authors time to adapt. The
12+
details of what is changing are subtle; read the RFC for more.
13+
414
Libraries
515
---------
616

@@ -49,17 +59,6 @@ Libraries
4959
* [`IntoStringError::into_cstring`]
5060
* [`IntoStringError::utf8_error`]
5161
* `Error for IntoStringError`
52-
* Hashing
53-
* [`std::hash::BuildHasher`]
54-
* [`BuildHasher::Hasher`]
55-
* [`BuildHasher::build_hasher`]
56-
* [`std::hash::BuildHasherDefault`]
57-
* [`HashMap::with_hasher`]
58-
* [`HashMap::with_capacity_and_hasher`]
59-
* [`HashSet::with_hasher`]
60-
* [`HashSet::with_capacity_and_hasher`]
61-
* [`std::collections::hash_map::RandomState`]
62-
* [`RandomState::new`]
6362
* [Validating UTF-8 is faster by a factor of between 7 and 14x for
6463
ASCII input][1.7utf8]. This means that creating `String`s and `str`s
6564
from bytes is faster.
@@ -81,6 +80,9 @@ Libraries
8180
Misc
8281
----
8382

83+
* [The `--error-format=json` flag to `rustc` causes it to emit errors
84+
in JSON format][1.7j]. This is an unstable flag and so also requires
85+
the `-Z unstable-options` flag.
8486
* [When running tests with `--test`, rustdoc will pass `--cfg`
8587
arguments to the compiler][1.7dt].
8688
* [The compiler is built with RPATH information by default][1.7rpa].
@@ -102,12 +104,6 @@ Cargo
102104
Compatibility Notes
103105
-------------------
104106

105-
* Soundness fixes to the interactions between associated types and
106-
lifetimes, specified in [RFC 1214], [now generate errors][1.7sf] for
107-
code that violates the new rules. This is a significant change that
108-
is known to break existing code, so it has emitted warnings for the
109-
new error cases since 1.4 to give crate authors time to adapt. The
110-
details of what is changing are subtle; read the RFC for more.
111107
* [Several bugs in the compiler's visibility calculations were
112108
fixed][1.7v]. Since this was found to break significant amounts of
113109
code, the new errors will be emitted as warnings for several release
@@ -130,6 +126,7 @@ Compatibility Notes
130126
[1.7dta]: https://github.com/rust-lang/rust/pull/30394
131127
[1.7f]: https://github.com/rust-lang/rust/pull/30672
132128
[1.7h]: https://github.com/rust-lang/rust/pull/30818
129+
[1.7j]: https://github.com/rust-lang/rust/pull/30711
133130
[1.7ll]: https://github.com/rust-lang/rust/pull/30663
134131
[1.7m]: https://github.com/rust-lang/rust/pull/30381
135132
[1.7p]: https://github.com/rust-lang/rust/pull/30681
@@ -140,15 +137,11 @@ Compatibility Notes
140137
[1.7utf8]: https://github.com/rust-lang/rust/pull/30740
141138
[1.7v]: https://github.com/rust-lang/rust/pull/29973
142139
[RFC 1214]: https://github.com/rust-lang/rfcs/blob/master/text/1214-projections-lifetimes-and-wf.md
143-
[`BuildHasher::Hasher`]: http://doc.rust-lang.org/nightly/std/hash/trait.Hasher.html
144-
[`BuildHasher::build_hasher`]: http://doc.rust-lang.org/nightly/std/hash/trait.BuildHasher.html#tymethod.build_hasher
140+
[`clone_from_slice`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.clone_from_slice
141+
[`sort_by_key`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.sort_by_key
145142
[`CString::into_bytes_with_nul`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html#method.into_bytes_with_nul
146143
[`CString::into_bytes`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html#method.into_bytes
147144
[`CString::into_string`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html#method.into_string
148-
[`HashMap::with_capacity_and_hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashMap.html#method.with_capacity_and_hasher
149-
[`HashMap::with_hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashMap.html#method.with_hasher
150-
[`HashSet::with_capacity_and_hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.with_capacity_and_hasher
151-
[`HashSet::with_hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.with_hasher
152145
[`IntoStringError::into_cstring`]: http://doc.rust-lang.org/nightly/std/ffi/struct.IntoStringError.html#method.into_cstring
153146
[`IntoStringError::utf8_error`]: http://doc.rust-lang.org/nightly/std/ffi/struct.IntoStringError.html#method.utf8_error
154147
[`Ipv4Addr::is_broadcast`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_broadcast
@@ -161,12 +154,10 @@ Compatibility Notes
161154
[`Ipv6Addr::is_multicast`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv6Addr.html#method.is_multicast
162155
[`Ipv6Addr::is_unspecified`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv6Addr.html#method.is_unspecified
163156
[`Path::strip_prefix`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.strip_prefix
164-
[`RandomState::new`]: http://doc.rust-lang.org/nightly/std/collections/hash_map/struct.RandomState.html#method.new
165157
[`String::as_mut_str`]: http://doc.rust-lang.org/nightly/std/string/struct.String.html#method.as_mut_str
166158
[`String::as_str`]: http://doc.rust-lang.org/nightly/std/string/struct.String.html#method.as_str
167159
[`Vec::as_mut_slice`]: http://doc.rust-lang.org/nightly/std/vec/struct.Vec.html#method.as_mut_slice
168160
[`Vec::as_slice`]: http://doc.rust-lang.org/nightly/std/vec/struct.Vec.html#method.as_slice
169-
[`clone_from_slice`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.clone_from_slice
170161
[`ffi::IntoStringError`]: http://doc.rust-lang.org/nightly/std/ffi/struct.IntoStringError.html
171162
[`i32::checked_neg`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.checked_neg
172163
[`i32::checked_rem`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.checked_rem
@@ -182,13 +173,8 @@ Compatibility Notes
182173
[`i32::overflowing_sub`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_sub
183174
[`i32::saturating_mul`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.saturating_mul
184175
[`path::StripPrefixError`]: http://doc.rust-lang.org/nightly/std/path/struct.StripPrefixError.html
185-
[`sort_by_key`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.sort_by_key
186-
[`std::collections::hash_map::RandomState`]: http://doc.rust-lang.org/nightly/std/collections/hash_map/struct.RandomState.html
187-
[`std::hash::BuildHasherDefault`]: http://doc.rust-lang.org/nightly/std/hash/struct.BuildHasherDefault.html
188-
[`std::hash::BuildHasher`]: http://doc.rust-lang.org/nightly/std/hash/trait.BuildHasher.html
189176
[`u32::checked_neg`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.checked_neg
190177
[`u32::checked_rem`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.checked_rem
191-
[`u32::checked_neg`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.checked_neg
192178
[`u32::checked_shl`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.checked_shl
193179
[`u32::overflowing_add`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_add
194180
[`u32::overflowing_div`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_div

branches/beta/mk/cfg/i686-pc-windows-gnu.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,5 @@ CFG_GNU_TRIPLE_i686-pc-windows-gnu := i686-w64-mingw32
2525
CFG_THIRD_PARTY_OBJECTS_i686-pc-windows-gnu := crt2.o dllcrt2.o
2626
CFG_INSTALLED_OBJECTS_i686-pc-windows-gnu := crt2.o dllcrt2.o rsbegin.o rsend.o
2727
CFG_RUSTRT_HAS_STARTUP_OBJS_i686-pc-windows-gnu := 1
28+
# FIXME(#31030) - there's not a great reason to disable jemalloc here
29+
CFG_DISABLE_JEMALLOC_i686-pc-windows-gnu := 1

branches/beta/mk/cfg/x86_64-pc-windows-gnu.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,5 @@ CFG_GNU_TRIPLE_x86_64-pc-windows-gnu := x86_64-w64-mingw32
2525
CFG_THIRD_PARTY_OBJECTS_x86_64-pc-windows-gnu := crt2.o dllcrt2.o
2626
CFG_INSTALLED_OBJECTS_x86_64-pc-windows-gnu := crt2.o dllcrt2.o rsbegin.o rsend.o
2727
CFG_RUSTRT_HAS_STARTUP_OBJS_x86_64-pc-windows-gnu := 1
28+
# FIXME(#31030) - there's not a great reason to disable jemalloc here
29+
CFG_DISABLE_JEMALLOC_x86_64-pc-windows-gnu := 1

branches/beta/mk/crates.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ DEPS_serialize := std log
8787
DEPS_term := std log
8888
DEPS_test := std getopts serialize rbml term native:rust_test_helpers
8989

90-
DEPS_syntax := std term serialize log arena libc rustc_bitflags rustc_unicode
90+
DEPS_syntax := std term serialize log arena libc rustc_bitflags
9191
DEPS_syntax_ext := syntax fmt_macros
9292

9393
DEPS_rustc := syntax fmt_macros flate arena serialize getopts rbml rustc_front\

branches/beta/mk/main.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
######################################################################
1414

1515
# The version number
16-
CFG_RELEASE_NUM=1.9.0
16+
CFG_RELEASE_NUM=1.8.0
1717

1818
# An optional number to put after the label, e.g. '.2' -> '-beta.2'
1919
# NB Make sure it starts with a dot to conform to semver pre-release

branches/beta/mk/rt.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ COMPRT_AR_$(1) := $$(AR_$(1))
253253
# We chomp -Werror here because GCC warns about the type signature of
254254
# builtins not matching its own and the build fails. It's a bit hacky,
255255
# but what can we do, we're building libclang-rt using GCC ......
256-
COMPRT_CFLAGS_$(1) := $$(CFG_GCCISH_CFLAGS_$(1)) -Wno-error -std=c99
256+
COMPRT_CFLAGS_$(1) := $$(filter-out -Werror -Werror=*,$$(CFG_GCCISH_CFLAGS_$(1))) -std=c99
257257

258258
# FreeBSD Clang's packaging is problematic; it doesn't copy unwind.h to
259259
# the standard include directory. This should really be in our changes to
@@ -361,7 +361,7 @@ $$(BACKTRACE_BUILD_DIR_$(1))/Makefile: $$(BACKTRACE_DEPS) $$(MKFILE_DEPS)
361361
CC="$$(CC_$(1))" \
362362
AR="$$(AR_$(1))" \
363363
RANLIB="$$(AR_$(1)) s" \
364-
CFLAGS="$$(CFG_GCCISH_CFLAGS_$(1)) -Wno-error -fno-stack-protector" \
364+
CFLAGS="$$(CFG_GCCISH_CFLAGS_$(1):-Werror=) -fno-stack-protector" \
365365
$(S)src/libbacktrace/configure --build=$(CFG_GNU_TRIPLE_$(CFG_BUILD)) --host=$(CFG_GNU_TRIPLE_$(1)))
366366
$$(Q)echo '#undef HAVE_ATOMIC_FUNCTIONS' >> \
367367
$$(BACKTRACE_BUILD_DIR_$(1))/config.h

branches/beta/src/bootstrap/bootstrap.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ def download_rust_nightly(self):
7373

7474
if self.rustc().startswith(self.bin_root()) and \
7575
(not os.path.exists(self.rustc()) or self.rustc_out_of_date()):
76-
shutil.rmtree(self.bin_root())
76+
if os.path.exists(self.bin_root()):
77+
shutil.rmtree(self.bin_root())
7778
filename = "rust-std-nightly-" + self.build + ".tar.gz"
7879
url = "https://static.rust-lang.org/dist/" + self.snap_rustc_date()
7980
tarball = os.path.join(rustc_cache, filename)

branches/beta/src/bootstrap/build/compile.rs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -83,19 +83,6 @@ pub fn std_link(build: &Build,
8383
libdir.join(staticlib("compiler-rt", target))));
8484
}
8585
add_to_sysroot(&out_dir, &libdir);
86-
87-
if target.contains("musl") && (target.contains("x86_64") || target.contains("i686")) {
88-
copy_third_party_objects(build, target, &libdir);
89-
}
90-
}
91-
92-
/// Copies the crt(1,i,n).o startup objects
93-
///
94-
/// Only required for musl targets that statically link to libc
95-
fn copy_third_party_objects(build: &Build, target: &str, into: &Path) {
96-
for &obj in &["crt1.o", "crti.o", "crtn.o"] {
97-
t!(fs::copy(compiler_file(build.cc(target), obj), into.join(obj)));
98-
}
9986
}
10087

10188
/// Build and prepare startup objects like rsbegin.o and rsend.o

branches/beta/src/bootstrap/build/sanity.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ pub fn check(build: &mut Build) {
7979
}
8080

8181
// Make sure musl-root is valid if specified
82-
if target.contains("musl") && (target.contains("x86_64") || target.contains("i686")) {
82+
if target.contains("musl") {
8383
match build.config.musl_root {
8484
Some(ref root) => {
8585
if fs::metadata(root.join("lib/libc.a")).is_err() {

branches/beta/src/compiletest/compiletest.rs

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -354,25 +354,11 @@ pub fn is_test(config: &Config, testfile: &Path) -> bool {
354354
}
355355

356356
pub fn make_test(config: &Config, testpaths: &TestPaths) -> test::TestDescAndFn {
357-
let early_props = header::early_props(config, &testpaths.file);
358-
359-
// The `should-fail` annotation doesn't apply to pretty tests,
360-
// since we run the pretty printer across all tests by default.
361-
// If desired, we could add a `should-fail-pretty` annotation.
362-
let should_panic = match config.mode {
363-
Pretty => test::ShouldPanic::No,
364-
_ => if early_props.should_fail {
365-
test::ShouldPanic::Yes
366-
} else {
367-
test::ShouldPanic::No
368-
}
369-
};
370-
371357
test::TestDescAndFn {
372358
desc: test::TestDesc {
373359
name: make_test_name(config, testpaths),
374-
ignore: early_props.ignore,
375-
should_panic: should_panic,
360+
ignore: header::is_test_ignored(config, &testpaths.file),
361+
should_panic: test::ShouldPanic::No,
376362
},
377363
testfn: make_test_closure(config, testpaths),
378364
}

branches/beta/src/compiletest/errors.rs

Lines changed: 20 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,8 @@ enum WhichLine { ThisLine, FollowPrevious(usize), AdjustBackward(usize) }
3030
/// Goal is to enable tests both like: //~^^^ ERROR go up three
3131
/// and also //~^ ERROR message one for the preceding line, and
3232
/// //~| ERROR message two for that same line.
33-
///
34-
/// If cfg is not None (i.e., in an incremental test), then we look
35-
/// for `//[X]~` instead, where `X` is the current `cfg`.
36-
pub fn load_errors(testfile: &Path, cfg: Option<&str>) -> Vec<ExpectedError> {
33+
// Load any test directives embedded in the file
34+
pub fn load_errors(testfile: &Path) -> Vec<ExpectedError> {
3735
let rdr = BufReader::new(File::open(testfile).unwrap());
3836

3937
// `last_nonfollow_error` tracks the most recently seen
@@ -46,41 +44,30 @@ pub fn load_errors(testfile: &Path, cfg: Option<&str>) -> Vec<ExpectedError> {
4644
// updating it in the map callback below.)
4745
let mut last_nonfollow_error = None;
4846

49-
let tag = match cfg {
50-
Some(rev) => format!("//[{}]~", rev),
51-
None => format!("//~")
52-
};
53-
54-
rdr.lines()
55-
.enumerate()
56-
.filter_map(|(line_no, ln)| {
57-
parse_expected(last_nonfollow_error,
58-
line_no + 1,
59-
&ln.unwrap(),
60-
&tag)
61-
.map(|(which, error)| {
62-
match which {
63-
FollowPrevious(_) => {}
64-
_ => last_nonfollow_error = Some(error.line),
65-
}
66-
error
67-
})
68-
})
69-
.collect()
47+
rdr.lines().enumerate().filter_map(|(line_no, ln)| {
48+
parse_expected(last_nonfollow_error,
49+
line_no + 1,
50+
&ln.unwrap())
51+
.map(|(which, error)| {
52+
match which {
53+
FollowPrevious(_) => {}
54+
_ => last_nonfollow_error = Some(error.line),
55+
}
56+
error
57+
})
58+
}).collect()
7059
}
7160

7261
fn parse_expected(last_nonfollow_error: Option<usize>,
7362
line_num: usize,
74-
line: &str,
75-
tag: &str)
76-
-> Option<(WhichLine, ExpectedError)> {
77-
let start = match line.find(tag) { Some(i) => i, None => return None };
78-
let (follow, adjusts) = if line.char_at(start + tag.len()) == '|' {
63+
line: &str) -> Option<(WhichLine, ExpectedError)> {
64+
let start = match line.find("//~") { Some(i) => i, None => return None };
65+
let (follow, adjusts) = if line.char_at(start + 3) == '|' {
7966
(true, 0)
8067
} else {
81-
(false, line[start + tag.len()..].chars().take_while(|c| *c == '^').count())
68+
(false, line[start + 3..].chars().take_while(|c| *c == '^').count())
8269
};
83-
let kind_start = start + tag.len() + adjusts + (follow as usize);
70+
let kind_start = start + 3 + adjusts + (follow as usize);
8471
let letters = line[kind_start..].chars();
8572
let kind = letters.skip_while(|c| c.is_whitespace())
8673
.take_while(|c| !c.is_whitespace())
@@ -104,9 +91,7 @@ fn parse_expected(last_nonfollow_error: Option<usize>,
10491
(which, line)
10592
};
10693

107-
debug!("line={} tag={:?} which={:?} kind={:?} msg={:?}",
108-
line_num, tag, which, kind, msg);
109-
94+
debug!("line={} which={:?} kind={:?} msg={:?}", line_num, which, kind, msg);
11095
Some((which, ExpectedError { line: line,
11196
kind: kind,
11297
msg: msg, }))

0 commit comments

Comments
 (0)