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 12 pull requests #58594

Closed
wants to merge 46 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
81cd1e6
Deprecate the unstable Vec::resize_default
scottmcm Jan 16, 2019
c654968
Deny the `overflowing_literals` lint for all editions
ollie27 Jan 17, 2019
6bfb280
deprecate before_exec in favor of unsafe pre_exec
RalfJung Feb 1, 2019
d48433d
also replace before_exec by pre_exec on redox
RalfJung Feb 1, 2019
b1709d2
update test
RalfJung Feb 1, 2019
cbbf8a7
deprecate things a bit slower
RalfJung Feb 2, 2019
6c67a76
pre_exec: expand docs
RalfJung Feb 2, 2019
59da97d
rustfmt the test
RalfJung Feb 2, 2019
33ee99b
more formatting
RalfJung Feb 3, 2019
e023403
POSIX requires async signal safety for fork in signal handlers, not i…
RalfJung Feb 3, 2019
eb5b096
RangeInclusive internal iteration performance improvement.
matthieu-m Feb 3, 2019
f753d30
Suggest removing parentheses surrounding lifetimes
igorsdv Feb 5, 2019
4fed67f
Fix exhaustion of inclusive range try_fold and try_rfold
matthieu-m Feb 9, 2019
26bd433
Move the intrinsics into a submodule
nitnelave Feb 8, 2019
283ffcf
Check the self-type of inherent associated constants
matthewjasper Feb 11, 2019
235a6b7
Expose const -> op functions that don't allow violiting const eval in…
oli-obk Feb 16, 2019
bd18cc5
Remove an intermediate value from discriminant reading
oli-obk Feb 16, 2019
b2bf37a
Burn some invariants we keep up into code
oli-obk Feb 16, 2019
f7c4931
Reuse the `Pointer` type instead of passing reassembling it at many u…
oli-obk Feb 16, 2019
7db96a3
Reintroduce the invariant comment for clarity
oli-obk Feb 16, 2019
bee3c67
Update src/librustc_mir/interpret/operand.rs
RalfJung Feb 16, 2019
525983a
Make validity checking use `MPlaceTy` instead of `OpTy`
oli-obk Feb 15, 2019
27e438a
Make `may_normalize` explicit in the type system
oli-obk Feb 16, 2019
4fdeb2d
Add `eval` prefix to clarify what the function does
oli-obk Feb 16, 2019
4b08533
Update docs and visibilities of const to op methods
oli-obk Feb 16, 2019
1fe7eb0
Limit the visibility further and expand on a comment
oli-obk Feb 16, 2019
d26bf74
Change `Token::interpolated_to_tokenstream()`.
nnethercote Feb 14, 2019
f8801f3
Remove `LazyTokenStream`.
nnethercote Feb 14, 2019
f0d8fbd
Avoid a `clone()` in `transcribe()`.
nnethercote Feb 15, 2019
82ad4f1
Make `interpolated_to_tokenstream` a method on `Nonterminal`.
nnethercote Feb 17, 2019
895a794
Remove some unnecessary `into()` calls.
nnethercote Feb 17, 2019
9312ca1
Add a note about 2018e if someone uses `try {` in 2015e
scottmcm Feb 18, 2019
abb07c4
remove a bit of dead code
matklad Feb 20, 2019
65622e3
cleanup macro after 2018 transition
matklad Feb 20, 2019
e447bca
Rollup merge of #55632 - ollie27:deny_overflowing_literals, r=Centril
Centril Feb 20, 2019
0188fb2
Rollup merge of #57656 - scottmcm:deprecate-resize_default, r=SimonSapin
Centril Feb 20, 2019
9f7f3af
Rollup merge of #57997 - nitnelave:master, r=RalfJung
Centril Feb 20, 2019
eaa6e07
Rollup merge of #58059 - RalfJung:before_exec, r=alexcrichton
Centril Feb 20, 2019
b7a1ae5
Rollup merge of #58122 - matthieu-m:range_incl_perf, r=dtolnay
Centril Feb 20, 2019
45bdaf7
Rollup merge of #58198 - igorsdv:suggest-removing-parentheses-surroun…
Centril Feb 20, 2019
2c2d3f2
Rollup merge of #58353 - matthewjasper:typeck-pattern-constants, r=ar…
Centril Feb 20, 2019
64b0c0d
Rollup merge of #58476 - nnethercote:rm-LazyTokenStream, r=petrochenkov
Centril Feb 20, 2019
a8722c2
Rollup merge of #58511 - oli-obk:const_to_op, r=RalfJung
Centril Feb 20, 2019
c198719
Rollup merge of #58555 - scottmcm:try-2015, r=Centril
Centril Feb 20, 2019
858e646
Rollup merge of #58588 - matklad:dead-code, r=petrochenkov
Centril Feb 20, 2019
343fd19
Rollup merge of #58589 - matklad:remove-hack, r=petrochenkov
Centril Feb 20, 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
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
4 changes: 4 additions & 0 deletions src/liballoc/vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1365,6 +1365,7 @@ impl<T: Default> Vec<T> {
/// # Examples
///
/// ```
/// # #![allow(deprecated)]
/// #![feature(vec_resize_default)]
///
/// let mut vec = vec![1, 2, 3];
Expand All @@ -1381,6 +1382,9 @@ impl<T: Default> Vec<T> {
/// [`Default`]: ../../std/default/trait.Default.html
/// [`Clone`]: ../../std/clone/trait.Clone.html
#[unstable(feature = "vec_resize_default", issue = "41758")]
#[rustc_deprecated(reason = "This is moving towards being removed in favor \
of `.resize_with(Default::default)`. If you disagree, please comment \
in the tracking issue.", since = "1.33.0")]
pub fn resize_default(&mut self, new_len: usize) {
let len = self.len();

Expand Down
Loading