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
Make in_feature_group a simple bool flag
  • Loading branch information
rasendubi committed May 2, 2019
commit 4bcc828b9ca7611ecb1200056bab5fc6d805fd99
13 changes: 6 additions & 7 deletions src/tools/tidy/src/features.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use regex::{Regex, escape};
mod version;
use self::version::Version;

const FEATURE_GROUP_START_PREFIX: &str = "// feature-group-start:";
const FEATURE_GROUP_START_PREFIX: &str = "// feature-group-start";
const FEATURE_GROUP_END_PREFIX: &str = "// feature-group-end";

#[derive(Debug, PartialEq, Clone)]
Expand Down Expand Up @@ -194,7 +194,7 @@ pub fn collect_lang_features(base_src_path: &Path, bad: &mut bool) -> Features {
// without one inside `// no tracking issue START` and `// no tracking issue END`.
let mut next_feature_omits_tracking_issue = false;

let mut next_feature_group = None;
let mut in_feature_group = false;
let mut prev_since = None;

contents.lines().zip(1..)
Expand All @@ -215,7 +215,7 @@ pub fn collect_lang_features(base_src_path: &Path, bad: &mut bool) -> Features {
}

if line.starts_with(FEATURE_GROUP_START_PREFIX) {
if next_feature_group.is_some() {
if in_feature_group {
tidy_error!(
bad,
// ignore-tidy-linelength
Expand All @@ -224,12 +224,11 @@ pub fn collect_lang_features(base_src_path: &Path, bad: &mut bool) -> Features {
);
}

let group = line.trim_start_matches(FEATURE_GROUP_START_PREFIX).trim();
next_feature_group = Some(group.to_owned());
in_feature_group = true;
prev_since = None;
return None;
} else if line.starts_with(FEATURE_GROUP_END_PREFIX) {
next_feature_group = None;
in_feature_group = false;
prev_since = None;
return None;
}
Expand Down Expand Up @@ -257,7 +256,7 @@ pub fn collect_lang_features(base_src_path: &Path, bad: &mut bool) -> Features {
None
}
};
if next_feature_group.is_some() {
if in_feature_group {
if prev_since > since {
tidy_error!(
bad,
Expand Down