Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
bee92b5
Make deprecation lint `ambiguous_associated_items` deny-by-default
petrochenkov Apr 12, 2019
be33738
Added arm-none-eabi target
Gilnaa Apr 20, 2019
d8cc8dc
Added armv7-none target instead of arm-none
Gilnaa Apr 23, 2019
bd42e12
Set armv7-none to use strict alignment
Gilnaa Apr 23, 2019
a912664
report fatal errors during doctest parsing
euclio Apr 23, 2019
c8baec9
Added non hf armv7a target
Gilnaa Apr 24, 2019
0e7e938
Do not suggest incorrect syntax on pattern borrow error
estebank Apr 30, 2019
742b48d
Be more specific in the suggestion filtering
estebank Apr 30, 2019
ff68673
add tests
estebank Apr 30, 2019
693eea5
review comments
estebank Apr 30, 2019
14ca950
Fix style
estebank Apr 30, 2019
6068478
Add if let test
estebank Apr 30, 2019
bf4d0ad
Rename to RUSTC_LOG
JohnTitor Apr 30, 2019
da46eea
Add error for existential types
JohnTitor Apr 30, 2019
bb3549f
Fix tests
JohnTitor Apr 30, 2019
f56d285
Use multispan
JohnTitor Apr 30, 2019
db7f265
Fix spans
JohnTitor Apr 30, 2019
748d978
Fix run-pass test
JohnTitor Apr 30, 2019
ed08c6a
review comments: change wording
estebank Apr 30, 2019
24fddb1
Resolve match arm ty when arms diverge
estebank May 1, 2019
6ef39e6
Avoid repeated interning of static strings.
nnethercote May 2, 2019
16fe8cc
Remove the `self.mir` field from `ConstPropagator`
wesleywiser Apr 29, 2019
cac07eb
Fix failing test
wesleywiser May 2, 2019
8b82f68
Make find_attr_val a little bit more precise
rasendubi Apr 29, 2019
b7f55ca
Assign group and parse since for Feature
rasendubi Apr 29, 2019
d5ba6d4
Ensure language features in group are sorted by since
rasendubi Apr 29, 2019
d54477e
Address review comments
rasendubi May 1, 2019
90d3fa2
Make tidy::version::Version a [u32; 3]
rasendubi May 1, 2019
3b4fe7e
Group and sort feature_gate.rs
rasendubi May 1, 2019
c120fd8
Rework Version::parse to avoid extra allocations
rasendubi May 1, 2019
4bcc828
Make in_feature_group a simple bool flag
rasendubi May 2, 2019
201f14b
Make tidy::version::Version copy
rasendubi May 2, 2019
d72f4de
Constrain all regions in the concrete type for an opaque type
matthewjasper May 1, 2019
7d7787d
Rollup merge of #59928 - petrochenkov:denyambass, r=varkor
Centril May 2, 2019
7f1ed70
Rollup merge of #60135 - Gilnaa:arm-none-eabi, r=nagisa
Centril May 2, 2019
3010b14
Rollup merge of #60220 - euclio:rustdoc-test-fatal-parsing-errors, r=…
Centril May 2, 2019
d38096a
Rollup merge of #60373 - rasendubi:lang-features-sort-since, r=Centril
Centril May 2, 2019
22bd72a
Rollup merge of #60393 - estebank:pat-sugg, r=oli-obk
Centril May 2, 2019
bc4a2ad
Rollup merge of #60401 - JohnTitor:rename-log, r=davidtwco
Centril May 2, 2019
6e7bcff
Rollup merge of #60409 - JohnTitor:error-for-existential-type, r=oli-obk
Centril May 2, 2019
57cfb40
Rollup merge of #60449 - matthewjasper:impl-trait-outlives, r=pnkfelix
Centril May 2, 2019
dff53a0
Rollup merge of #60455 - estebank:resolve-match-arm-ty, r=davidtwco
Centril May 2, 2019
d0057da
Rollup merge of #60457 - wesleywiser:const_prop_refactoring, r=oli-obk
Centril May 2, 2019
5ab3b6b
Rollup merge of #60467 - nnethercote:less-symbol-interning, r=davidtwco
Centril May 2, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use multispan
  • Loading branch information
JohnTitor committed Apr 30, 2019
commit f56d2854436de7f0e00f5a76bf9dba4364ca4d31
6 changes: 4 additions & 2 deletions src/librustc_passes/ast_validation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use syntax::ptr::P;
use syntax::visit::{self, Visitor};
use syntax::{span_err, struct_span_err, walk_list};
use syntax_ext::proc_macro_decls::is_proc_macro_attr;
use syntax_pos::Span;
use syntax_pos::{Span, MultiSpan};
use errors::Applicability;
use log::debug;

Expand Down Expand Up @@ -682,7 +682,9 @@ impl<'a> Visitor<'a> for AstValidator<'a> {
ItemKind::Existential(ref bounds, _) => {
if !bounds.iter()
.any(|b| if let GenericBound::Trait(..) = *b { true } else { false }) {
self.err_handler().span_err(item.span, "at least one trait must be specified");
let msp = MultiSpan::from_spans(bounds.iter()
.map(|bound| bound.span()).collect());
self.err_handler().span_err(msp, "at least one trait must be specified");
}
}
_ => {}
Expand Down