Skip to content

Commit f521e1d

Browse files
authored
Merge pull request #20775 from davezarzycki/rule_of_five_or_zero
2 parents 68884b2 + 8b86fde commit f521e1d

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

include/swift/Basic/SourceLoc.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,6 @@ class CharSourceRange {
132132
/// \brief Constructs an invalid range.
133133
CharSourceRange() = default;
134134

135-
CharSourceRange &operator=(const CharSourceRange &) = default;
136-
137135
CharSourceRange(SourceLoc Start, unsigned ByteLength)
138136
: Start(Start), ByteLength(ByteLength) {}
139137

include/swift/Basic/TreeScopedHashTable.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ template <typename K, typename V> class TreeScopedHashTableVal {
3737
TreeScopedHashTableVal(const K &Key, const V &Val) : Key(Key), Val(Val) {}
3838

3939
public:
40+
~TreeScopedHashTableVal() = default;
4041
TreeScopedHashTableVal(const TreeScopedHashTableVal &) = delete;
4142
TreeScopedHashTableVal(TreeScopedHashTableVal &&) = delete;
4243
TreeScopedHashTableVal &operator=(const TreeScopedHashTableVal &) = delete;

0 commit comments

Comments
 (0)