Skip to content

Commit

Permalink
Fix some test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
felix91gr committed Mar 26, 2019
1 parent d020565 commit 3cff06a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions clippy_lints/src/ranges.rs
Expand Up @@ -161,8 +161,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for Pass {
.ctxt()
.outer()
.expn_info()
.map(|info| info.call_site)
.unwrap_or(expr.span);
.map_or(expr.span, |info| info.call_site);
span_lint_and_then(
cx,
RANGE_PLUS_ONE,
Expand Down
8 changes: 4 additions & 4 deletions tests/compile-test.rs
Expand Up @@ -100,13 +100,13 @@ fn run_ui_toml_tests(config: &compiletest::Config, mut tests: Vec<TestDescAndFn>
.position(|test| test.desc.name.to_string() == test_name.to_string())
.expect("The test should be in there");
let opts = libtest::TestOpts {
list: opts.list.clone(),
list: opts.list,
filter: opts.filter.clone(),
filter_exact: opts.filter_exact.clone(),
filter_exact: opts.filter_exact,
exclude_should_panic: Default::default(),
run_ignored: libtest::RunIgnored::No,
run_tests: opts.run_tests.clone(),
bench_benchmarks: opts.bench_benchmarks.clone(),
run_tests: opts.run_tests,
bench_benchmarks: opts.bench_benchmarks,
logfile: opts.logfile.clone(),
nocapture: opts.nocapture,
color: libtest::ColorConfig::AutoColor,
Expand Down

0 comments on commit 3cff06a

Please sign in to comment.