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 10 pull requests #67104

Merged
merged 40 commits into from
Dec 7, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
12ac49a
Add feature gate for &mut in const fns
pvdrz Nov 17, 2019
bb2a423
Allow &mut in const fns when feature gate is enabled
pvdrz Nov 18, 2019
8b0f5ac
Add tests for mutable borrows in const fns
pvdrz Nov 21, 2019
d24ae25
Rename feature gate
pvdrz Nov 21, 2019
1f420b9
Allow mutable borrows in constant bodies
pvdrz Nov 21, 2019
de60f72
Move and rewrite tests to use &mut in constants
pvdrz Nov 21, 2019
d92e9b7
Allow mutable derefs with feature gate
pvdrz Nov 23, 2019
e31a136
Extend test for const_mut_refs feature
pvdrz Nov 23, 2019
683f5c9
Disallow cell borrowing
pvdrz Nov 26, 2019
681690d
Update miri_unleashed tests
pvdrz Nov 26, 2019
5e61e4c
Suggest feature for const_mut_refs errors
pvdrz Nov 27, 2019
19ddfb5
Update miri unleashed tests
pvdrz Nov 28, 2019
dc0117a
Add dual tests for const_mut_refs
pvdrz Nov 28, 2019
416b439
Correct other tests related to const_mut_refs
pvdrz Nov 28, 2019
e01ad6a
Remove E0017 from error codes index
pvdrz Nov 30, 2019
462f06d
Emit coercion suggestions in more places
Aaron1011 Dec 4, 2019
a6883c0
Disable issue-59756 test for now
Aaron1011 Dec 4, 2019
22c65f9
Do not ICE on closure typeck
estebank Dec 5, 2019
f8ecf04
accept union inside enum if not followed by identifier
kamleshbhalui Dec 6, 2019
f442797
Make `core::convert` a directory-module with `mod.rs`
SimonSapin Dec 6, 2019
cba479f
Add `{f32,f64}::approx_unchecked_to<Int>` unsafe methods
SimonSapin Nov 28, 2019
a213ff8
Move numeric `From` and `TryFrom` impls to `libcore/convert/num.rs`
SimonSapin Dec 2, 2019
0c4bc58
Change "either" to "any" in Layout::from_size_align's docs
kraai Dec 6, 2019
a3c8577
Change "us" to "is" in Layout::for_value comment
kraai Dec 6, 2019
292b998
Change "wth" to "with" in `Layout::padding_needed_for` comment
kraai Dec 6, 2019
49697ae
get rid of __ in field names
RalfJung Dec 6, 2019
bbcda98
cfg_attr: avoid .outer_tokens
Centril Dec 5, 2019
cbc9f68
derive: avoid parse_in_attr
Centril Dec 5, 2019
99191c2
parse_meta: ditch parse_in_attr
Centril Dec 5, 2019
3c14f0e
Add note to src/ci/docker/README.md about multiple docker images
Aaron1011 Dec 6, 2019
2bd35c0
Rollup merge of #66606 - christianpoveda:mut-refs-in-const-fn, r=oli-obk
Centril Dec 6, 2019
62528d8
Rollup merge of #66841 - SimonSapin:float_round_unchecked_to, r=rkruppe
Centril Dec 6, 2019
99fee78
Rollup merge of #67009 - Aaron1011:fix/coerce-suggestion, r=Centril
Centril Dec 6, 2019
941c4cd
Rollup merge of #67052 - Centril:config-1, r=petrochenkov
Centril Dec 6, 2019
459398d
Rollup merge of #67071 - estebank:issue-66868, r=davidtwco
Centril Dec 6, 2019
18a79e0
Rollup merge of #67078 - kamleshbhalui:master, r=Centril
Centril Dec 6, 2019
573e537
Rollup merge of #67090 - kraai:either-to-any, r=jonas-schievink
Centril Dec 6, 2019
fd78173
Rollup merge of #67092 - kraai:us-to-is, r=jonas-schievink
Centril Dec 6, 2019
29847a4
Rollup merge of #67094 - RalfJung:fields, r=Mark-Simulacrum
Centril Dec 6, 2019
dbc9f30
Rollup merge of #67102 - Aaron1011:patch-3, r=Mark-Simulacrum
Centril Dec 6, 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
7 changes: 7 additions & 0 deletions src/ci/docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ for example:

Images will output artifacts in an `obj` dir at the root of a repository.

**NOTE**: Re-using the same `obj` dir with different docker images with
the same target triple (e.g. `dist-x86_64-linux` and `dist-various-1`)
may result in strange linker errors, due shared library versions differing between platforms.

If you encounter any issues when using multiple Docker images, try deleting your `obj` directory
before running your command.

## Filesystem layout

- Each directory, excluding `scripts` and `disabled`, corresponds to a docker image
Expand Down
6 changes: 3 additions & 3 deletions src/libcore/alloc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ pub struct Layout {

impl Layout {
/// Constructs a `Layout` from a given `size` and `align`,
/// or returns `LayoutErr` if either of the following conditions
/// or returns `LayoutErr` if any of the following conditions
/// are not met:
///
/// * `align` must not be zero,
Expand Down Expand Up @@ -137,7 +137,7 @@ impl Layout {
#[inline]
pub fn for_value<T: ?Sized>(t: &T) -> Self {
let (size, align) = (mem::size_of_val(t), mem::align_of_val(t));
// See rationale in `new` for why this us using an unsafe variant below
// See rationale in `new` for why this is using an unsafe variant below
debug_assert!(Layout::from_size_align(size, align).is_ok());
unsafe {
Layout::from_size_align_unchecked(size, align)
Expand Down Expand Up @@ -196,7 +196,7 @@ impl Layout {
// valid.
//
// 2. `len + align - 1` can overflow by at most `align - 1`,
// so the &-mask wth `!(align - 1)` will ensure that in the
// so the &-mask with `!(align - 1)` will ensure that in the
// case of overflow, `len_rounded_up` will itself be 0.
// Thus the returned padding, when added to `len`, yields 0,
// which trivially satisfies the alignment `align`.
Expand Down
5 changes: 5 additions & 0 deletions src/libcore/convert.rs → src/libcore/convert/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@

#![stable(feature = "rust1", since = "1.0.0")]

mod num;

#[unstable(feature = "convert_float_to_int", issue = "67057")]
pub use num::FloatToInt;

/// The identity function.
///
/// Two things are important to note about this function:
Expand Down
Loading