Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rollup of 16 pull requests #58559

Closed
wants to merge 52 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
c654968
Deny the `overflowing_literals` lint for all editions
ollie27 Jan 17, 2019
5d80584
Use less explicit shifting in std::net::ip
scottmcm Feb 12, 2019
47d6ed0
hir: HirId-ify intravisit
ljedrz Feb 6, 2019
431e981
hir: add and use hir_to_node_id in NodeCollector
ljedrz Feb 15, 2019
1169084
hir: change HirIdValidator.hir_ids_seen to a set
ljedrz Feb 15, 2019
cd13ac3
hir: remove parent_node from NodeCollector
ljedrz Feb 15, 2019
53717b7
HirIdification: change some NodeId to HirId calls
ljedrz Feb 15, 2019
81ce9bf
adjust intravisit HirIdification
ljedrz Feb 15, 2019
cdd1c0e
Don't use an allocation for ItemId in StmtKind
Zoxc Feb 17, 2019
564c569
Monomorphize less code in fs::{read|write}
scottmcm Feb 17, 2019
8fbb013
Mention capping forbid lints
dwijnand Feb 17, 2019
7474845
update miri
RalfJung Feb 17, 2019
4e5b3d2
libstd => 2018
taiki-e Feb 10, 2019
9f2193f
Fix #[macro_use] extern crate in sys/cloudabi
taiki-e Feb 10, 2019
9921c33
Revert removed #![feature(nll)]
taiki-e Feb 10, 2019
5d134a1
Fix errors in test/ui
taiki-e Feb 15, 2019
c55fe4e
Fix error in tag-that-dare-not-speak-its-name
taiki-e Feb 15, 2019
1e32654
update Cargo.lock and miri URL
RalfJung Feb 17, 2019
3281e62
Remove UB in test_is_null test
KamilaBorowska Feb 17, 2019
0cf1a91
Remove UB in test_ptr_subtraction test
KamilaBorowska Feb 17, 2019
0021fcf
Fix some imports and paths
taiki-e Feb 17, 2019
1a0d800
Bump the bootstrap compiler
jonas-schievink Feb 17, 2019
ee948d9
Add regression test for a specialization-related ICE (#39448)
emlai Feb 17, 2019
1b7ca96
librustc_codegen_llvm => 2018
taiki-e Feb 17, 2019
55c25f8
Fix doc for rustc "-g" flag
TheBiggerGuy Feb 17, 2019
88e462b
Add links to codegen docs for rustc synonym flags
TheBiggerGuy Feb 17, 2019
7007f80
update miri
RalfJung Feb 17, 2019
0b9ad6e
Explain a panic in test case net::tcp::tests::double_bind
ssomers Feb 4, 2019
01bebdf
Merge remote-tracking branch 'upstream/master'
ssomers Feb 17, 2019
9312ca1
Add a note about 2018e if someone uses `try {` in 2015e
scottmcm Feb 18, 2019
af38382
Update Clippy to rust-lang/rust-clippy@32ee30
flip1995 Feb 10, 2019
ed17700
Update RLS to rust-lang/rls@0d6f53
flip1995 Feb 10, 2019
5f48357
Update rustfmt to rust-lang/rustfmt@d6829d
flip1995 Feb 11, 2019
919b3f9
Update Cargo.toml of rustc-workspace-hack
flip1995 Feb 14, 2019
4f96a03
Add constant_time_eq to license exception list of tidy tool
flip1995 Feb 16, 2019
4c228cc
Update Cargo.lock
flip1995 Feb 18, 2019
323358d
Rollup merge of #55632 - ollie27:deny_overflowing_literals, r=Centril
kennytm Feb 18, 2019
5ec4850
Rollup merge of #58232 - ljedrz:HirIdification_continued, r=Zoxc
kennytm Feb 18, 2019
9de1c61
Rollup merge of #58337 - flip1995:clippyup, r=Xanewok
kennytm Feb 18, 2019
3b686b7
Rollup merge of #58392 - scottmcm:less-shifting-in-net-ip, r=oli-obk
kennytm Feb 18, 2019
2eaf3bd
Rollup merge of #58528 - Zoxc:stmtkind-item, r=oli-obk
kennytm Feb 18, 2019
e26a2a5
Rollup merge of #58530 - scottmcm:monomorphize-less, r=TimNN
kennytm Feb 18, 2019
7cdf955
Rollup merge of #58534 - dwijnand:mention-capping-forbid-lints, r=oli…
kennytm Feb 18, 2019
6d2cc83
Rollup merge of #58535 - RalfJung:miri, r=oli-obk
kennytm Feb 18, 2019
e3f75bf
Rollup merge of #58536 - xfix:remove-ub-in-pointer-tests, r=RalfJung
kennytm Feb 18, 2019
2381231
Rollup merge of #58543 - jonas-schievink:bumpstrap, r=pietroalbini
kennytm Feb 18, 2019
390fe84
Rollup merge of #58544 - TheBiggerGuy:rustc-doc-cli-args, r=TimNN
kennytm Feb 18, 2019
baa01cf
Rollup merge of #58545 - emlai:regression-test-for-39448, r=Centril
kennytm Feb 18, 2019
4339b7f
Rollup merge of #58546 - taiki-e:librustc_codegen_llvm-2018, r=Centril
kennytm Feb 18, 2019
b79f718
Rollup merge of #58551 - ssomers:master, r=oli-obk
kennytm Feb 18, 2019
df0912e
Rollup merge of #58555 - scottmcm:try-2015, r=Centril
kennytm Feb 18, 2019
6688c77
Rollup merge of #58208 - taiki-e:libstd-2018, r=Centril
kennytm Feb 18, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
url = https://github.com/rust-lang-nursery/rustfmt.git
[submodule "src/tools/miri"]
path = src/tools/miri
url = https://github.com/solson/miri.git
url = https://github.com/rust-lang/miri.git
[submodule "src/doc/rust-by-example"]
path = src/doc/rust-by-example
url = https://github.com/rust-lang/rust-by-example.git
Expand All @@ -46,4 +46,4 @@
branch = rustc/8.0-2019-01-16
[submodule "src/doc/embedded-book"]
path = src/doc/embedded-book
url = https://github.com/rust-embedded/book.git
url = https://github.com/rust-embedded/book.git
236 changes: 141 additions & 95 deletions Cargo.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/doc/rustc/src/command-line-arguments.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ This flag prints out various information about the compiler.

## `-g`: include debug information

A synonym for `-C debug-level=2`.
A synonym for `-C debuginfo=2`, for more see [here](codegen-options/index.html#debuginfo).

## `-O`: optimize your code

A synonym for `-C opt-level=2`.
A synonym for `-C opt-level=2`, for more see [here](codegen-options/index.html#opt-level).

## `-o`: filename of the output

Expand Down
4 changes: 3 additions & 1 deletion src/doc/rustc/src/lints/levels.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ This lint level gives you that.
'forbid' is a special lint level that's stronger than 'deny'. It's the same
as 'deny' in that a lint at this level will produce an error, but unlike the
'deny' level, the 'forbid' level can not be overridden to be anything lower
than an error.
than an error. However, lint levels may still be capped with `--cap-lints`
(see below) so `rustc --cap-lints warn` will make lints set to 'forbid' just
warn.

## Configuring warning levels

Expand Down
20 changes: 20 additions & 0 deletions src/doc/rustc/src/lints/listing/deny-by-default.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,26 @@ error: const items should never be #[no_mangle]
|
```

## overflowing-literals

This lint detects literal out of range for its type. Some
example code that triggers this lint:

```rust,compile_fail
let x: u8 = 1000;
```

This will produce:

```text
error: literal out of range for u8
--> src/main.rs:2:17
|
2 | let x: u8 = 1000;
| ^^^^
|
```

## parenthesized-params-in-types-and-modules

This lint detects incorrect parentheses. Some example code that triggers this
Expand Down
20 changes: 0 additions & 20 deletions src/doc/rustc/src/lints/listing/warn-by-default.md
Original file line number Diff line number Diff line change
Expand Up @@ -285,26 +285,6 @@ warning: functions generic over types must be mangled
|
```

## overflowing-literals

This lint detects literal out of range for its type. Some
example code that triggers this lint:

```rust
let x: u8 = 1000;
```

This will produce:

```text
warning: literal out of range for u8
--> src/main.rs:2:17
|
2 | let x: u8 = 1000;
| ^^^^
|
```

## path-statements

This lint detects path statements with no effect. Some example code that
Expand Down
11 changes: 6 additions & 5 deletions src/libcore/tests/ptr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,17 @@ fn test() {
}

#[test]
#[cfg(not(miri))] // This test performs invalid OOB pointer arithmetic
fn test_is_null() {
let p: *const isize = null();
assert!(p.is_null());

let q = unsafe { p.offset(1) };
let q = p.wrapping_offset(1);
assert!(!q.is_null());

let mp: *mut isize = null_mut();
assert!(mp.is_null());

let mq = unsafe { mp.offset(1) };
let mq = mp.wrapping_offset(1);
assert!(!mq.is_null());

// Pointers to unsized types -- slices
Expand Down Expand Up @@ -208,7 +207,6 @@ fn test_ptr_addition() {
}

#[test]
#[cfg(not(miri))] // This test performs invalid OOB pointer arithmetic
fn test_ptr_subtraction() {
unsafe {
let xs = vec![0,1,2,3,4,5,6,7,8,9];
Expand All @@ -224,8 +222,11 @@ fn test_ptr_subtraction() {
let m_start = xs_mut.as_mut_ptr();
let mut m_ptr = m_start.offset(9);

while m_ptr >= m_start {
loop {
*m_ptr += *m_ptr;
if m_ptr == m_start {
break;
}
m_ptr = m_ptr.offset(-1);
}

Expand Down
Loading