Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
7d4a6c8
Set --extend-css stable
GuillaumeGomez May 2, 2017
770bd57
Add `'static` and `Send` constraints explanations to `thread::spawn`
May 13, 2017
a256630
Add an option to the parser to avoid parsing out of line modules
May 17, 2017
9ad0dba
remove "much" from unicode diagnostic
euclio May 20, 2017
f166bd9
Make RangeInclusive just a two-field struct
scottmcm Apr 24, 2017
7eaca60
Return a correct size_hint for degenerate inclusive ranges
scottmcm May 21, 2017
66237af
Fix building without backtrace feature, which was broken in ca8b754
ids1024 May 21, 2017
f4147e5
Implement requires_synchronized_create() for Redox
ids1024 May 21, 2017
0b85b64
libstd/sync/mpsc: relicense under rust license
dvyukov May 22, 2017
14b767d
Add example of recursive drop to Drop trait.
Havvy May 22, 2017
ca909c8
Add example of variable declaration drop order to Drop trait.
Havvy May 22, 2017
d7927ff
Add description of how values are dropped to Drop trait.
Havvy May 22, 2017
5f4b0ff
Fix trailing whitespace.
Havvy May 22, 2017
b41b294
Suggested changes by birkenfeld
Havvy May 23, 2017
e860655
Remove some needless // gate-test- comments
est31 May 23, 2017
b4d594f
Add precisions for the help message for --extend-css
GuillaumeGomez May 23, 2017
2aa6700
bootstrap: Actually respect verbosity setting in config.toml
devurandom May 24, 2017
604f716
bootstrap: Make bootstrap verbose if requested
devurandom May 24, 2017
cd86a9b
bootstrap: Use common run() function to call cargo
devurandom May 24, 2017
5558c64
Change error count messages
citizen428 May 22, 2017
f6d935b
fix broken link to nomicon in Unsize docs
SamWhited May 24, 2017
55c3f0b
Add missing urls for OsStr docs
GuillaumeGomez May 24, 2017
e0f11b4
Update Cargo submodule
alexcrichton May 24, 2017
da2b86f
Make submodule clones shallow to avoid work.
Mark-Simulacrum May 24, 2017
006eca4
Rollup merge of #41700 - GuillaumeGomez:extend-css-stable, r=killercup
Mark-Simulacrum May 25, 2017
25dc6a7
Rollup merge of #41980 - gamazeps:thread-send, r=steveklabnik
Mark-Simulacrum May 25, 2017
b4703a6
Rollup merge of #42071 - nrc:parse-mods, r=nikomatsakis
Mark-Simulacrum May 25, 2017
cd76e05
Rollup merge of #42120 - euclio:unicode, r=arielb1
Mark-Simulacrum May 25, 2017
2e698e8
Rollup merge of #42134 - scottmcm:rangeinclusive-struct, r=aturon
Mark-Simulacrum May 25, 2017
f60da49
Rollup merge of #42141 - ids1024:nobacktrace, r=aturon
Mark-Simulacrum May 25, 2017
096de2e
Rollup merge of #42142 - ids1024:redox, r=aturon
Mark-Simulacrum May 25, 2017
6f84931
Rollup merge of #42149 - dvyukov:license, r=brson
Mark-Simulacrum May 25, 2017
30ef5d4
Rollup merge of #42150 - citizen428:feature/error-count-messages, r=M…
Mark-Simulacrum May 25, 2017
e02d895
Rollup merge of #42159 - Havvy:doc-drop, r=steveklabnik
Mark-Simulacrum May 25, 2017
5568bb8
Rollup merge of #42177 - est31:master, r=Mark-Simulacrum
Mark-Simulacrum May 25, 2017
685edf6
Rollup merge of #42186 - devurandom:fix/bootstrap-verbose, r=alexcric…
Mark-Simulacrum May 25, 2017
16f66b9
Rollup merge of #42191 - alexcrichton:update-cargo, r=Mark-Simulacrum
Mark-Simulacrum May 25, 2017
04d35ec
Rollup merge of #42195 - SamWhited:fix_broken_link, r=steveklabnik
Mark-Simulacrum May 25, 2017
af74add
Rollup merge of #42198 - GuillaumeGomez:os-str-doc, r=QuietMisdreavus
Mark-Simulacrum May 25, 2017
3223da4
Rollup merge of #42208 - Mark-Simulacrum:shallow-submodules, r=aidanhs
Mark-Simulacrum May 25, 2017
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
Remove some needless // gate-test- comments
Also, add detection to treat such comments as tidy errors.
We also remove the found_lib_feature code because it
was just repeating the found_feature code. Originally it
was intended to allow for gate-test lines for
lib features, but apparently nobody missed it.
  • Loading branch information
est31 committed May 23, 2017
commit e860655a999ad921eb379d7f220c3e8ad1bcbb54
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
// except according to those terms.

// aux-build:attr_proc_macro.rs
// gate-test-proc_macro
#![feature(use_extern_macros)]

extern crate attr_proc_macro;
Expand All @@ -21,4 +20,4 @@ struct Foo;

fn main() {
let _ = Foo;
}
}
2 changes: 0 additions & 2 deletions src/test/compile-fail/feature-gate-global_asm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// gate-test-global_asm

global_asm!(""); //~ ERROR `global_asm!` is not stable

fn main() {}
29 changes: 16 additions & 13 deletions src/tools/tidy/src/features.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ pub fn check(path: &Path, bad: &mut bool) {
}

let filen_underscore = filename.replace("-","_").replace(".rs","");
test_filen_gate(&filen_underscore, &mut features);
let filename_is_gate_test = test_filen_gate(&filen_underscore, &mut features);

contents.truncate(0);
t!(t!(File::open(&file), &file).read_to_string(&mut contents));
Expand All @@ -92,17 +92,20 @@ pub fn check(path: &Path, bad: &mut bool) {
},
None => continue,
};
let found_feature = features.get_mut(feature_name)
.map(|v| { v.has_gate_test = true; () })
.is_some();

let found_lib_feature = features.get_mut(feature_name)
.map(|v| { v.has_gate_test = true; () })
.is_some();

if !(found_feature || found_lib_feature) {
err(&format!("gate-test test found referencing a nonexistent feature '{}'",
feature_name));
match features.get_mut(feature_name) {
Some(f) => {
if filename_is_gate_test {
err(&format!("The file is already marked as gate test \
through its name, no need for a \
'gate-test-{}' comment",
feature_name));
}
f.has_gate_test = true;
}
None => {
err(&format!("gate-test test found referencing a nonexistent feature '{}'",
feature_name));
}
}
}
});
Expand Down Expand Up @@ -265,4 +268,4 @@ pub fn collect_lib_features(base_src_path: &Path,
}
});
lib_features
}
}