Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
1975b8d
Document that slices cannot be larger than `isize::MAX` bytes
tbu- Aug 29, 2018
7b77508
Add `debug_assert!`s to `slice::from_raw_parts`
tbu- Sep 4, 2018
1aac00f
A slice covering exactly half the address space is not OK
tbu- Sep 10, 2018
5d9086f
Fix overflow in `from_raw_parts` size check
tbu- Sep 11, 2018
11c6318
Use more obvious calculation for slice size check
tbu- Sep 17, 2018
ebffb67
Adjust the docs of `from_raw_parts` to match the implementation
tbu- Sep 17, 2018
7cbe060
in which we include attributes in unused `extern crate` suggestion spans
zackmdavis Sep 22, 2018
e370b1c
Don't have two adjacent "see also" sentences
tbu- Sep 27, 2018
f9ff7b7
Prefer `#![feature(bind_by_move_pattern_guards)]` over `-Z disable_as…
pnkfelix Sep 28, 2018
8d10f96
Indicate how to move value out of Box in docs.
frewsxcv Sep 25, 2018
89cb411
rustc/infer: use unwrap_or(_else) where applicable
ljedrz Sep 28, 2018
9fd6fad
rustc/infer: convert single-branch matches to if-let
ljedrz Sep 28, 2018
0e84647
rustc/infer: use to_owned instead of to_string with string literals
ljedrz Sep 28, 2018
999d768
rustc/infer: improve vector allocations
ljedrz Sep 28, 2018
70eeb05
rustc/infer: readability improvements
ljedrz Sep 28, 2018
52da886
rustc/infer: miscellaneous minor code improvements
ljedrz Sep 28, 2018
54b303a
update miri
RalfJung Sep 29, 2018
0390736
Improve ux when calling associated functions with dot notation
dsciarra Sep 17, 2018
d654e3c
Improve bug! message for impossible case in Relate
phansch Sep 29, 2018
b315760
Rename sanitizer runtime libraries on OSX
alexcrichton Sep 29, 2018
af9eb4f
Correct doc for WorkQueue<T>::pop().
nieksand Sep 29, 2018
3e142b9
Added help message for `impl_trait_in_bindings` feature gate.
alexreg Sep 27, 2018
f937567
allow use of ./x.py help <cmd> ...
collin5 Oct 1, 2018
818a05d
Rollup merge of #53784 - tbu-:pr_doc_slice_isize_max, r=RalfJung
kennytm Oct 1, 2018
a1f3b0f
Rollup merge of #54308 - dsciarra:issue-22692, r=estebank
kennytm Oct 1, 2018
b188212
Rollup merge of #54488 - zackmdavis:and_the_case_of_the_unused_crate,…
kennytm Oct 1, 2018
4941670
Rollup merge of #54544 - frewsxcv:frewsxcv-deref, r=GuillaumeGomez
kennytm Oct 1, 2018
5bfd085
Rollup merge of #54623 - alexreg:impl_trait_in_bindings-help, r=estebank
kennytm Oct 1, 2018
41706ff
Rollup merge of #54641 - ljedrz:cleanup_rustc_infer, r=estebank
kennytm Oct 1, 2018
9ad783e
Rollup merge of #54656 - nieksand:workqueue_doc, r=varkor
kennytm Oct 1, 2018
23a993c
Rollup merge of #54679 - phansch:improve_bug_message, r=matthewjasper
kennytm Oct 1, 2018
7014afc
Rollup merge of #54681 - alexcrichton:san-names, r=kennytm
kennytm Oct 1, 2018
3401db0
Rollup merge of #54708 - collin5:b49475, r=Mark-Simulacrum
kennytm Oct 1, 2018
e68db04
Add nightly check for tool_lints warning
flip1995 Oct 1, 2018
94254d3
Rollup merge of #54674 - RalfJung:miri, r=oli-obk
kennytm Oct 1, 2018
4433116
Rollup merge of #54713 - flip1995:tool_lints_nightly, r=Manishearth
kennytm Oct 1, 2018
5b08200
Rollup merge of #54676 - pnkfelix:issue-15287-kill-zflag-disabling-as…
kennytm Oct 1, 2018
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
Add nightly check for tool_lints warning
  • Loading branch information
flip1995 committed Oct 1, 2018
commit e68db042888f6b3cb6164a5cc5bfc3a79faa851c
10 changes: 8 additions & 2 deletions src/librustc/lint/levels.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ use lint::context::CheckLintNameResult;
use lint::{self, Lint, LintId, Level, LintSource};
use rustc_data_structures::stable_hasher::{HashStable, ToStableHashKey,
StableHasher, StableHasherResult};
use session::Session;
use session::{config::nightly_options, Session};
use syntax::ast;
use syntax::attr;
use syntax::source_map::MultiSpan;
Expand Down Expand Up @@ -299,7 +299,13 @@ impl<'a> LintLevelsBuilder<'a> {
"change it to",
new_lint_name.to_string(),
Applicability::MachineApplicable,
).emit();
);

if nightly_options::is_nightly_build() {
err.emit();
} else {
err.cancel();
}

let src = LintSource::Node(Symbol::intern(&new_lint_name), li.span);
for id in ids {
Expand Down