diff options
author | Jose Perez Rodriguez <joperezr@microsoft.com> | 2017-10-03 15:21:52 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-03 15:21:52 -0700 |
commit | aae414026671e3dc1ccf0f308d351ac04cc746a4 (patch) | |
tree | 7854947379c68e2b03c476f3744db1a699cf1b6a /src | |
parent | 3716918ee67ea2e8d8271c9a214159e56687f043 (diff) | |
download | coreclr-aae414026671e3dc1ccf0f308d351ac04cc746a4.tar.gz coreclr-aae414026671e3dc1ccf0f308d351ac04cc746a4.tar.bz2 coreclr-aae414026671e3dc1ccf0f308d351ac04cc746a4.zip |
Update Buildtools and Roslyn (#14228)
* Update Buildtools and Roslyn
* Fixing importing of the roslyn files on msbuild 14.0
* Correctly looking for the latest VS Installation
Diffstat (limited to 'src')
-rw-r--r-- | src/mscorlib/System.Private.CoreLib.csproj | 1 | ||||
-rw-r--r-- | src/mscorlib/shared/System/Globalization/TimeSpanParse.cs | 12 | ||||
-rw-r--r-- | src/mscorlib/shared/System/ReadOnlySpan.cs | 4 | ||||
-rw-r--r-- | src/mscorlib/shared/System/Span.cs | 4 |
4 files changed, 7 insertions, 14 deletions
diff --git a/src/mscorlib/System.Private.CoreLib.csproj b/src/mscorlib/System.Private.CoreLib.csproj index 77758fbcea..6eda96a87b 100644 --- a/src/mscorlib/System.Private.CoreLib.csproj +++ b/src/mscorlib/System.Private.CoreLib.csproj @@ -39,6 +39,7 @@ <_TargetFrameworkDirectories>$(MSBuildThisFileDirectory)/Documentation</_TargetFrameworkDirectories> <_FullFrameworkReferenceAssemblyPaths>$(MSBuildThisFileDirectory)/Documentation</_FullFrameworkReferenceAssemblyPaths> <SkipCommonResourcesIncludes>true</SkipCommonResourcesIncludes> + <LangVersion>7.2</LangVersion> </PropertyGroup> <!-- Add Serviceable attribute to the project's metadata --> <ItemGroup> diff --git a/src/mscorlib/shared/System/Globalization/TimeSpanParse.cs b/src/mscorlib/shared/System/Globalization/TimeSpanParse.cs index f8443a1ea6..cf6a929cc4 100644 --- a/src/mscorlib/shared/System/Globalization/TimeSpanParse.cs +++ b/src/mscorlib/shared/System/Globalization/TimeSpanParse.cs @@ -93,8 +93,7 @@ namespace System.Globalization NumOverflow = 4, // Number that overflowed } - [IsByRefLike] - private struct TimeSpanToken + private ref struct TimeSpanToken { internal TTT _ttt; internal int _num; // Store the number that we are parsing (if any) @@ -131,8 +130,7 @@ namespace System.Globalization } } - [IsByRefLike] - private struct TimeSpanTokenizer + private ref struct TimeSpanTokenizer { private ReadOnlySpan<char> _value; private int _pos; @@ -241,8 +239,7 @@ namespace System.Globalization } /// <summary>Stores intermediary parsing state for the standard formats.</summary> - [IsByRefLike] - private struct TimeSpanRawInfo + private ref struct TimeSpanRawInfo { internal TimeSpanFormat.FormatLiterals PositiveInvariant => TimeSpanFormat.PositiveInvariantFormatLiterals; internal TimeSpanFormat.FormatLiterals NegativeInvariant => TimeSpanFormat.NegativeInvariantFormatLiterals; @@ -1430,8 +1427,7 @@ namespace System.Globalization private static bool TryParseTimeSpanConstant(ReadOnlySpan<char> input, ref TimeSpanResult result) => new StringParser().TryParse(input, ref result); - [IsByRefLike] - private struct StringParser + private ref struct StringParser { private ReadOnlySpan<char> _str; private char _ch; diff --git a/src/mscorlib/shared/System/ReadOnlySpan.cs b/src/mscorlib/shared/System/ReadOnlySpan.cs index 4e1910df60..c5f301a6f2 100644 --- a/src/mscorlib/shared/System/ReadOnlySpan.cs +++ b/src/mscorlib/shared/System/ReadOnlySpan.cs @@ -16,10 +16,8 @@ namespace System /// or native memory, or to memory allocated on the stack. It is type- and memory-safe. /// </summary> [DebuggerDisplay("{DebuggerDisplay,nq}")] - [IsReadOnly] - [IsByRefLike] [NonVersionable] - public struct ReadOnlySpan<T> + public readonly ref struct ReadOnlySpan<T> { /// <summary>A byref or a native ptr.</summary> private readonly ByReference<T> _pointer; diff --git a/src/mscorlib/shared/System/Span.cs b/src/mscorlib/shared/System/Span.cs index f4f4e571de..261b15c078 100644 --- a/src/mscorlib/shared/System/Span.cs +++ b/src/mscorlib/shared/System/Span.cs @@ -22,10 +22,8 @@ namespace System /// or native memory, or to memory allocated on the stack. It is type- and memory-safe. /// </summary> [DebuggerDisplay("{DebuggerDisplay,nq}")] - [IsReadOnly] - [IsByRefLike] [NonVersionable] - public struct Span<T> + public readonly ref struct Span<T> { /// <summary>A byref or a native ptr.</summary> private readonly ByReference<T> _pointer; |